CCS Standardfunction   Berechnen [any]
 

Berechnen [any]

Term [Str]

Rounding_Method [INT]

Description of Function

Links variables (function results) and decimal constants in a mathematical formula (parameter Term). In the case of variables, the `Berechnen' function operates exclusively with pure numerical values regardless of the units specified in the PAV. The units of the test result are also ignored by the Berechnen (Calculate) function.
Example: the reading of 7 V obtained from a voltage measurement is assigned to the variable UB2.
The function Berechnen(UB2+2.0) is then invoked. Following that, UB2 is passed to a D/A converter stimulus as a value with the unit mV. Result of the calculation: 9.0 mVAny units can be specified for the Berechnen function but they are treated simply as Remarks indicating to the reader how the results of the calculation are to be interpreted.

In DAPAS/Win, therefore, the units are shown in brackets.

Testing Points

None

Parameters

Term

Mathematical term consisting of a combination of variables, constants, the operators +,-,*,/, and round brackets.

Note: this term must not exceed 60 characters in length.

Rounding_Method

Specifies whether and how the result is to be rounded.

0= No rounding; the result is a floating-point number
1= Round to nearest whole number (2.4 becomes 2 and 2.6 becomes 3)
2= Round down to next whole number
3= Round up to next whole number

Example: calculating a total current figure from two separate measurements

Measurement

Measurement Parameters

Measured Value

x=DCI

1,0.02,0.1

2.0 A

y=DCI

1,0.02,0.1

0.3 A

Berechnen

x+y,0

2.3 (A)

Berechnen

2.9,2

2

Berechnen

2.1,3

3

Berechnen

-2.9,3

-2

Berechnen

-2.1,2

-3