DAQmx_GetDigitalChannel
Returns array of values from a digital channels.
Syntax
C++
Python
def DAQmx_GetDigitalChannel( state: DAQmx_GetDigitalChannelState, /, *, inDeviceID: str | None = None, inTaskID: int = 0, inTimeout: int | None = None ) -> ( outValues: list[bool], outTaskID: int | None )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
ioState | DAQmx_GetDigitalChannelState | ||
![]() |
inDeviceID | str | None | None | Device alias, product name or a serial number |
![]() |
inTaskID | int | 0 | ID of task to read sample from |
![]() |
inTimeout | int | None | None | Time (in milliseconds) to wait for the function to get sample |
![]() |
outValues | list[bool] | Digital values read from task | |
![]() |
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.



