|
|
DataqSerial Control > Events > DriverError |
DriverError
Applies to: |
DATAQSERIAL Active X Control |
Description: |
Fires when a driver error is detected by the control. Some common error codes are as follows: -1: Invalid device -2: Invalid parameter -3: Negative channel count -800: Failed to initialize the COM port -999: Failed to initialize the device -1000: Wrong Key (applies to DI-194 only) -1234: Failed to start scanning -3000: Failed to start the monitoring process (applies to stream only) If you continue to receive a driver error and absolutely cannot determine the problem add the line "debug = 2" to the [Global] section of C:\Windows\tpdataq.ini and try running your program again. You will see a Windows message box showing API functions and operations being used. Using this method, customer service can better understand your problem. Be sure to remove the line once the problem is resolved. |
Example: |
Private Sub Start_Click() DataqSerial1. EventLevel=20 DataqSerial1. Start End Sub
Private Sub Stop_Click() DataqSerial1. Stop End Sub
Private Sub DataqSerial1_NewData(ByVal Count As Integer) DQChart1. Chart (DataqSerial1. GetData) End Sub Private Sub DataqSerial1_DriverError(ByVal Code As Integer) Label1.Caption = Code End Sub |