LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Zero values with simultaneous DaqMx


@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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 13
(552 Views)

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

0 Kudos
Message 12 of 13
(499 Views)

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

Capture1.PNG

Just rightclick a task constant and create new

You can ctrate a task with multiple channels of one type (Say Voltage...) 

And get Here

Capture0.PNG

Capture0.PNG

See that highlighte "Add Channels" Press it and select some more channels of a specific type (Say Current....)

Capture.png

 

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

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 13 of 13
(493 Views)