beautypg.com

Other vbs words, Functions – Teledyne LeCroy WaveRunner XI SERIES Operator’s Manual User Manual

Page 200

background image

W

AVE

R

UNNER

X

I

S

ERIES

200

WRXi-OM-E Rev C

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

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
such as If A > B The

comparison, logical constructions can be used with variables, as in A and B, or with tests

n . . .

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

r zero. A can be any number in the range of the VB system.

positive o

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.

.4) = -7. Integers are signed 16-bit values in the range -32767 to + 32767.

Cint (-7

CLng

CL
val

ng (A) calculates the nearest long integer to the value A. Long integers are signed 32-bit
ues 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

r than plus one or less than minus one.

greate

CSng

CSng (A) calculates a single precision real variable equal to A.

Exp

Exp (A) calculates the value of e

A

.