|
|
DataqFile Controls > WriteDataqFile > Events > DataError |
DataError
Applies to: |
WRITEDATAQFILE Active X Control |
Description: |
Most commonly fires when you attempt to change the number of channels during recording. Some common error codes are as follows: -1 Data in invalid dimension (only one- or two-dimensional data is acceptable) If you continue to receive a data 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 DataqSdk1_ NewData(ByVal Count As Integer) WriteDataqFile1. SaveData (DataqSdk1. GetData) DQChart1. Chart (DataqSdk1. GetData) End Sub
Private Sub Start_Click() DataqSdk1. EventPoint = 20 DataqSdk1. Start WriteDataqFile1. Open End Sub
Private Sub Stop_Click() DataqSdk1. Stop WriteDataqFile1. Close End Sub
Private Sub DataqFile1_DataError (ByVal Code As Long) Label1.Caption=Code End Sub |