Complete the following steps to use the Storage/DataPlugin VIs to read waveform data from a binary measurement file (.tdm).
- Add the Open Data Storage Express VI to the block diagram.
- Specify the file from which you want to read data by configuring the Express VI.
- Add the Read Data Express VI to the block diagram.
- Select Channel as the Object type to read and click the OK button to save the configuration and close the dialog box.
- Wire the storage refnum (file) output of the Open Data Storage Express VI to the storage refnum (file) input of the Read Data Express VI.
- Right-click the Signal output of the Read Data Express VI and select Create»Graph Indicator from the shortcut menu.
- Add the Close Data Storage Express VI to the block diagram.
- Wire the storage refnum (file) out output of the Read Data Express VI to the storage refnum input of the Close Data Storage Express VI.
- Wire all error in and error out terminals on the block diagram.
- Run the VI. LabVIEW displays the waveform in a front panel graph.
You also can use the Read From Measurement File Express VI to read data from a .tdm file.
If you build an installer for an application or shared library that uses the Storage/DataPlugin VIs, you must include the NI USI installer.
Refer to the Read TDM File VI in the labview\examples\file\storage.llb for an example of reading a waveform from a .tdm file.