Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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?