Reads data from a text-based measurement file (.lvm) or binary measurement file (.tdm or .tdms).
You also can use this VI to read Multisim data if you have Multisim 9.0 or later installed. Use the Write To Measurement File Express VI to write data to a measurement file. You also can use the Storage VIs to read from and write to .tdm files.
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description | ||
|---|---|---|---|
| File Name | Displays the full path to the file from which you want to read data. The Express VI reads data from the file that this parameter specifies only if the File Name input is unwired. If you wire the File Name input, the VI reads data from the file that this input specifies instead. | ||
| File Format | Contains the following options:
| ||
| Action | Contains the following option:
| ||
| Segment Size | Contains the following options:
| ||
| Time Stamps | Contains the following options:
| ||
| Generic Text File | Contains the following options:
| ||
| Delimiter | Contains the following options:
| ||
| Decimal Point | Contains the following options:
|
| Parameter | Description |
|---|---|
| Enable | Enables or disables the Express VI. The default is ON or TRUE. |
| File Name | Specifies the name of the file from which you want to read data. |
| Reopen File | Resets the file position such that the next read starts at the beginning of the file. |
| error in (no error) | Describes error conditions that occur before this VI or function runs. |
| Parameter | Description |
|---|---|
| Description | Returns the description in the header of the .lvm or .tdm file. |
| Comment | Returns the appended comment of each data set in the .lvm or .tdm file. |
| Signals | Contains the output signal or signals. |
| File Name Out | Returns the name of the file. |
| error out | Contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. |
| EOF? | Returns TRUE when the Express VI reaches the end of the file. |
![]() | Note The behavior of this VI changes depending upon the target. If the current target does not or might not have a host computer connected, the configuration dialog box displays warnings next to options that are invalid without a host. If you configure this VI to prompt for input and run the VI on a target with no user interface, such as the Real-Time Module with no host computer connected, this VI returns an error. |
This Express VI operates similarly to the following VIs and functions:
Open/Create/Replace File
Read from Text File
Read from Binary File
Read From Spreadsheet File
File Dialog
Scan From File
Refer to the following VIs for examples of using the Read From Measurement File VI: