DaqException Class
- Updated2026-02-03
- 1 minute(s) read
Represents the exception that is thrown when an NI-DAQmx driver error occurs.
Derives from
- SystemException
- ISerializable
Syntax
Namespace: NationalInstruments.DAQmx
public class DaqException : SystemException, ISerializable
Remarks
Example applications are located in the <Public Documents>\National Instruments\NI-DAQ\Examples\DotNET4.x directory or in the Start menu at National Instruments»NI-DAQmx»NI-DAQmx Examples.
NI-DAQmx Driver Error Codes
Thread Safety
All members of this type are safe for multithreaded operations.
Constructors
| Name | Description |
|---|---|
| DaqException(SerializationInfo, StreamingContext) | Creates a new instance of the DaqException class with serialized data. |
| DaqException(string, int) | Initializes a new instance of the DaqException class with the specified error message and NI-DAQmx driver error code. |
| DaqException(string, int, Exception) | Initializes a new instance of the DaqException class with the specified error message, NI-DAQmx driver error code, and reference to the inner exception that is the cause of the exception. |
| DaqException(string, Exception) | Initializes a new instance of the DaqException class with the specified error message and a reference to the inner exception that is the cause of the exception. |
| DaqException() | Initializes a new instance of the DaqException class. |
| DaqException(string) | Initializes a new instance of the DaqException class with the specified error message. |
Properties
| Name | Description |
|---|---|
| Error | Gets the NI-DAQmx driver code for the error that occurred. |
Methods
| Name | Description |
|---|---|
| GetObjectData(SerializationInfo, StreamingContext) | Sets the SerializationInfo object with information about the exception. |