Command Descriptions
AWG610 Arbitrary Waveform Generator User Manual
3-191
Table 3-47: Programming language math functions (cont.)
Function
Description
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 (
b
th 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
0 and
a
= 0: Always 0
If
b
0
0 and
a
< 0 and b is a positive integer: a*b
If
b
0
0 and
a
< 0 and b is a negative integer: Reciprocal of a*(-b)
If
b
0
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
p
and an amplitude
±
1.
If a = -2
p
, 0, 2
p
, 4
p
, or 6
p
, 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
p
and an amplitude
±
1.
If k is an even:
For
a
= k
p
to (k+1)
p
, sqr returns -1, 1.0 when
a
equals (k+1)
p
.
If k is an odd:
For
a
= k
p
to (k+1)
p
, sqr r1, except -1.0 when a = (k+1)
p
.
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
p
and an amplitude
±
1.
If
a
= 0, the value is 0. If
a
= 0.5
p
, it is 1.0.
If
a
=
p
, it is 0.0. If
a
= 1.5
p
, it is -1.
Summary of Contents for AWG610
Page 4: ......
Page 24: ...Preface AWG610 Arbitrary Waveform Generator User Manual...
Page 216: ...Quick Editing AWG610 Arbitrary Waveform Generator User Manual...
Page 220: ...The Table Editor AWG610 Arbitrary Waveform Generator User Manual...
Page 242: ...The Sequence Editor AWG610 Arbitrary Waveform Generator User Manual...
Page 288: ...The UTILITY Window AWG610 Arbitrary Waveform Generator User Manual...
Page 292: ...Capturing Waveforms AWG610 Arbitrary Waveform Generator User Manual...
Page 326: ...Programming Examples AWG610 Arbitrary Waveform Generator User Manual...
Page 338: ...File Management AWG610 Arbitrary Waveform Generator User Manual...
Page 424: ...Appendix B Performance Verification AWG610 Arbitrary Waveform Generator User Manual...
Page 440: ...Appendix E File Transfer Interface Outline AWG610 Arbitrary Waveform Generator User Manual...