DataqFile Controls > ReadDataqFile > Methods > GetDataEx

Previous | Next

GetDataEx

Applies to:

READDATAQFILE Active X Control

Description:

Acquire data and place in buffer. Data is scaled in engineering units.

The first parameter is a one dimensional array of double floating point values scaled in engineering units.

The second parameter is the number of data points (sets of data values, one for each channel).

Sometimes it is necessary to process the data before it is displayed. The variant returned from GetData is difficult to access in VB since variant operation controls are not easy to find (see also How to Extract Information from a Variant). The GetDataEx method may be used in these instances.

This data format cannot be used with LabView or Visual Studio.Net.

Syntax:

ReadDataqFile1.GetDataEx array(0),count

Where array is a one dimensional array of double floating point values and count is the number of data points you want to copy.

Example:

Dim array(100) As Double

ReadDataqFile1.GetDataEx array(0),count

See also the Sample Program ReadFileSingleDataPoint.vbp.

Note: Be sure you have enough data available before you copy it and make sure the array allocated is large enough to store the amount of data requested.

 

 

Reference Materials | Top