Initializes a new instance of the DaqException class with the specified error message and NI-DAQmx driver error code.

Syntax

Namespace: NationalInstruments.DAQmx

public DaqException(string message, int errorCode)

Remarks


NI-DAQmx Driver Error Codes

Parameters

NameTypeDescription
messagestring

The error message that explains the cause of the exception.

errorCodeint

The NI-DAQmx driver error code that caused this exception to be thrown. Refer to NI-DAQmx Driver Error Codes for a list of possible values.