GetBufferData [Single (two-dimensional array)]


Function

 

Gets the floating-point type (System.Single) data of a two-dimensional array from the buffer.

 

Format

 

Ret = dncDataSet1.GetBufferData(DataSetNum, Data)

 

Parameters

 

DataSetNum [ C#: ref int ]  [ VB.NET: Integer ]  

Specifies the number of datasets to set.
After execution, the number of datasets actually acquired is stored.

 

Data [ C#: float[,] ]  [ VB.NET: Single(,) ]  

Specifies the storage destination of the acquired data as a two-dimensional array of System.Single type.

Allocate element 1 for the number of data sets you want to acquire, and allocate element 2 for each data set.

 

Return value

 

Ret [ C#: int ] [ VB.NET: Integer ]

 

Value

Description

0

Normality completion

510001

The input parameter is invalid. Check the parameter contents.

Other errors (see: Error code details)

 

Remarks

 

Gets the floating-point type (System.Single) data of a two-dimensional array from the buffer.

 

Example

 

Get 10 sets of data, while 1 set has 3 data. 

C#

int     Ret;
int     DataSetNum;
float[,]  Data = new float[10,3];

DataSetNum = 10;

Ret = dncDataSet1.GetBufferData(ref DataSetNum, Data);

 

VB.NET

Dim Ret As Integer
Dim DataSetNum As Integer
Dim Data(10,3) As Single

DataSetNum = 10

Ret = dncDataSet1.GetBufferData(DataSetNum, Data)