WinDaq Control > Methods > GetDataFrame

Previous | Next

GetDataFrame

Applies to:

WINDAQ Active X Control

Description:

Returns the most recent specified number of data frames as acquired by WinDaq software to a variant. One frame, or scan, is equivalent to one sample of each active WinDaq channel. The maximum number of scans you can request is equal to 32,767 divided by the number of enabled channels. The data format returned is defined by the Format argument - either 0 (FormatBinary) for binary data or 1 (FormatScaled) for data scaled into engineering units. All data returned by GetDataFrame is historical information (i.e., not real time).

Syntax:

WinDaq.GetDataFrame(Count,Format) (where Count is an integer equal to the number of scans you are requesting and Format is either 0 (FormatBinary) or 1 (FormatScaled))

Variables:

Integer

Example:

Dim A As Variant

 

Private Sub WinDaq1_ NewData(ByVal Count As Integer)

A = WinDaq1.GetDataFrame(DQChart1. Xmax,FormatBinary)

DQChart1. Chart (A)

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