Documentation

This is machine translation

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

ID

ID of channel in session

Description

When working with the session-based interface, the ID property displays the ID of the channel. You set the channel ID when you add the channel to a session object.

Examples

Create a session object, and add a counter input channel with the ID 'ctr0'.

s = daq.createSession('ni');
ch = addCounterInputChannel (s,'cDAQ1Mod5', 'ctr0', 'EdgeCount')
ch= 

Data acquisition counter input edge count channel 'ctr0' on device 'cDAQ1Mod5':

      ActiveEdge: Rising
  CountDirection: Increment
    InitialCount: 0
        Terminal: 'PFI8'
            Name: empty
              ID: 'ctr0'
          Device: [1x1 daq.ni.DeviceInfo]
 MeasurementType: 'EdgeCount'

Change CountDirection to 'Decrement':

ch.CountDirection = 'Decrement'
ch= 

Data acquisition counter input edge count channel 'ctr0' on device 'cDAQ1Mod5':

      ActiveEdge: Rising
  CountDirection: Decrement
    InitialCount: 0
        Terminal: 'PFI8'
            Name: empty
              ID: 'ctr0'
          Device: [1x1 daq.ni.DeviceInfo]
 MeasurementType: 'EdgeCount'
Was this topic helpful?