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.
![]() | 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 Object | Description |
|---|---|
| Close Data Storage | Saves the data to file and closes the file after reading from it or writing to it. |
| Convert TDM to TDMS | Converts the specified file from the .tdm file format to the .tdms file format. |
| Convert TDMS to TDM | Converts the specified file from the .tdms file format to the .tdm file format. |
| Delete Data | Removes 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 Properties | Reads 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 Queries | Merges 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 Storage | Opens 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 Data | Returns 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 Properties | Defines 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 Data | Adds 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. |
| Subpalette | Description |
|---|---|
| Advanced Storage VIs | Use the Advanced Storage VIs to read, write, and query data when object types or property names are determined at run time. |
Refer to the labview\examples\file\storage.llb for examples of using the Storage VIs.