DAQmx_SetDigitalChannel


Sets array of values to a digital channels.

Syntax

C++
Python
 
def DAQmx_SetDigitalChannel(
	state: DAQmx_SetDigitalChannelState,
	inValues: list[bool],
	/,
	*,
	inDeviceID: str | None = None,
	inTaskID: int = 0,
	inTimeout: int | None = None
)
-> outTaskID: int | None

Parameters

Name Type Default Description
Input will be modified ioState DAQmx_SetDigitalChannelState
Input value inDeviceID str | None None Device alias, product name or a serial number
Input value inTaskID int 0 ID of task to write sample to
Input value inTimeout int | None None Time (in milliseconds) to wait for the function to set sample
Input value inValues list[bool] Values to write to channel
Output value outTaskID int | None 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.