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

Writing Waveform Data to 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 write waveform data to a binary measurement file (.tdm).

  1. Place the Open Data Storage VI on the block diagram.
  2. Specify the file to which you want to write data by configuring the VI.
  3. Place the Write Data VI on the block diagram.
  4. Select Channel as the Object type 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 Write Data VI.
  6. Place the Simulate Signal VI on the block diagram.
  7. Configure the VI and click the OK button to save the configuration and close the dialog box.
  8. Wire the output of the Simulate Signal VI to the Signal input of the Write Data VI.
  9. Place the Close Data Storage VI on the block diagram.
  10. Wire the storage refnum (file) output of the Write Data VI to the storage refnum input of the Close Data Storage VI.
  11. Wire all error in and error out terminals on the block diagram.
  12. Run the VI. The VI writes the data from the Simulate Signal VI to the file you specified in the Open Data Storage VI configuration dialog box.
  13. After you write to a file, use the Storage VIs to read the file.

You also can use the Write To Measurement File Express VI to write data to 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 Write TDM File VI in the labview\examples\file\storage.llb for an example of writing a waveform to 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