nidaqmx.errors

exception nidaqmx.errors.DaqError(message, error_code, task_name='')[source]

Bases: nidaqmx.errors.Error

Error raised by any DAQmx method.

property error_code

Specifies the NI-DAQmx error code.

Type

int

property error_type

Specifies the NI-DAQmx error type.

Type

nidaqmx.error_codes.DAQmxErrors

exception nidaqmx.errors.DaqReadError(message, error_code, samps_per_chan_read, task_name='')[source]

Bases: nidaqmx.errors.DaqError

Error raised by DAQmx write method that includes the amount of data that was read.

property samps_per_chan_read

Indicates the number of samples successfully read.

Type

int

nidaqmx.errors.DaqResourceWarning

alias of ResourceWarning

exception nidaqmx.errors.DaqWarning(message, error_code)[source]

Bases: Warning

Warning raised by any NI-DAQmx method.

property error_code

Specifies the NI-DAQmx error code.

Type

int

property error_type

Specifies the NI-DAQmx error type.

Type

nidaqmx.error_codes.DAQmxWarnings

exception nidaqmx.errors.DaqWriteError(message, error_code, samps_per_chan_written, task_name='')[source]

Bases: nidaqmx.errors.DaqError

Error raised by DAQmx write method that includes the amount of data that was written.

property samps_per_chan_written

Indicates the number of samples successfully written.

Type

int