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

Reading Waveform Data from a File Using Storage/DataPlugin VIs (Windows)

LabVIEW 2011 Help

Edition Date: June 2011

Part Number: 371361H-01

»View Product Info

Complete the following steps to use the Storage/DataPlugin VIs to read waveform data from a binary measurement file (.tdm).

  1. Add the Open Data Storage Express VI to the block diagram.
  2. Specify the file from which you want to read data by configuring the Express VI.
  3. Add the Read Data Express VI to the block diagram.
  4. Select Channel as the Object type to read and click the OK button to save the configuration and close the dialog box.
  5. 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.
  6. Right-click the Signal output of the Read Data Express VI and select Create»Graph Indicator from the shortcut menu.
  7. Add the Close Data Storage Express VI to the block diagram.
  8. 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.
  9. Wire all error in and error out terminals on the block diagram.
  10. 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.


 

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