DataqFile Controls > WriteDataqFile > Properties > FileName

Previous | Next

FileName

Applies to:

WRITEDATAQFILE Active X Control

Description:

Specifies the path and name of the file you are creating. Default is C:\Sample.wdq - .wdq is the file extension for WinDaq files. All files saved using WriteDataqFile are WinDaq-compatible and will be able to be read using WinDaq Waveform Browser software. If you attempt to write data to a file that already exists you will get a FileError. No data will be written to file - the data will be ignored until you specify a new file name.

Syntax:

WriteDataqFile1.FileName=variable (where variable is the path and name of the file to send data to)

Variable:

String

Example:

Private Sub DataqSdk1_ NewData(ByVal Count As Integer)

x = DataqSdk1. GetData

WriteDataqFile1. SaveData (x)

DQChart1. Chart (x)

End Sub

 

Private Sub Start_Click()

DataqSdk1. EventPoint = 20

'filename must be in quotes

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

 

Reference Materials | Top