Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Storage VIs (Windows)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Owning Palette: File I/O VIs and Functions

Use the Storage VIs to read and write waveforms and waveform properties to binary measurement files (.tdm).

Refer to the NI Developer Zone for information about using the Storage VIs with an ASAM-ODS database.

Example

Note  If you build an installer for a stand-alone application or shared library that uses the Storage VIs, you must include the NI USI installer. On the Additional Installers page of the Installer Properties dialog box, place a checkmark in the NI USI checkbox to include the NI USI installer.

The VIs on this palette can return storage error codes.

Palette ObjectDescription
Close Data StorageSaves the data to file and closes the file after reading from it or writing to it.
Convert TDM to TDMSConverts the specified file from the .tdm file format to the .tdms file format.
Convert TDMS to TDMConverts the specified file from the .tdms file format to the .tdm file format.
Delete DataRemoves a channel group or channel you specify. If you choose to delete a channel group, this VI deletes all channels associated with that channel group. The data type you wire to the storage refnum input determines the polymorphic instance to use.
Get PropertiesReads property values from a file, channel group, or channel. If you configure this VI before you wire a refnum to storage refnum, the configuration might change depending on the refnum you wire. For example, if you configure this VI for a channel and then wire a channel group refnum, the VI returns broken wires on the block diagram because the same properties are not available for a channel group.
Merge QueriesMerges the query results from two Read Data VIs. The data type you wire to the storage refnums input determines the polymorphic instance to use.
Open Data StorageOpens a binary measurement file (.tdm) for reading or writing. You also can use this VI to create a new file or replace an existing file. Use the Close Data Storage VI to close the reference to the file.
Read DataReturns an array of refnums that represent channel groups or channels in the file. If you select Channel as the Object type to read in the configuration dialog box, this VI reads waveforms associated with the channel. You also can use this VI to return channel groups or channels that meet query conditions you specify.
Set PropertiesDefines the properties of an existing file, channel group, or channel. If you configure this VI before you wire a refnum to storage refnum, the configuration might change depending on the refnum you wire. For example, if you configure this VI for a channel and then wire a channel group refnum, the VI returns broken wires on the block diagram because the same properties are not available for a channel group.
Write DataAdds a channel group or channel to a file you specify. You also can use this VI to define properties for the channel group or channel that you want to add.


SubpaletteDescription
Advanced Storage VIsUse the Advanced Storage VIs to read, write, and query data when object types or property names are determined at run time.

Example

Refer to the labview\examples\file\storage.llb for examples of using the Storage VIs.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit