|
|
DataqSdk Control > Methods > GetDataFrameEx |
Applies to: |
DATAQSDK Active X Control |
Description: |
Returns the most recent specified number of data frames to an integer array. One frame is equivalent to one sample of each active WinDaq channel. All data returned by GetDataFrame is historical information (i.e., not real time). GetDataFrameEx returns binary data. Use GetDataFrame to return data as a variant. The data copied is aligned with the first channel. This data format cannot be used with LabView or Visual Studio.Net. Note: 1) Make sure you have enough data available before you copy it, using the AvailableData property. 2) Make sure the array allocated is large enough to store all the data requested. |
Syntax: |
DataqSdk1.GetDataFrameEx(A(0),Count) (where A(0) is a pointer to a 16-bit integer array and Count is the number of data points, not scans, that you are requesting (32,767 maximum)) |
Example: |
Dim A(1000) As Integer
Private Sub DataqSdk1_ NewData(ByVal Count As Integer) DataqSdk1.GetDataFrameEx A(0), DQChart1. Xmax DQChart1. ChartEx A(0), 1, DQChart1. Xmax 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 |