![LeCroy DDA-3000A Скачать руководство пользователя страница 299](http://html1.mh-extra.com/html/lecroy/dda-3000a/dda-3000a_operators-manual_1866311299.webp)
X-Stream Operator’s Manual
WM-OM-E Rev I
297
Loop Until D > Pi
Do Until Z < Y
AnyVBSCalculation
Loop
Do
AnyVBSCalculation
Loop While D <= Pi
Do While Y >=Z
AnyVBSCalculation
Loop
These constructions enable you to make the test before or after the calculation. If before, the
calculation might not be done even one time, if the condition for terminating were already true. With
the condition at the end, the calculation is done at least one time.
Sometimes you might want to exit the loop from somewhere inside: for example, if some kind of
problem is looming, such as the logarithm of a negative number.
For this case, you can use
If . . . . Then Exit Do
.
To make a pause of 10 seconds you can write:
NewTime = Timer + 10.0
Do Loop Until Timer >= NewTime
where Timer is a clock function in the PC, which has a resolution of one second.
Example file for these constructions: DoLoops.Xls
While . . . Wend
This is similar to Do While . . . Loop. You can write things like:
While ( (A > 2) And (C < 92677663) )
AnyVBCalculation
Wend
For . . . Next
Sometimes you know, or you think you know, the number of times that you want to do a job. For this
case a For loop is ideal, especially when you have an array of numbers to work with.
Examples:
For K = 0 To Total
HistogramBin (K) = 0
Содержание 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 ...