GetSum [Int32]


Function

Gets the sum value.

 

Format

Ret = dncStat1.GetSum(InData , OutData )

 

Parameters

InData [ C#: int[] ] [ VB.NET: Integer() ]
Specifies the array that stores the data to be calculated.

 

OutData [ C#: out float ] [ VB.NET: Integer ]  
Specifies a variable to store the calculation result.

 

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 sum value.

 

Example

Calculates the sum value of triangular wave data with amplitude -10.0 to +10.0.

C#

int    Ret;

int[]  InData = new int[4];
float OutData;

InData[0] = 0;
InData[1] = 10;
InData[2] = -10;

InData[3] = 0;


ret = dncStat1.GetSum(InData, out OutData);

 

VB.NET

Dim Ret As Integer
Dim InData(3) As Integer
Dim OutData As Single


InData(0) = 0;
InData(1) = 10;
InData(2) = -10;

InData(3) = 0;

Ret = dncStat1.GetSum(InData, OutData)