DAQmx_CreateAnalogChannel


Creates a task and channel to measure or generate analog values.

Syntax

C++
Python
 
def DAQmx_CreateAnalogChannel(
	state: DAQmx_CreateAnalogChannelState,
	/,
	*,
	inDeviceID: str | None = None,
	inChannel: str | None = None,
	inCVType: ElectricalMode = ElectricalMode.Current,
	inIOType: DirectionMode = DirectionMode.Input,
	inTerminalConfig: DAQmxTerminalConfig = DAQmxTerminalConfig.Default,
	inMinValue: float = 0,
	inMaxValue: float = 5.0,
	inShuntResistorLocation: DAQmxShuntResistorLoc = DAQmxShuntResistorLoc.Default,
	inExtShuntResistorValue: float | None = None
)
-> outTaskID: int

Parameters

Name Type Default Description
Input will be modified ioState DAQmx_CreateAnalogChannelState
Input value inDeviceID str | None None Device alias, product name or serial number
Input value inChannel str | None None Name of the physical channel used to create a virtual channel
Input value inCVType ElectricalMode ElectricalMode.Current Electrical mode
Input value inIOType DirectionMode DirectionMode.Input Direction of channel
Input value inTerminalConfig DAQmxTerminalConfig DAQmxTerminalConfig.Default Input terminal configuration
Input value inMinValue float 0 Minimum value, that is expected to measure or generate
Input value inMaxValue float 5.0 Maximum value, that is expected to measure or generate
Input value inShuntResistorLocation DAQmxShuntResistorLoc DAQmxShuntResistorLoc.Default Location of the shunt resistor
Input value inExtShuntResistorValue float | None None Value of the shunt resistor
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.