From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuously reading data but logging them ondemand

Hello guys, I have made a .vi to acquire a voltage signal, converting it to current and writing them with their timestamp on a tdms file.This means that the write to tdms file and the reading process are in the same while loop. I wonder how I can make the writing to tdms file start and stop whenever I want while the acquisition of the signal keeps going. I also want to ask if I can read this tdms file the same time as the writing happens.

0 Kudos
Message 1 of 2
(1,717 Views)

I think you can use a simple Case Structure, inside the True case you place the TDMS File Read/Write you want to happen and nothing on the False case.

 

You can then add a button to 'trigger' that True case or use a condition.

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 2 of 2
(1,715 Views)