![LeCroy DDA-3000A Скачать руководство пользователя страница 293](http://html1.mh-extra.com/html/lecroy/dda-3000a/dda-3000a_operators-manual_1866311293.webp)
X-Stream Operator’s Manual
WM-OM-E Rev I
291
Next ' End of K loop
If a section becomes very long, you could provide the end with a comment, to show where it comes
from.
Arithmetic Operators
As with most other languages, the arithmetic operators are used as follows:
^
Exponentiation
A ^ B = A
B
= A raised to the power B
/
Division
A / B = A divided by B
\
Integer division A \ B = A divided by B, truncated to next integer below
*
Multiplication
A * B = A multiplied by B
+
Addition
A + B = B added to A
-
Subtraction
A - B = B subtracted from A
Notes:
If there is any possibility that you will be taking the exponent of a negative number, make sure to trap any possible errors
arising from such operations as trying to take the square root of a negative number. Logs of negative numbers are forbidden
also.
If there is any possibility that you will be dividing by zero, make sure to trap this.
There are two ways of dealing with these types of problem. One is to prevent it happening by making suitable tests before
the calculation is performed. The other is to let it happen, and use an error handling routine. This will be discussed later.
Normally in VBScript you will know the range of the data, since all the incoming data are, by definition, integer (unscaled
data) or real (scaled data), and they must fit into the screen of the instrument.
Results of Calculations
Sometimes you may see a statement like this:
A = A * A * (Cos (A) + Sin (A) )
The program takes the quantity represented by A and performs all of the following operations, using
that original value:
•
Multiply A by itself.
•
Calculate the cosine of A.
•
Calculate the sine of A.
•
Add the cosine and the sine together.
•
Multiply that result by the square of A.
At this point, the quantity represented by A has not been changed. Only at the end of the calculation
is the final value placed in the memory location labeled A.
Note that you can write more than one statement on a line, separated by colons, like this
A = B * Cos (34 * Theta) * Sin (55 * Theta) : B = A * A + Z * Z
Содержание DDA-3000A
Страница 1: ...LECROY X STREAM OSCILLOSCOPES O P E R AT O R S M A N U A L SEPTEMBER 2006 ...
Страница 18: ...16 WM OM E Rev I BLANK PAGE ...
Страница 64: ...62 WM OM E Rev I icon in Channels dialog zooms one trace zooms all displayed traces ...
Страница 65: ...X Stream Operator s Manual WM OM E Rev I 63 then Math Setup then Measure Setup then Utilities Setup ...
Страница 80: ...78 WM OM E Rev I 4 Select a language 5 Click Next when the Wizard appears ...
Страница 81: ...X Stream Operator s Manual WM OM E Rev I 79 6 Select Complete setup ...
Страница 157: ...X Stream Operator s Manual WM OM E Rev I 155 ...
Страница 170: ...168 WM OM E Rev I 5 Read the status information in line StatusDescription ...
Страница 214: ...212 WM OM E Rev I Delay Parameter Find Range selected ...
Страница 263: ...X Stream Operator s Manual WM OM E Rev I 261 ...
Страница 284: ...282 WM OM E Rev I ...
Страница 285: ...X Stream Operator s Manual WM OM E Rev I 283 Using a Surface Plot Excel Example 5 ...
Страница 321: ...X Stream Operator s Manual WM OM E Rev I 319 Further Examples of MATLAB Waveform Functions Negate the input signal ...
Страница 324: ...322 WM OM E Rev I ...