04-26-2017 01:07 PM
@meshein wrote:
Since the creation type is different (current vs voltage) and the sampling type is different (Differential vs RSE) is it possible to combine the tasks?
The only thing that should stop combining the two is if the RSE channel input is used by the Diff inputs... but that would be bad in most all cases.
To avoid repeating myself...
In this thread I offered a method to figure out how to configure a DAQmx task to match what we figure out using MAX test panels.
Use that method for both types of acquisition and compare the tow configuration sub-VIs. You will end up running the task from the first of channels and adding in the other channel. If that does not work it will be news to me.
Ben
05-16-2017 01:31 PM
I'm really interested in the solution you offered. I am a little stuck on how to implement it though. Im not seeing how the error linking would solve the timing issue. I am already converting the sample rate from double to I32 integer, so I feel like the timing should be fixed by this. How would I change my code (shown on the first page of this thread) to combine both AI current and AI voltage?
Thank you, Michael
05-16-2017 03:14 PM
Without knowing what your devices are and if they are in the same chassis we can't say for sure. however,
If you create a new task by launching the DAQ Wizard
Just rightclick a task constant and create new
You can ctrate a task with multiple channels of one type (Say Voltage...)
And get Here
See that highlighte "Add Channels" Press it and select some more channels of a specific type (Say Current....)
Voltage and current channels from two simulated devices in the same simulated cDAQ Chassis.
Drop the task on and LabVIEW BD and click "Generate Code- Configuration and example" Poof