How do I change the gain from 1 (-5 to 5V) to 0.5 (-10 to 10) in AIonePoint.c

I am using the AIonePoint.c program provided with NI6023E DAQ cards we purchased. I can change the gain down to 10 (-500 to +500 mV) and 100 (-50 to +50 mV). When I put in 0.5 I get a gain error.

Hello;
The gain parameter of the NI-DAQ functions is always a integer number. If you input 0.5 as that parameter you will get a compiler error.
To set the gain to 0.5, as the NI-DAQ on line help states, you should set that parameter to -1.
Regards
Filipe A.
Applications Engineer
National Instruments

Similar Messages

Maybe you are looking for