Functions - LeCroy WaveMaster 8600A Operator's Manual

X-stream oscilloscopes
Table of Contents

Advertisement

Integer
Long
Single
String
And
To make a bit-by-bit comparison, logical constructions can be used with variables, as in A and B, or
with tests such as If A > B Then . . .

Functions

These are mainly of the form C = F (A), where A is the argument, or input to the function.
Abs (A) calculates the absolute value of an integer or a real number, so the result
Abs
is always positive or zero. A can be any number in the range of the VB system.
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
Atn
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 (A) calculates the integer value nearest to A, which can be any acceptable
CInt
VBS number. Cint (-7.4) = -7. Integers are signed 16-bit values in the range
-32767 to + 32767.
CLng (A) calculates the nearest long integer to the value A. Long integers are
CLng
signed 32-bit values in the approximate range -21.5 M to + 21.5 M.
Cos (A) calculates the cosine of any integer or real number, giving an output that
Cos
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
Cint (A) calculates the integer value next below A, which can be any acceptable
Int
VBS number. Int (-7.4) = -8.
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.
Log
To calculate Log
A Mod (B) calculates the modulus of A, which is the remainder after A has been
divided by B.
Mod
34 Mod 8 = 2. 34 Mod 55 = 0. -34 Mod 13 = -8. 21 Mod -8 = 5.
WM-OM-E Rev I
Or
(A), use Log
10
X-Stream Operator's Manual
Integer in the range -32768 to + 32767
Long integer in the range -2
Single precision real variable
String variable
Logical AND
Logical OR
A
.
(A) = Log(A) / Log(10)
10
31
31
to + 2
- 1
301

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents