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.

ActiveEdge

Rising or falling edges of EdgeCount signals

Description

When working with the session-based interface, use the ActiveEdge property to represent rising or falling edges of a EdgeCount signal.

Values

You can set the Active edge of a counter input channel to Rising or Falling.

Examples

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

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

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

Change the Active Edge property to 'Falling':

ch.ActiveEdge = 'Falling'
ch = 

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

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