Hi,
I am using NIDAQmx C API provided by NI to access analog inputs. I wrote some functions to create analog input channel and to set minimum and maximum values for a particular channel.
For this I used the following function to create analog channel.
DAQmxCreateAIVoltageChan (taskHandle, "Dev1/0", "", DAQmx_Val_Diff, -10, 10, DAQmx_Val_Volts ,NULL);
and I used this function to set some different min and max voltages for the above created channel.
DAQmxSetAIMin(taskHandle, "Dev1/0", -5);
DAQmxSetAIMax(taskHandle, "Dev1/0", 5);
When I called these functions it is not rising any exceptions. It is returning "0", this means function is successfully executed.
Then I tried with DAQmxGetAIMin, DAQmxGetAIMax functions to know the current min and max voltages.
I found min and max voltages are -10 and 10. But I set these values as -5 and 5.
Please guide me is there any need to use any other functions to set the new min and max voltages.
Thanks