LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write 3d array to tdms file

Hi, im trying to create a new tdms file to write data, I dont know how to do it, its a 2d array and after the for loops its 3d. I tried to change it to last value or concatening but only writes 1 row, I think im loosing part of the data.

ADaniel01_0-1677243657049.png

Thanks.

0 Kudos
Message 1 of 4
(831 Views)

Hi Daniel,

 


@A.Daniel01 wrote:

Hi, im trying to create a new tdms file to write data, I dont know how to do it, its a 2d array and after the for loops its 3d. I tried to change it to last value or concatening but only writes 1 row, I think im loosing part of the data.


You may write separate signals/groups inside the FOR loop, setting all scalar values as properties for the "Part" data block.

Or you could concatenate the "Part" data at the loop border to a larger 2D array…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(824 Views)

Hi GerdW,

 

I tried to concatenate, but when I do this, the TDSM file have a lot of channels created, and I dont really know if its good, I never used before TDSM files. And I dont know what do you mean by writing separate signals/groups in the for loop.

 

What I'm doing know, only to can test this is concatenating, indexing the array in 3 1D arrays (In theory, the "Part" data are 3 values (X, Y, Z) and then building it again in a 2D array. But I dont think this is ok.

 

ADaniel01_0-1677495635836.png

 

 

Thanks.

0 Kudos
Message 3 of 4
(769 Views)

Hi Daniel,

 


@A.Daniel01 wrote:

What I'm doing know, only to can test this is concatenating, indexing the array in 3 1D arrays (In theory, the "Part" data are 3 values (X, Y, Z) and then building it again in a 2D array.


As long as you only attach images of small parts of the block diagram of your VI we cannot assist with code fixing…

 


@A.Daniel01 wrote:

But I dont think this is ok.


Well, you are the one who can debug that code. We cannot debug/edit/run images with LabVIEW…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(759 Views)