ActivePulse

Active pulse measurement of PulseWidth counter channel

Description

When working with the session-based interface , the ActivePulse property displays the pulse width measurement in seconds of your counter channel, with PulseWidth measurement type.

Values

Active pulse measurement values include:

  • 'High'

  • 'Low'

Examples

Create a session object, add a counter input channel, with the 'EdgeCount' MeasurementType.

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

Data acquisition counter input pulse width channel 'ctr0' on device 'cDAQ1Mod5':

       ActivePulse: High
        Terminal: 'PFI4'
            Name: empty
              ID: 'ctr1'
          Device: [1x1 daq.ni.DeviceInfo]
 MeasurementType: 'PulseWidth

Change the ActiveEdge property to Low.

ch.ActivePulse = 'Low'
ch = 

Data acquisition counter input pulse width channel 'ctr0' on device 'cDAQ1Mod5':

     ActivePulse: Low
        Terminal: 'PFI4'
            Name: empty
              ID: 'ctr1'
          Device: [1x1 daq.ni.DeviceInfo]
 MeasurementType: 'PulseWidth'
Was this topic helpful?