Open Data Storage
- Updated2025-07-30
- 4 minute(s) read
Opens an NI TDM (.tdm) file for reading or writing. You also can use this VI to create a new file or replace an existing file. Use the Close Data Storage VI to close the reference to the file.

Dialog Box Options
| Option | Description |
|---|---|
| DataPlugin | Specifies the format of the file you want to access. If you wire a value to the DataPlugin name block diagram input of this Express VI, LabVIEW ignores the DataPlugin option. If you wire an empty string to the DataPlugin name block diagram input, LabVIEW automatically detects the storage format of the data file.
Tip Click the Install/Update DataPlugins button on this dialog box to download more DataPlugins from ni.com and install more storage formats to this list.
|
| DataPlugin parameters (if not wired) | Contains the following option:
|
| Overwrite options (if not wired) | Specifies the operation to perform.
Note Only TDM and TDMS files support all the options listed above. If the DataPlugin you specify in the DataPlugin list is not a .tdms or .tdm file, LabVIEW uses the open (read only) option by default to open the data file. To write to the data file, you can wire a create or create or replace control to the function (open:0) block diagram input.
|
| Install/Update DataPlugins | Launches the Install/Update DataPlugins dialog box which allows you to search, install, and update DataPlugins from the National Instruments website at ni.com/dataplugins. |
Inputs/Outputs
file path
—
Specifies the full path of the file you want to open.
function (open:0)
—
Specifies the operation to perform.
DataPlugin name
—
Specifies the name of the DataPlugin, which determines the storage format of the data file. To open an external data file, you first must install the correct National Instruments DataPlugins. Refer to the National Instruments website at ni.com/dataplugins to download DataPlugins. If you do not wire data to this input, LabVIEW uses the value that you specify in the DataPlugin dialog box option. If you wire data to this input, LabVIEW ignores the value of the DataPlugin option. If you wire an empty string to this input, LabVIEW automatically detects the storage format of the data file.
additional parameters
—
Specifies additional parameters for the input DataPlugin.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
storage refnum (file)
—
Generates a refnum to the file this Express VI opened.
DataPlugin name out
—
Returns DataPlugin name unchanged. If you do not wire data to the DataPlugin name input, DataPlugin name out returns the value that you specify in the DataPlugin dialog box option. If you wire an empty string to the DataPlugin name input, DataPlugin name out returns the storage format that LabVIEW automatically detects.
error out
—
error out contains error information. This output provides standard error out functionality. |
file path
—
function (open:0)
—
DataPlugin name
—
error in (no error)
—
storage refnum (file)
—
DataPlugin name out
—
error out
—