06-17-2009 04:05 AM
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.
06-17-2009 04:41 AM
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.
06-17-2009 09:26 AM
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.
06-17-2009 01:24 PM
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?