Name

Specify descriptive name for the channel

Description

When you add a channel , a descriptive name is stored in Name. By default there is no name assigned to the channel. You can change the value of Name at any time.

Values

You can specify a string value for the name.

Examples

Change the name of an analog input channel

Create a session and add an analog input channel.

s = daq.createSession('ni');
ch = addAnalogInputChannel(s,'Dev1', 0, 'Voltage')
ch = 

Data acquisition analog input voltage channel 'ai0' on device 'Dev1':

       Coupling: DC
 TerminalConfig: Differential
          Range: -10 to +10 Volts
           Name: ''
             ID: 'ai0'
         Device: [1x1 daq.ni.DeviceInfo]
MeasurementType: 'Voltage'

Change Name to 'AI-Voltage'.

ch.Name = 'AI-Voltage'
ch = 

Data acquisition analog input voltage channel 'ai0' on device 'Dev1':

       Coupling: DC
 TerminalConfig: Differential
          Range: -10 to +10 Volts
           Name: 'AI-Voltage'
             ID: 'ai0'
         Device: [1x1 daq.ni.DeviceInfo]
MeasurementType: 'Voltage'
Was this topic helpful?