WinDaq Control > Methods > GetDataStreamEx

Previous | Next

GetDataStreamEx

Applies to:

WINDAQ Active X Control

Description:

GetDataStreamEx ensures waveform data continuity by passing a continuous stream of WinDaq-acquired data to your program. When using GetDataFrameEx to retrieve WinDaq data, there are no guarantees that the returned information is either gap free or non-overlapping. Therefore, GetDataFrameEx is useful for returning simply a specified quantity of historical information. GetDataStreamEx copies waveform data to an integer array as binary data. Use GetDataStream to return waveform data scaled in engineering units. The data will be 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.

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

Syntax:

Windaq1.GetDataStreamEx(A(0),Count (where A(0) is a pointer to the integer array, and count is the number of data points that you are requesting)

Variables:

Integer

Example:

Dim A(10000) As Integer

Private Sub Stop_Click()

WinDaq1. Stop

End Sub

 

Private Sub Start_Click()

WinDaq1. EventLevel = 20

WinDaq1. Start

End Sub

 

Private Sub WinDaq1_ NewData(ByVal Count As Integer)

WinDaq1.GetDataStreamEx A(0),Count

DQChart1. ChartEx A(0),1,Count

End Sub

 

Reference Materials | Top