08-06-2015 11:56 AM - edited 08-06-2015 11:57 AM
I am wondering what is the best architecture to use to build a data acquisition (DAQmx) for continuous measurements of analog inputs?
Regards
Peterhaz22
08-06-2015 11:59 AM
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> ---'
08-06-2015 12:42 PM
@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.
08-06-2015 12:53 PM
08-06-2015 12:58 PM
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?
08-06-2015 01:01 PM
08-06-2015 01:06 PM
And having two tasks when two modules are used including all of the sensors?
08-06-2015 01:34 PM
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?