Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

read bipolar voltages in the 20 volt range with E series card

I tried placing the value -1 in the gain parameter in the AI_Read function, but it didn't work. Instead of returning 6.3V it returned 5 flat.
0 Kudos
Message 1 of 3
(2,213 Views)
Robin,

Are you using the AI_VScale function to scale the binary data returned by the AI_Read function? If you are, you need to be certain that you are also correctly specifying its gain parameter. Below, I have attached a simple example that appears to function correctly (Modified AIonePoint.C).

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 3
(2,213 Views)
You are right, I'm not using AI_VRead directly, instead there's another function "wrapping up" this one. In the new function the gain parameter is not being passed to the AI_VRead in the intended way. I have done some preliminary changes and I have seen it work.

Thanks
0 Kudos
Message 3 of 3
(2,213 Views)