TDMS In Memory Read Bytes Function
- Updated2025-07-30
- 3 minute(s) read
Reads a .tdms file in memory and returns data as an unsigned 8-bit integer array data type.

Inputs/Outputs
byte count (-1: all)
—
byte count specifies the maximum number of bytes to read from the .tdms file in memory. The default is -1, which means this function reads all available bytes. If the value of byte count is out of range, this function automatically sets byte count to equal the number of bytes in the file minus offset.
offset (0)
—
offset specifies the number of bytes into the .tdms file at which the function begins reading the .tdms file. The default is 0.
tdms file
—
tdms file specifies a reference number to the .tdms file in memory on which to perform the operation. Use the TDMS In Memory Open function to open the refnum.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
tdms file out
—
tdms file out returns a TDMS file reference to the .tdms file on which you performed the operation.
data
—
data returns the data read from the .tdms file in memory as an unsigned 8-bit integer array data type.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\File IO\TDMS\Advanced Read and Write\TDMS In Memory Write and Read.vi
- labview\examples\File IO\TDMS\Advanced Read and Write\In Memory Network Read and Write\TDMS In Memory Network Read and Write.lvproj
byte count (-1: all)
—
tdms file
—
error in (no error)
—
tdms file out
—
data
—
error out
—