|
|
DataqFile Controls > WriteDataqFile > Properties > SampleRate |
SampleRate
Applies to: |
WRITEDATAQFILE Active X Control |
Description: |
WinDaq Waveform Browser software needs to know the rate at which data was acquired for a variety of calculations (timing measurements, statistical measurements, frequency transformations, etc.). This property allows you to write the per-channel sample rate for the file into the header. This property should always be used when writing data to file. |
Syntax: |
WriteDataqFile1.SampleRate=variable (where variable is the sample rate of the data being written to the file) |
Variable: |
|
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 WriteDataqFile1.SampleRate = DataqSdk1.SampleRate DataqSdk1. Start WriteDataqFile1. Open Label1.Caption = Format(DataqSdk1. SampleRate, "0.00") End Sub
Private Sub Stop_Click() DataqSdk1. Stop WriteDataqFile1. Close End Sub |