To write multiple lines of statements to be executed, write them as follows:
if
conditional expression
then
{
A statement to be executed if true
:
}
if
conditional expression
then
{
A statement to be executed if true
:
} else {
A statement to be executed if false
:
}
Settings can be changed by substituting values into variables that represent settings
such as SL. For example, the following statement will cause the source level to be varied
using a sine function with 10-V amplitude.
SL = 5 * SIN( 2*PI*TM )
Here, SL is a built-in variable that represents the source level, SIN() is the sine function,
PI is a built-in variable that represents the ratio of circumference to diameter, and TM is a
built-in variable that represents the timestamp. The above statement will generate a 1-Hz
sine wave with ±5-V amplitude.
8.5 User-Defined Computation
8-9
IM 765601-01E
Computation
3
2
1
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
App
Index