Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain setpoint of analog out task

Solved!
Go to solution

I have a function that sets an arbitrary voltage to an analog out channel (-10 to +10 V, NI 6211), using daqmx -> AO voltage -> Analog DBL 1Chan 1Samp.  I'm trying to find a way to later get that value back (which should be the value still applied at that channel). I could not find a way to read a property of the channel or the task to get the applied voltage at that port. 

 

Using 2023Q1

0 Kudos
Message 1 of 2
(113 Views)
Solution
Accepted by topic author MF0088

It's possible to measure it using an internal AI channel with a syntax like "Dev1/_ao0_vs_aognd".   (Or you can do loopback wiring from AO to an external AI channel.)   That isn't always very convenient if you're already occupying the AI subsystem for other things though.   

 

Do you need to physically measure and confirm it or is it good enough to structure your code to remember and report back the most recent successful AO update value?

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 2 of 2
(89 Views)