Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

TerminalConfig

Specify terminal configuration

Description

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

Example

Change Analog Channel Terminal Configuration

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'
Was this topic helpful?