DisplayData [Integer (two-dimensional array)]


Function

 

Sets the data to be drawn on the graph with the integer values of the two-dimensional array.

 

Format

 

Ret = dncGraph1.DisplayData(Data)

 

Parameters

 

Data [ C#: int[,] ]  [ VB.NET: Integer(,) ]  

Specifies the graph data. Specify the data as integer values in a two-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 are stored as integer values in a two-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, Line1, Line2], [Line0, Line1, Line2]]

 

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, 100, 200
Line No.1 data 100, 200, 300
Line No.2 data 200, 300, 400

Draw a graph with the above data.

C#

int Ret
int[,] Data = new int[3, 3];
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, line_no] = (line_no + data_no) * 100;
  }
}

Ret = dncGraph1.DisplayData(Data);

 

VB.NET

Dim Ret As Integer
Dim Data(2, 2) As Integer
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, line_no) = (line_no + data_no) * 100
  Next line_no
Next data_no

Ret = dncGraph1.DisplayData(Data)