Back to Adaptive Vision Library website

You are here: Start » Function Reference » National Instruments » DAQmx_CreatePulseChannelFreq

DAQmx_CreatePulseChannelFreq


Creates a task and channel to generate pulse.

Syntax

void avl::DAQmx_CreatePulseChannelFreq
(
	DAQmx_CreatePulseChannelFreqState& ioState,
	atl::Optional<const atl::String&> inDeviceID,
	atl::Optional<const atl::String&> inCounter,
	avl::DAQmxIdleState::Type inIdleState,
	float inInitDelay,
	float inFrequency,
	float inDutyCycle,
	avl::DAQmxTaskID& outTaskID
)

Parameters

Name Type Default Description
ioState DAQmx_CreatePulseChannelFreqState& Object used to maintain state of the function.
inDeviceID Optional<const String&> NIL Device alias, product name or a serial number
inCounter Optional<const String&> NIL Name of a counter used to create virtual channel
inIdleState DAQmxIdleState::Type Resting state of an output terminal
inInitDelay float Time (in seconds) to wait before generating pulse
inFrequency float Frequency of generated pulse
inDutyCycle float The width of the pulse divided by the pulse period
outTaskID DAQmxTaskID& ID of a created task

Remarks

Device driver software

This filter is intended to cooperate with digital I/O cards using its vendor driver software. To be able to connect to a card it is required to install NI-DAQmx driver software. Currently Adaptive Vision Studio requires NI-DAQmx version 9.5.

NI-DAQmx driver software can be downloaded from the following website: http://www.ni.com/dataacquisition/nidaqmx.htm.

Device identification

When there is only one device connected to computer, inDeviceID field can be set to Auto. In this situation first available device will be found and connected.

inDeviceID can be used to pick one of multiple devices connected to computer. Set this field to Device alias (for example "Dev1"), product name or serial number. This parameters should be available in Measurement & Automation Explorer.

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.

See Also