DAQmxCreateAIVoltageChan (taskHandle, "Dev1/ai0", "Voltage", DAQmx_Val_Cfg_Default, -10.0, 10.0, DAQmx_Val_Volts, NULL);
The first line of C code creates a task. Refer to NI-DAQmx C Reference Help documentation for more information regarding Task Configuration and Control.The second line of C code creates an analog input virtual voltage channel with the following properties:
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.