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.


Default state of counter output channel


When working with the session-based interface, the IdleState property indicates the default state of the counter output channel with a 'PulseGeneration' measurement type when the counter is not running.


IdleState is either 'High' or 'Low'.


Create a session object and add a 'PulseGeneration' counter output channel:

s = daq.createSession('ni');
s.addCounterOutputChannel('cDAQ1Mod5', 'ctr0', 'PulseGeneration');

Change the IdleState property to 'High' and display the channel:

s.Channels.IdleState = 'High';

ans = 

Data acquisition counter output pulse generation channel 'ctr0' on device 'cDAQ1Mod5':

       IdleState: High
    InitialDelay: 2.5e-008
       Frequency: 100
       DutyCycle: 0.5
        Terminal: 'PFI12'
            Name: empty
              ID: 'ctr0'
          Device: [1x1]
 MeasurementType: 'PulseGeneration'
Was this topic helpful?