Function
Returns error information when an error occurs.
Format
dncDaq1_OnError(object sender, short DeviceNo, DncErrorEventArgs e)
Parameters
sender [ C#: object ] [ VB.NET: object ]
The event source.
DeviceNo [ C#: short ] [ VB.NET: Short ]
Returns the device No. where the error occurred.
However, if it occurs in DncDaq itself, it returns -1.
e [ C#: DncErrorEventArgs ] [ VB.NET: DncErrorEventArgs ]
Event arguments. Details are shown below.
Event argument
Arguments |
C# Type |
VB.NET Type |
Description |
Error |
int |
Integer |
Indicates the error code.(Refer to: Error code details) |
ErrorCategory |
int |
Integer |
Returns the category in which the error occurred (component/driver information). See About Error Events for details. |
ErrorType |
int |
Integer |
Returns the type of error (method/property/event, etc.). See About Error Events for details. |
Param |
int |
Integer |
Returns the arguments defined by ErrorCategory/ErrorType. See About Error Events for details. |
Remarks
This event is used to acquire error information when an error occurs.