GW Instek APS-1102 Control Software User Manual User Manual
Page 72
APS-1102 Control Software User Manual
8-8
e) Built-in functions
The functions shown in “Table 8-4 Built-in Function” can be used in the numerical expression
input section [Y=] in the “ARB”.
The argument for the trigonometric function is a radian expression.
Power() and phase() are functions that specify the real part in expression 1 and the imaginary part in
expression 2 and return the size or declination of a complex vector.
tri() is a function that specifies the angle in expression 1 and the inclination in expression 2 to define
the triangle wave. Expression 2 can be omitted. When omitted, an inclination of 50% is used.
sqw() is a function that specifies the angle in expression 1, the duty ratio in expression 2, and the
transition in expression 3 to define the square wave. Expression 2 and expression 3 can be omitted.
When omitted, a duty ratio of 50% and a transition of 0% are used. However, expression 2 must be
specified when expression 3 is specified.
rnd() is a function that defines noise without using an expression.
Table 8-4 Built-in Functions
sin(expression) cos(expression) tan(expression) atn(expression)
sqr(expression) exp(expression) log(expression)
power(expression_1,expression_2) phase(expression_1,expression_2)
tri(expression_1,expression_2) sqw(expression_1,expression_2,expression_3) rnd()
f) Inter-waveform numerical expression examples
Some sample inter-waveform numerical expressions are shown below.
In an example where there is only one page, the range is the whole horizontal axis range and
description is omitted.
One cycle of sine wave (horizontal axis unit: addresses 0 to 4096, vertical axis unit: data ±32767)
Page 1 [Constant] [fs=32767;] [Y=] [fs*sin(x*s)]
[s=2*pi/4096;]
4,096 addresses are regarded as 2.
One cycle of sine wave (horizontal axis unit: time 0 to 1 ms, vertical axis unit: voltage ±10V)
Page 1 [Constant] [fs=10;]
[Y=] [fs*sin(x*s)]
[s=2*pi/1e-3;]
1 ms is regarded as 2.
One cycle of sine wave (horizontal axis: user unit 0 to 1, vertical axis: user unit 1 to +1)
Page 1 [Constant] [s=2*pi;]
[Y=] [sin(x*s)]
One cycle of sine wave (horizontal axis: user unit 0 to 6.283185, vertical axis: user unit 1 to +1)
Page 1 [Constant] [None]
[Y=] [sin(x)]
One cycle of square wave (horizontal axis: user unit 0 to 6.283185, vertical axis: user unit 1 to
+1)