|
|
DataqFile Controls > ReadDataqFile > Properties > CurrentLocation |
CurrentLocation
Applies to: |
READDATAQFILE Active X Control |
Description: |
Returns the current location in the file in terms of offset from the beginning (number of samples). To determine the offset in seconds use the SampleRate. For example, if your sample rate was 1000 samples/second and the offset is 1000 - you are 1 second from the beginning of the file. This property is read-only. |
Syntax: |
variable=ReadDataqFile1.CurrentLocation |
Variable: |
|
Example: |
Private Sub CloseFile_Click() ReadDataqFile1. Close End End Sub
Private Sub Form_Load() ReadDataqFile1. Open DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary)) End Sub
Private Sub MoveRight_Click() ReadDataqFile1. MoveTo DQChart1. Xmax, 1 DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary)) Label1.Caption = "Current location in the file is " & ReadDataqFile1.CurrentLocation & "." Label2.Caption = ReadDataqFile.CurrentLocation/ReadDataqFile. SampleRate & "seconds" End Sub
Private Sub MoveLeft_Click() ReadDataqFile1. MoveTo -DQChart1. Xmax, 1 DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary)) Label1.Caption = "Current location in the file is " & ReadDataqFile1.CurrentLocation & "." Label2.Caption = ReadDataqFile.CurrentLocation/ReadDataqFile. SampleRate & "seconds" End Sub |