Hello Shakes. Thank you for contacting National Instruments. You didn't specify if you were using DAQmx or Traditional DAQ so I will show you how to do both.
For DAQmx: Change the values of minVal and maxVal.
int32 DAQmxCreateAIVoltageChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, const char customScaleName[]);
For Traditional DAQ: Change the value of iGain to the correct gain for the input range. Unlike DAQmx, there are many functions where you can set this. If you have any questions on a specific application take a look at the examples found at C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ai.
Input Range | Gain |
-10 to 10V | .5 |
-5 to 5V | 1 |
-500 to 500mV | 10 |
-50 to 50mV | 100 |
Please let me know if you have any questions. Have a great day!
Marni S.
National Instruments