Showing results for 
Search instead for 
Did you mean: 

Read multiple elements from stream and write into tdms?

Go to solution

Hi everyone,


i want to write multiple elements from an array network stream into a tdms. The array is 1D with 41 values. After the Read multiple elements from Stream function the array seems to be 2D.
The Stream is comming from an RT Target with high frequency, and I want to read several 100 arrays but with lower frequency on my PC Host (otherwise i think I'd need a gigantic buffer) and wirte them to the tdms.

Do I have to dismember the 2D array into 100 1D arrays, in order to get one row per original Array? Or does the TDMS function do it automatically?



0 Kudos
Message 1 of 2
Accepted by topic author MathiasHudt

This seems to be related:


What's the best way to store 2D array data in TDMS file? - Database and File IO - LAVA (


"Dismember the 2D array" would be a matter of putting a for loop around the TDMS Write. You might have to toss in a Transpose Array, depending on the layout of the 2D data.

Message 2 of 2