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



