LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

To write data into TDMS at a interval time

 Hi, I am developing sensors (mass flow controller, thermocouple etc) and uses DAQ to read the data. Then I write the data into TDMS format.

The problem is I need to read the data at 1sec interval but write the data into TDMS format in 10sec interval. 

 

I developed the vi in a while loop which I set the timing to be 5s while I figure the sampling rate of the DAQ Assistant to 1sec. But both read and write have the speed of 5s. 

 

Please kindly share your opinion.

 

Thanks and regards.

0 Kudos
Message 1 of 4
(2,510 Views)

Hi!

 

Is the entire .vi in one loop?

 

If that is the case a queued producer/consumer architecture would be a solotion you could look into. 

 

Clicky

0 Kudos
Message 2 of 4
(2,505 Views)

Thanks Jan. Will read the link you provided.

I tried several method; separate into two while loops and writing of data into TDMS in a while loop inside a while loop with DAQ. Both failed. 

 

 

0 Kudos
Message 3 of 4
(2,487 Views)

Blueberet wrote:

 

I developed the vi in a while loop which I set the timing to be 5s while I figure the sampling rate of the DAQ Assistant to 1sec. But both read and write have the speed of 5s. 

 



What do you exactly mean by this? Is it possible for you to post a snapshot of version of your code that isolates the issue?

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 4 of 4
(2,477 Views)