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.

InitialCount

Specify initial count point

Description

When working with the session-based interface, use the InitialCount property to set the point from which the device starts the counter.

Examples

Create a session object, add counter input channel, and change the InitialCount.

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

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

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

Change InitalCount to 15:

ch.InitialCount = 15

ch = 

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

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