Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Writing Data to LabVIEW Measurement Files

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Complete the following steps to use the Write To Measurement File Express VI to write numeric or waveform data to a LabVIEW measurement file. Use the Read From Measurement File Express VI to read data from a measurement file.

  1. Add the Write To Measurement File Express VI to the block diagram.



    Notice that the Filename text box in the Configure Write To Measurement File dialog box displays the full path to the output file.
  2. In the File Format section, select the format for the file to which you want to write data.
  3. In the Segment Headers section, select the header option for the file.
  4. Configure the X Value Columns section if you selected Text (LVM) in the File Format section and you plan to view the data in a spreadsheet or text editor.
  5. Configure the remaining sections in the Configure Write To Measurement File dialog box and click the OK button to save the configuration and close the dialog box.
    Note  LabVIEW automatically generates column titles from the data forms that are wired to this VI. To change the column titles, use the Set Dynamic Data Attributes Express VI.
  6. Add the Simulate Signal Express VI to the block diagram and configure the VI.

  7. Wire the output of the Simulate Signal Express VI to the Signals input of the Write To Measurement File Express VI.
  8. Wire all error in and error out terminals on the block diagram.
  9. Run the VI. The VI writes the data from the Simulate Signal Express VI to the file specified in the Filename section of the Configure Write To Measurement File dialog box.
  10. To view the data you saved, open the output file with a spreadsheet or word processing application if it is a .lvm file. Use the file path displayed in the Filename section of the Configure Write To Measurement File dialog box to access the file.

 

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