Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to set single ended voltage on 6009

In the C code examples for  the USB-6009  I  only seem to be able to  read 4 differential channels. I want eight single ended channels .
It appears that perhaps  "DAQmx_Val_Cfg_Default" in the command that creates a voltage channel should be some other value.

  DAQmxErrChk (DAQmxBaseCreateAIVoltageChan (taskHandle, chan, "", DAQmx_Val_Cfg_Default, min, max, DAQmx_Val_Volts, NULL));
0 Kudos
Message 1 of 2
(2,959 Views)
Hi jjreed.

If you go to the help file (Start > All Programs > National Instruments > NI-DAQmx Base > Documentation) and look up the command you are using you will see all of the appropriate value.

In your case you will see that the values for the terminalConfig are:
Value
Description
DAQmx_Val_Cfg_Default (-1)
At run time, NI-DAQmx Base chooses the default input terminal configuration for the channel. On E Series devices, if the channel supports differential mode, NI-DAQmx Base chooses DAQmx_Val_Diff. Otherwise, NI-DAQmx Base chooses DAQmx_Val_RSE.
DAQmx_Val_RSE
Referenced single-ended mode
DAQmx_Val_NRSE
Non-referenced single-ended mode
DAQmx_Val_Diff
Differential mode
In your case, for the USB-6009, only RSE and Differential are supported.  If you use RSE, then all the channels will be available and all the channels will be referenced to ground.

Regards,
0 Kudos
Message 2 of 2
(2,948 Views)