EasyManua.ls Logo

LeCroy 6000 SERIES - Other VBS Words; Functions

Default Icon
409 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Operator's Manual
280 ISSUED: October 2003 WR6K-OM-E Rev A
Val
Get the ASCII value of a string beginning with numerical characters.
Other VBS Words
Const
Define a constant value.
Dim
Dimension a variable.
Redim
Dimension a variable again.
Boolean
Boolean variable
Double
Double precision real variable.
Integer
Integer in the range -32768 to + 32767
Long
Long integer in the range -2
31
to + 2
31
- 1
Single
Single precision real variable
String
String variable
And
Logical AND
Or
Logical OR
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
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

Table of Contents