Command Descriptions
AWG710&AWG710B Arbitrary Waveform Generator User Manual 3-201
min(a, b) Returns smaller (minimum) value of a and b.
noise() Generates pseudo Gaussian distribution white noise signal with a standard
deviation (= RMS) of 1.
pow(a,b) Exponentiation (bth power of a, or a^b)
A negative value may be specified for a only if b is an integer. Otherwise, NaN
will result. The pow function returns one of the following values:
If b = 0: Always 1
If b
≠ 0 and a = 0: Always 0
If b
≠ 0 and a < 0 and b is a positive integer: a*b
If b
≠ 0 and a < 0 and b is a negative integer: Reciprocal of a*(-b)
If b
≠ 0 and a < 0, NaN (Not a Number)
rnd() Returns a random number in the 0 to 1 range.
Generated base seed = (253 * seed + 1)% 16777216,
return seed/16777216. Seed is a 32–bit unsigned integer.
round(a) Rounds off the value of a to an integer.
saw(a) Saw tooth wave with a cycle of 2π and an amplitude ±1.
If a = -2π, 0, 2π, 4π, or 6π, etc., the value is -1.
The value approaches 1 at points immediately before these.
(This function will not take the value 1.0.)
sign(a) Sign of a (1 if a > 0; –1 if a < 0; 0 if a = 0).
sin(a) Sine value of a.
sinc(a) Same as sin(a)/a, except that 1 results if a=0.
sinh(a) Hyperbolic sine value of a.
sqr(a) Rectangular wave with a cycle of 2π and an amplitude ±1.
If k is an even:
For a = kπ to (k+1)π, sqr returns -1, except +1.0 when a equals (k+1)π.
If k is an odd:
For a = kπ to (k+1)π, sqr returns +1, except -1.0 when a = (k+1)π.
sqrt(a) Square root value of a.
srnd(seed) Sets the random number generator seed value. Seed is 0 to 2
31
-1.
Default value is 0.
tan(a) Tangent value of a.
tanh(a) Hyperbolic tangent value of a.
tri(a) Triangular wave with a cycle of 2π and an amplitude ±1.
If a = 0, the value is 0. If a = 0.5π, it is 1.0.
If a = π, it is 0.0. If a = 1.5π, it is -1.
Table 3-47: Programming language math functions
Function Description