LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW architecture for DAQ

I am wondering what is the best architecture to use to build a data acquisition (DAQmx) for continuous measurements of analog inputs?

 

Regards

 

Peterhaz22

0 Kudos
Message 1 of 8
(3,971 Views)

Look in to the Queued Message Handler architecture. There's a template that ships with LabVIEW.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 8
(3,965 Views)

@peterhaz22 wrote:

I am wondering what is the best architecture to use to build a data acquisition (DAQmx) for continuous measurements of analog inputs?


Well, that really depends on what you are doing with the data.  But based on your very short description, something like the Producer/Consumer works well.


GCentral
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 3 of 8
(3,928 Views)
You really should have a better specification than just 'continuous acquisition'. The producer/consumer mentioned world well for some applications. A state machine works well for others. What else do you need to do?
0 Kudos
Message 4 of 8
(3,919 Views)

Well, I am using a USB device and CompactDAQ device to record data from seven analog input channels. All seven sensors will be synchronized and share a sample clock and start trigger. I am thinking of seven tasks and make use of producer-consumer architecture to initiate, acquire and stream the data. Shall I create a large event producer - consumer architecture for all seven AI channels or seven P-C for each channel?

0 Kudos
Message 5 of 8
(3,908 Views)
You have to use a single task with all channels defined in it when a single module is used.
0 Kudos
Message 6 of 8
(3,893 Views)

And having two tasks when two modules are used including all of the sensors?

0 Kudos
Message 7 of 8
(3,882 Views)

With a cDAQ, you can have a single task for all of the modules of the same type (analog inputs in this case).  So you should only need the one task.

 

What are you streaming the data to?  Are you doing anything else with the data?


GCentral
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 8 of 8
(3,846 Views)