Tektronix AWG610 Portable Generator User Manual


 
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 (bth power of a,ora^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 2p and an amplitude ±1.
Ifa=-2p,0,2p,4p,or6p, 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 (1ifa>0;Ć1ifa<0;0ifa=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 2p and an amplitude ±1.
If k is an even:
For a =kp to (k+1)p, sqr returns -1, except +1.0 when a equals (k+1)p.
If k is an odd:
For a =kp to (k+1)p, sqr returns +1, except -1.0 whena=(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 2p and an amplitude ±1.
If a = 0, the value is 0. If a = 0.5p, it is 1.0.
If a = p, it is 0.0. If a = 1.5p,itis-1.