DisplayData [Floating point number (one-dimensional array)]


Function

 

Sets the data to be drawn on the graph as floating point numbers in a one-dimensional array.

 

Format

 

Ret = dncGraph1.DisplayData(Data)

 

Parameters

 

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

Specifies the graph data. Specify the data as floating-point numbers in a one-dimensional array.
 

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

 

The data to be drawn is stored as floating point numbers in a one-dimensional array.

 

According to the number of lines and the number of Y-axis data to be drawn, the data from the first channel to the last channel are stored as a set.

 

[Stored image]

Draw 3 lines for 2 Y-axis data

[Line0[data0], Line1[data0], Line2[data0], Line0[data1],Line1[data1], Line2[data1]]

 

The graph is drawn in a format that the data are inserted in order to the left end of the Y axis.

 

Example

 

Line No.0 data 0.0, 100.0, 200.0
Line No.1 data 100.0, 200.0, 300.0
Line No.2 data 200.0, 300.0, 400.0

Draw a graph with the above data.

C#

int Ret
float[] Data = new float[9];
short line_no, data_no;

for(data_no = 0; data_no < 3; data_no++){
  for(line_no = 0; line_no < 3; line_no++){
      Data[(data_no * 3) +line_no] = (float)((line_no + data_no) * 100);
  }
}

Ret = dncGraph1.DisplayData(Data);

 

VB.NET

Dim Ret As Integer
Dim Data(8) As Single
Dim line_no As Short
Dim data_no As Short

For data_no = 0 To 2
  For line_no = 0 To 2
      Data((data_no * 3) + line_no)) = (line_no + data_no) * 100
  Next line_no
Next data_no

Ret = dncGraph1.DisplayData(Data)