DAQmx_CreateCountEdgesChannel
Creates a task and channel to count number of edges.
Syntax
C++
Python
def DAQmx_CreateCountEdgesChannel( state: DAQmx_CreateCountEdgesChannelState, /, *, inDeviceID: str | None = None, inCounter: str | None = None, inActiveEdge: DAQmxActiveEdge = DAQmxActiveEdge.Rising, inInitialCount: int = 0, inCountDirection: DAQmxCountDirection = DAQmxCountDirection.CountUp ) -> outTaskID: int
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
ioState | DAQmx_CreateCountEdgesChannelState | ||
![]() |
inDeviceID | str | None | None | Device alias, product name or serial number |
![]() |
inCounter | str | None | None | Name of a counter used to create virtual channel |
![]() |
inActiveEdge | DAQmxActiveEdge | DAQmxActiveEdge.Rising | Active edge for counting |
![]() |
inInitialCount | int | 0 | Initial value |
![]() |
inCountDirection | DAQmxCountDirection | DAQmxCountDirection.CountUp | Type of counting (incrementing and decrementing values) |
![]() |
outTaskID | int | ID of a created task |
Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.



