Specify descriptive name for the channel
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.
You can specify a character vector value for the name.
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'