LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to run two different DAQmx tasks in the same loop?

I am fairly new to LabVIEW but I wanted to know if it was possible to run two different DAQmx tasks in the same loop? I want to read and filter analog voltage input and view thermocouple readings. Below is a picture of how I currently have them running but I want to know if I can integrate them into the same loop.

 

Twoseperateloops.PNG

0 Kudos
Message 1 of 3
(2,168 Views)

Bradley,

 

It depends on the sample rates and buffer sizes on the modules you use.

 

If you configure the tasks such that each iteration of the loop you read the number of samples you need so that the buffers dont overflow or that you dont try to read samples that have not yet been acquired it will all work fine in the same loop.

 

 

0 Kudos
Message 2 of 3
(2,144 Views)

You can.  If you go this route, make sure both are reading enough samples to cover the same amount of time.

 

A random note on your code: instead of the Array To Cluster and Unbundle By Name, just use Index Array.


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 3
(2,136 Views)