Complete the following steps to use the Read From Measurement File Express VI to read numeric or waveform data from a text-based measurement file (.lvm) or binary measurement file (.tdm or .tdms). Use the Write To Measurement File Express VI to write data to a measurement file.
- Place the Read From Measurement File Express VI on the block diagram.
- Notice that the File Name text box in the Configure Read From Measurement File dialog box displays the full path to the input file. Click the Browse button if you want to select a different file.
- In the File Format section, select the format of the file from which you want to read data.
- Configure the remaining sections in the Configure Read From Measurement File dialog box and click the OK button to save the configuration and close the dialog box.
- Right-click the Signals output of the Read From Measurement File Express VI and select Create»Numeric Indicator or Create»Graph Indicator from the shortcut menu.
- Wire all error in and error out terminals on the block diagram.
- Run the VI. LabVIEW displays the numeric or waveform data from the file specified in the File Name section of the Configure Read From Measurement File dialog box in a front panel indicator.
You also can use the Storage VIs to read from a .tdm file.