Table 7-4 operators, Table 7-5 embedded function – GW Instek APS-1102 Control Software User Manual User Manual
Page 73

APS-1102A Control Software User Manual
60
Operator
In constant input section [Constant] and formula input section [Y=], combination of Table 7-4 operators
can be used.
The operators in the following table are shown in the descending order of the priority.
Logical operator returns 1 when the given condition is true, and returns 0 when false.
Table 7-4 Operators
Operator
Coupling rule
Remarks
( ), Function, Constant, User-defined
variable, Number string
+,
, !
Unary operator. ! is a logical operator.
^
Binary operator, Power
*, /
Binary operator, Multiplying/Dividing calculation
+,
Binary operator, Adding/Subtracting calculation
<, <=, >, >=
Logical operator, Bigger/Smaller comparison
==, !=
Logical operator, Equivalent comparison
&&
Logical operator, Logical multiply
||
Logical operator, Logical add
Embedded function
In the constant input section [Constant] and the formula input section [Y=], conbination of Table 7-5
functions can be used.
Table 7-5 Embedded Function
Function
Description
sin(arg), cos(arg),
tan(arg)
Triangle functions. Arguments are in radians.
atn(arg)
Arctangent function. Returns the angle in radians whose tangent is the
argument.
sqr(arg)
Returns the positive square root of the argument.
exp(arg)
Exponential whose base is e (base of natural logarithm)
log(arg)
Returns natural logarithm.
log10(arg)
Returns common logarithm.
power(arg1, arg2)
Returns the magnitude of the complex vector whose real part is the 1st
argument and imaginary part is the 2nd.
phase(arg1, arg2)
Returns the angle of the complex vector whose real part is the 1st argument
and the imaginary part is the 2nd.
tri(arg1, arg2)
Triangle wave whose angle is the 1st argument and slope (symmetry) is the
2nd. The 2nd argument is optional. When omitted, it is regarded as 50%.
sqw(arg1, arg2, arg3)
Square wave whose angle is the 1st argument, duty ratio is the 2nd, transition
is the 3rd. The 2nd and the 3rd arguments are optional. When omitted, the 2nd
is regarded as 50% and the 3rd regarded as 0%. The 2nd argument cannot be
omitted when the 3rd is specified.
rnd()
White noise whose magnitude is uniformly distributed within
1. No
argument is specified.