DAQmx_WriteAnalogScalar
Sets an analog input to a specified value.
Syntax
C++
Python
def DAQmx_WriteAnalogScalar( state: DAQmx_WriteAnalogScalarState, inValue: float, /, *, inDeviceID: str | None = None, inTaskID: int = 0, inTimeout: int | None = None ) -> outTaskID: int | None
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
ioState | DAQmx_WriteAnalogScalarState | ||
![]() |
inDeviceID | str | None | None | Device alias, product name or a serial number |
![]() |
inTaskID | int | 0 | ID of task to write samples to |
![]() |
inTimeout | int | None | None | Time (in milliseconds) to wait for the function to write sample |
![]() |
inValue | float | Value to write | |
![]() |
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.



