|
|
DataqSdk Control > Methods > GetDataFrame |
Applies to: |
DATAQSDK Active X Control |
Description: |
Returns the most recent specified number of data frames (scans - data is in counts - see Converting Counts to Volts) to a variant (see How to Extract information from a Variant). One scan is equivalent to one sample of each active WinDaq channel. All data returned by GetDataFrame is historical information (i.e., not real time). |
Syntax: |
DataqSdk1.GetDataFrame(Count) (whereCount is the number of scans you are requesting) |
Example: |
Dim A As Variant
Private Sub DataqSdk1_ NewData(ByVal Count As Integer) A = DataqSdk1.GetDataFrame(DQChart1. Xmax) DQChart1. Chart (A) End Sub
Private Sub Start_Click() DataqSdk1. ADChannelCount = 1 DataqSdk1. EventPoint = DQChart1. Xmax DataqSdk1. Start End Sub
Private Sub Stop_Click() DataqSdk1. Stop End Sub |