DAQmx_CreatePulseChannelFreq


Creates a task and channel to generate pulse.

Syntax

C++
Python
 
def DAQmx_CreatePulseChannelFreq(
	state: DAQmx_CreatePulseChannelFreqState,
	/,
	*,
	inDeviceID: str | None = None,
	inCounter: str | None = None,
	inIdleState: DAQmxIdleState = DAQmxIdleState.High,
	inInitDelay: float = 0,
	inFrequency: float = 0,
	inDutyCycle: float = 0
)
-> outTaskID: int

Parameters

Name Type Default Description
Input will be modified ioState DAQmx_CreatePulseChannelFreqState
Input value inDeviceID str | None None Device alias, product name or a serial number
Input value inCounter str | None None Name of a counter used to create virtual channel
Input value inIdleState DAQmxIdleState DAQmxIdleState.High Resting state of an output terminal
Input value inInitDelay float 0 Time (in seconds) to wait before generating pulse
Input value inFrequency float 0 Frequency of generated pulse
Input value inDutyCycle float 0 The width of the pulse divided by the pulse period
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.