|
|
DataqFile Controls > ReadDataqFile > Methods > GoToEventMarker |
GoToEventMarker
Applies to: |
READDATAQFILE Active X Control |
Description: |
Go to the event marker on a specified channel. Works similarly to MoveTo - essentially "MoveTo" an event marker. Each file has at least 2 event markers - the beginning and the end of a file. The first parameter is the event marker offset. A negative number moves the file pointer to the left; a positive number moves the file pointer to the right (i.e., +1 for next event marker, -1 for previous event marker). The second parameter is the channel index (0 is the first channel, 1 is the second channel, etc.). |
Syntax: |
ReadDataqFile1.GoToEventMarker(Offset,Channel) (where offset is a positive integer for forward direction x number of event markers and negative integer for backward direction x number of event markers and channel is the channel index) |
Variables: |
|
Example: |
Private Sub CloseFile_Click() ReadDataqFile1. Close End End Sub
Private Sub EventMarkerLeft_Click() 'goes to previous event marker in first channel ReadDataqFile1.GoToEventMarker -1, 0 DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary)) Label1.Caption = ReadDataqFile1. CurrentLocation End Sub
Private Sub EventMarkerRight_Click() 'goes to next event marker in first channel ReadDataqFile1.GoToEventMarker 1, 0 DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary)) Label1.Caption = ReadDataqFile1. CurrentLocation 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 = ReadDataqFile1. CurrentLocation End Sub
Private Sub MoveLeft_Click() ReadDataqFile1. MoveTo -DQChart1. Xmax, 1 DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary)) Label1.Caption = ReadDataqFile1. CurrentLocation End Sub |