Specify terminal configuration
Use the TerminalConfig
to change the configuration
of your analog channel. The property displays the hardware default
configuration. You can change this to
SingleEnded
SingleEndedNonReferenced
Differential
PseudoDifferential
Change the terminal configuration of an analog input channel.
Create a session and add an analog input voltage channel.
s = daq.createSession('ni'); ch = addAnalogInputChannel(s,'dev5',0,'voltage')
ch = Data acquisition analog input voltage channel 'ai0' on device 'Dev5': Coupling: DC TerminalConfig: Differential Range: -10 to +10 Volts Name: '' ID: 'ai0' Device: [1x1 daq.ni.DeviceInfo] MeasurementType: 'Voltage'
Change the TerminalConfig
of the
channel to SingleEnded
.
ch.TerminalConfig = 'SingleEnded'
ch = Data acquisition analog input voltage channel 'ai0' on device 'Dev5': Coupling: DC TerminalConfig: SingleEnded Range: -10 to +10 Volts Name: '' ID: 'ai0' Device: [1x1 daq.ni.DeviceInfo] MeasurementType: 'Voltage'