|
|
DataqFile Controls > ReadDataqFile > Properties > SampleRate |
SampleRate
Applies to: |
READDATAQFILE Active X Control |
Description: |
Returns the header for the sample rate of the file being read. This property is read-only. |
Syntax: |
variable=ReadDataqFile1.SampleRate (reads actual Sample Rate) |
Variable: |
|
Example: |
Private Sub CloseFile_Click() ReadDataqFile1. Close End End Sub
Private Sub Form_Load() ReadDataqFile1. Open DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary)) Label1.Caption = "The Sample Rate for this file was " & ReadDataqFile1.SampleRate & "." End Sub
Private Sub MoveRight_Click() ReadDataqFile1. MoveTo DQChart1. Xmax, 1 DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary)) End Sub
Private Sub MoveLeft_Click() ReadDataqFile1. MoveTo -DQChart1. Xmax, 1 DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary)) End Sub |