Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ Assistant

Hi,

How can i have optimal data aquisition using DAQ Assistant during a process that lasts around 2 hours but i don t know exactly how long. Should i use continous or finite sampling? Is there any given situation that calls one of these 2 modes?

 

Thanks in advance!

0 Kudos
Message 1 of 7
(4,804 Views)

If you want constant data for the undefined amount of time, you want Continuous Sampling.  Finite Samples is only useful for capturing small windows of data (like 100ms worth of data).



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(4,799 Views)

And should i place the DAQ in a while loop (for continuous sampling)? Because after the aquisition i need to save the data into a file and i use Write to Meas file.Vi

 

Thanks!

0 Kudos
Message 3 of 7
(4,790 Views)
Yes, of course you need a while loop.

I would suggest that you use a producer/consumer architecture and save as you acquire.
0 Kudos
Message 4 of 7
(4,781 Views)

I understand, but what do you mean by producer/consumer architecture?

 

Thanks!

0 Kudos
Message 5 of 7
(4,778 Views)
It's a common design pattern. Look at the examples and templates that come with LabVIEW. At the simplest level, you have one loop (the producer) that just does the acquisition and possess the result to a queue. A second loop (the consumer) reads the queue and writes to file.
0 Kudos
Message 6 of 7
(4,772 Views)

@Dennis_Knutson wrote:
I would suggest that you use a producer/consumer architecture and save as you acquire.

Depends on the format the OP wants the data in.  I recommend using a TDMS file since DAQmx makes this way too easy for you.  In the DAQ Assistant, there is a Logging tab.  Go there and enable the logging.  DAQmx will stream your data straight to a TDMS file.  You don't have to do anything else and it is highly efficient.

 

For any other file format, you should use the Producer/Consumer.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 7
(4,755 Views)