WinDaq Control > Events > ControlError

Previous | Next

ControlError

Applies to:

WINDAQ Active X Control

Description:

Fires when a general control error from the Active X control occurs. Some common error codes are as follows:

-1:      Failed to link to device driver.

-2:      Bad configuration (such as wrong channel, etc.).

-3:      No data acquired.

-3000:      Failed to setup the monitoring process (applies to stream only).

-5:      There are too many data points to return.

If you continue to receive a control 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()

WinDaq1. EventLevel = 10

WinDaq1. Start

End Sub

 

Private Sub Stop_Click()

WinDaq1. Stop

End Sub

 

Private Sub WinDaq1_NewData(ByVal Count As Integer)

DQChart1. Chart (WinDaq1. GetDataStream(FormatBinary))

End Sub

 

Start Sub WinDaq1_ControlError (ByVal Code As Long)

Label1.Caption=Code

End Sub

 

Reference Materials | Top