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
Input will be modified ioState DAQmx_CreateCountEdgesChannelState
Input value inDeviceID str | None None Device alias, product name or serial number
Input value inCounter str | None None Name of a counter used to create virtual channel
Input value inActiveEdge DAQmxActiveEdge DAQmxActiveEdge.Rising Active edge for counting
Input value inInitialCount int 0 Initial value
Input value inCountDirection DAQmxCountDirection DAQmxCountDirection.CountUp Type of counting (incrementing and decrementing values)
Output value 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.