Owning Palette: Input Express VIs
Requires: Base Development System
Reads data from a text-based measurement file (.lvm) or binary measurement file (.tdm or .tdms).
Dialog Box Options |
Block Diagram Inputs |
Block Diagram Outputs |
Add to the block diagram | Find on the palette |
Parameter | Description | ||
---|---|---|---|
Filename | 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 Filename input is unwired. If you wire the Filename 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:
| ||
Text (LVM) | Sets the file format to text-based measurement file (.lvm) and the file extension in File Name to .lvm. To enable this VI to read data from generic text files, place a checkmark in the Read generic text files checkbox. |
Parameter | Description |
---|---|
Enable | Enables or disables the Express VI. The default is ON or TRUE. |
Filename | Specifies the name of the file from which you want to read data. |
Reset | Resets the file position such that the next read starts at the beginning of the file. |
error in | Describes error conditions that occur before this node 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. |
Filename Out | Returns the name of the file. |
error out | Contains error information. This output provides standard error out functionality. |
EOF? | Returns TRUE when the Express VI reaches the end of the file. |
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/DataPlugin VIs to read from and write to .tdm files.
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 TDMS Express Read Data (Time Domain) VI in the labview\examples\File IO\TDMS\Express Read and Write directory for an example of using the Read From Measurement File Express VI.