Hi Mitch,
The particular example that you are referring to makes a call to the following method for creating the virtual channel:
myTask.AIChannels.CreateVoltageChannel(physicalChannelComboBox.Text, "", CType(-1, AITerminalConfiguration), rangeMin, rangeMax, AIVoltageUnits.Volts)
The CreateVoltageChannel method is where the terminal configuration is set for the analog input channel that you intend to use. The example program passes
CType(-1, AITerminalConfiguration) as the parameter for the terminal configuration. What this does is casts a value of -1 to the AITerminalConfiguration enumeration. By doing this, the default terminal configuration (differential) for the physical channel is used. The USB-6009 only supports differential and RSE modes, so to use RSE mode you would simply pass
AITerminalConfiguration.Rse as the parameter instead of
CType(-1, AITerminalConfiguration).
Information about this method and all other methods used for programming DAQmx in .NET can be found in the DAQmx .NET Framework Help (Start>>Programs>>National Instruments>>NI-DAQ).
Regards,
Andrew W
National Instruments