262
SDA-OM-E Rev H
Functions
These are mainly of the form C = F (A), where A is the argument, or input to the function.
Abs
Abs (A) calculates the absolute value of an integer or a real number, so the
result is always positive or zero. A can be any number in the range of the VB
system.
Atn
Atn (A) calculates the angle of which A is the tangent. Because infinitely many
angles can have the same tangent, the output of Atn always lies in the range
minus
π
/ 2 to plus
π
/ 2. The input can be any positive or negative value in the
range of the VB system.
CDbl
CDbl (A) calculates a double precision real variable, equal to A.
CInt
Cint (A) calculates the integer value nearest to A, which can be any acceptable
VBS number. Cint (-7.4) = -7. Integers are signed 16-bit values in the range -
32767 to + 32767.
CLng
CLng (A) calculates the nearest long integer to the value A. Long integers are
signed 32-bit values in the approximate range -21.5 M to + 21.5 M.
Cos
Cos (A) calculates the cosine of any integer or real number, giving an output that
is never greater than plus one or less than minus one.
CSng
CSng (A) calculates a single precision real variable equal to A.
Exp
Exp (A) calculates the value of e
A
.
Int
Cint (A) calculates the integer value next below A, which can be any acceptable
VBS number. Int (-7.4) = -8.
Log
Log (A) calculates the natural logarithm (to base e), of any acceptable VBS
number greater than zero. A negative number or zero will create an error.
To calculate Log
10
(A), use Log
10
(A) = Log(A) / Log(10)
Mod
A Mod (B) calculates the modulus of A, which is the remainder after A has been
divided by B.
34 Mod 8 = 2. 34 Mod 55 = 0. -34 Mod 13 = -8. 21 Mod -8 = 5.
Randomize
Calculates a new seed for the pseudo-random number generator.
Randomize Timer uses the real-time clock for this purpose.
Sin
Sin (A) calculates the sine of any integer or real number, giving an output that is
never greater than +1 or less than -1.
Sqr
Sqr (A) calculates the square root of any integer or a real number that is not
negative. If A is negative, an error will occur.
Timer
Time since the previous midnight in whole seconds.
Summary of Contents for SDA
Page 1: ...SERIAL DATA ANALYZER OPERATOR S MANUAL December 2007 ...
Page 223: ...SDA Operator s Manual Example 6 SDA OM E Rev H 223 ...
Page 225: ...SDA Operator s Manual SDA OM E Rev H 225 ...
Page 246: ...246 SDA OM E Rev H ...
Page 247: ...SDA Operator s Manual Excel Example 5 Using a Surface Plot SDA OM E Rev H 247 ...
Page 279: ...SDA Operator s Manual Convolving two signals SDA OM E Rev H 279 ...
Page 310: ...The jitter wizard is accessed from the Analysis drop down menu 310 SDA OM E Rev H ...
Page 327: ...SDA Operator s Manual SDA OM E Rev H 327 ...
Page 328: ...328 SDA OM E Rev H ...
Page 394: ...394 SDA OM E Rev H ...