Documentation

IdleState

Default state of counter output channel

Description

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.

Values

IdleState is either 'High' or 'Low'.

Examples

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';

s.Channels
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 daq.ni.DeviceInfo]
 MeasurementType: 'PulseGeneration'
Was this topic helpful?