03-11-2017 01:39 PM
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.
03-11-2017 02:45 PM
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.
03-11-2017 03:12 PM
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.