WinDaq Control > Methods > GetDataFrameEx

Previous | Next

GetDataFrameEx

Applies to:

WINDAQ Active X Control

Description:

Returns the most recent specified number of data frames as acquired by WinDaq software 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 only. Use GetDataFrame to return data in scaled units using a variant. 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.

2) Make sure the array allocated is large enough to store all the data requested.

Syntax:

WinDaq1.GetDataFrameEx(Array(0),Count) (where array is a 16 bit integer array and Count is the number of data points that you are requesting (0 to 32,767))

Variables:

Integer

Example:

Dim A(1000) As Integer

Private Sub WinDaq1_ NewData(ByVal Count As Integer)

WinDaq1.GetDataFrameEx A(0), DQChart1. Xmax

DQChart1. ChartEx A(0), 1, DQChart1. Xmax

End Sub

 

Private Sub Start_Click()

WinDaq1. EventLevel = DQChart1. Xmax

WinDaq1. Start

End Sub

 

Private Sub Stop_Click()

WinDaq1. Stop

End Sub

 

Reference Materials | Top