GW Instek APS-1102 Control Software User Manual User Manual
Page 71
8.1 Generation of Standard Waveform and Numerical Expression
Waveform
8-7
When the horizontal axis unit is [Time] and the cycle is 1 ms, the result of the expression will be
1e-3 = 2*
*0.0001591..., a value that barely changes around the 0 of sine wave.
If the vertical axis unit is [User unit] and 0 to 1, the result of the expression will be 1 =
2*
*0.1591..., waveform of about one/sixth of the former half of sine wave.
To create the simplest expression to obtain one cycle of a sine wave, set the horizontal axis unit to
[User unit] and the range between 0 and 6.283185.
The [Y=] value in the numerical expression is affected by the vertical axis unit set on the system
setting
screen.
“8.5.6 Vertical axis unit”
For example, assume that expressions such as [Y=] or [sin (x)] are used to specify the sine wave.
The value for the sin() function is ±1.
When the vertical axis unit is [Data], the range is between
32768 and +32767. Therefore, the result
of this expression is a waveform with a very small amplitude close to 0.
When the vertical axis unit is [Voltage] and the amplitude is 20 Vp-p, the range is ±10, so the result
of this expression is 1/10 of a full-scale sine wave.
When the vertical axis unit is [User unit] and the range is between
1 and +1, the result of this
expression is a full-scale sine wave.
If the calculation results exceed the
full-scale range, the waveform is clipped at the full-scale
range.
d) Operators
The operators in “Table 8-3 Operators” can be used in the constant input section [Constant] and
numerical expression input section [Y=].
The order of operator priority ranges from top (highest) to bottom (lowest).
The logical operator returns 1 when the condition is true and 0 when the condition is 1.
Table 8-3 Operators
Operator Associativity
Remark
( ), function, constant, user-defined
variable, numerical string
+ - !
Monadic operator, ! is a logical operator
^
Binary operator, exponential
* /
Binary operator, multiplication/division
+ -
Binary operator, addition/subtraction
< <= > >=
Logical operator, size comparison
== !=
Logical operator, Equivalence comparison
&&
Logical operator, AND
||
Logical operator, OR