SetBufferData [Single (one-dimensional array)]


Function

 

Adds one-dimensional array floating-point type (System.Single) data to the buffer.

 

Format

 

Ret = dncDataSet1.SetBufferData(DataSetNum, Data)

 

Parameters

 

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

Specifies the number of datasets to set.
 

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

Specifies the data to be added to the buffer as a one-dimensional array of System.Single type.

Please prepare the array to be prepared in multiples of the data set unit.   

 

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

 

Adds one-dimensional array floating-point type (System.Single) data to the buffer.

 

Example

 

Adds the data "0.0, 100.0, 200.0" to the buffer.

C#

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

DataSetNum = 3;
Data[0]    = 0.0;
Data[1]    = 100.0;
Data[2]    = 200.0;

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

 

VB.NET

Dim Ret As Integer
Dim DataSetNum As Integer
Dim Data(2) As Single

DataSetNum = 3
Data(0)    = 0.0
Data(1)    = 100.0
Data(2)    = 200.0

Ret = dncDataSet1.SetBufferData(DataSetNum, Data)