|
|
DataqFile Controls > WriteDataqFile > Events > FileError |
FileError
Applies to: |
WRITEDATAQFILE Active X Control |
Description: |
Fires when you fail to write to, open or access a file. Some error codes are as follows: 250 File path is too long 80 Failed to open file Failed to access file. Same as calling GetLast Error() when file accessing has failed. If you continue to receive a file 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 WriteDataqFile1. FileName = "c:\temp\sample1.wdq" DataqSdk1. Start WriteDataqFile1. Open Label1.Caption = Format(DataqSdk1. SampleRate, "0.00") End Sub
Private Sub Stop_Click() DataqSdk1. Stop WriteDataqFile1. Close End Sub
Private Sub DataqFile1_FileError (ByVal Code As Long) Label1.Caption=Code End Sub |