Other Vbs Words; Functions - LeCroy XI SERIES Operator's Manual

Waverunner
Table of Contents

Advertisement

W
R
X
S
AVE
UNNER
I
Rnd
Make a random real number in the range from 0.0 to 1.0
Rtrim
Remove spaces from right hand end of a string.
Sin
Make the sine of an angle expressed in radians.
Sqr
Make the square root of a positive number.
Str
Make a string from a numerical value.
Timer
Time since midnight in seconds, with a resolution of one second.
Trim
Remove leading and trailing spaces from a string.
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
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 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
200
ERIES
31
to + 2
31
- 1
A
.
WRXi-OM-E Rev B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents