![LeCroy DDA-3000A Operator'S Manual Download Page 300](http://html1.mh-extra.com/html/lecroy/dda-3000a/dda-3000a_operators-manual_1866311300.webp)
298
WM-OM-E Rev I
Next
Omega = TwoPi / Period
For N = 0 To Period
Y (N) = A * Sin (Omega * N)
Next
Be careful about changing the counting variable in any loop. You can do this to terminate the loop
early (but
Exit For
is better), but you could also prevent it from terminating at all.
For emergency exit, you can use
Exit For
. For example:
For K = 0 To Total
If HistogramBin(K) = 0 Then Exit For
AnyVBScripting
Next
It is possible to make a For loop with steps greater than 1, as in the following example in which K
takes the values 3, 7, 11, 15, . . . . 83.
For K = 3 To 82 Step 4
AnyVBScripting
Next K
You may place loops inside one another (nested loops), but they must all use different control
variables. Example:
For K = 0 To N
VBScriptingK
For L = - 7 To 17
VBScriptingL
For M = S To T
VBScriptingM
Next
Next
Next
Summary of Contents for DDA-3000A
Page 1: ...LECROY X STREAM OSCILLOSCOPES O P E R AT O R S M A N U A L SEPTEMBER 2006 ...
Page 18: ...16 WM OM E Rev I BLANK PAGE ...
Page 64: ...62 WM OM E Rev I icon in Channels dialog zooms one trace zooms all displayed traces ...
Page 80: ...78 WM OM E Rev I 4 Select a language 5 Click Next when the Wizard appears ...
Page 81: ...X Stream Operator s Manual WM OM E Rev I 79 6 Select Complete setup ...
Page 157: ...X Stream Operator s Manual WM OM E Rev I 155 ...
Page 170: ...168 WM OM E Rev I 5 Read the status information in line StatusDescription ...
Page 214: ...212 WM OM E Rev I Delay Parameter Find Range selected ...
Page 263: ...X Stream Operator s Manual WM OM E Rev I 261 ...
Page 284: ...282 WM OM E Rev I ...
Page 285: ...X Stream Operator s Manual WM OM E Rev I 283 Using a Surface Plot Excel Example 5 ...
Page 324: ...322 WM OM E Rev I ...