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

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

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

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

  1. Place the Open Data Storage VI on the block diagram.
  2. Specify the file from which you want to read data by configuring the VI.
  3. Place the Read Data VI on 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 VI to the storage refnum (file) input of the Read Data VI.
  6. Right-click the Signal output of the Read Data VI and select Create»Graph Indicator from the shortcut menu.
  7. Place the Close Data Storage VI on the block diagram.
  8. Wire the storage refnum (file) output of the Read Data VI to the storage refnum input of the Close Data Storage.
  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 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.


Resources


 

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