LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquiring and Averaging DAQmx Values

All,

 

I am aquiring two voltage signals, one from a differential probe and one from a clamp-on current probe.

 

Two questions:

 

1.  How do I configure my DAQ device, a USB-6212 in this instance, to aquire one signal on AI 0 and the other signal on AI1?

 

2.  Is there an automated way to do the averaging?  My For Loop works, but it is not elegant.

 

As always, any help would be greatly appreciated.  Image and LV2009 code attached.

 

Thanks!

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 1 of 3
(2,883 Views)

Combine both channels into a single task.  You channels will look something like "dev1/ai0:1"

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

To use a different scale for each, wire one DAQmx Create Channel to the next with the same task - not separately as you have done.

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