LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS files


@KS200 wrote:

Hello, I tried both solutions and I can create a file each time I click the button, but the file only contains one value each time. How can I fix that? Thank you.


As previous replies have said, move your create function outside of the loops

0 Kudos
Message 11 of 14
(98 Views)

Hi,

 


@LVIEWPQ wrote:

@KS200 wrote:

Hello, I tried both solutions and I can create a file each time I click the button, but the file only contains one value each time. How can I fix that? Thank you.


As previous replies have said, move your create function outside of the loops


The case structure where you close the TDMS file belongs outside the inner loop. Also the TDMSOpen function. There should be NO path wire inside the inner loop, only the file reference kept in a shift register…

 

Hint: File -> Save for previous

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 14
(92 Views)

Hello again,

I am still struggling with this. Here is my current VI

KS200_0-1713855716024.png

 

 

0 Kudos
Message 13 of 14
(73 Views)

Hi KS200,

 


@KS200 wrote:

I am still struggling with this. Here is my current VI


No, this is just an image of a block diagram. We cannot edit/debug/run images with LabVIEW!

 

Btw. the block diagram as shown is not even executable…

And why do you (want to) write an ever-growing array to your TDMS file again and again?

 

(When attaching your VI please downconvert to LV2021 or older in case you use a more recent LabVIEW version. I prefer LV2019.)

Best regards,
GerdW


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