Start
④ Counter Input [cnt_start.vi]

 

Select to do the counter input

Digital devices with counters also use this VI

 


IN/OUT Terminal layout

 


Input terminal

CntChannel

Initial value: 0

Specify the channel number to start counter input

It is also possible to specify multiple channel numbers in the array

  

EdgeType

Initial value: 0

This setting is for digital devices with a counter function
You can set the direction of signal change to be counted
It is also possible to specify the settings of each channel individually in the array

    0: Leave the EdgeType setting as it is and do not change
    1: Counts rising edges (0 to 1) of digital signals
    2: Counts the falling edge (1 to 0) of digital signal
    3: Counts both rising (0 to 1) and falling (1 to 0) digital signals

Depending on the array size of CntChannel and EdgeType, settings are made as follows

Size of each array and connection status

Settings

If EdgeType is not connected or EdgeType array size is 1 and value is 0

Do not change the current settings
In the initial state, all channels are set to rising

EdgeType array size is 1 and values are 1 to 3

Set all channels specified in CntChannel array to the same setting

When the EdgeType array size is 2 or more and is equal to or larger than the number of channels specified in the CntChannel array

Set each channel in the CntChannel array to the corresponding EdgeType array value

If the EdgeType array size is 2 or more and not enough for the number of channels specified in the CntChannel array

The settings of the channels that are not specified in the EdgeType array remain unchanged from the current settings

This setting is invalid for devices other than digital devices with a counter function

This setting cannot be done during counter operation
- If you want to change the setting after the counter has started, stop the counter and then execute
- Please be careful especially when the counter is automatically started by the device settings.