SDA Operator’s Manual
SDA-OM-E Rev H 13
Arithmetic Operators .................................................................................................. 254
VBS Controls ............................................................................................................. 255
IF . . . Then . . . Else . . . End If ............................................................................................. 256
Summary of If . . . . Then . . . . Else ...................................................................................... 257
Select Case ........................................................................................................................... 258
Summary of Select Case . . . . End Select............................................................................ 258
Do . . . Loop .......................................................................................................................... 258
While . . . Wend ..................................................................................................................... 259
For . . . Next .......................................................................................................................... 259
VBS keywords and functions ..................................................................................... 260
Other VBS Words ................................................................................................................. 261
Functions ................................................................................................................... 262
Hints and Tips for VBScripting ................................................................................... 263
Errors ......................................................................................................................... 264
Error Handling............................................................................................................ 266
Speed of Execution.................................................................................................... 266
Scripting Ideas ........................................................................................................... 267
Debugging Scripts ..................................................................................................... 267
Horizontal Control Variables ...................................................................................... 268
Vertical Control Variables .......................................................................................... 268
List of Variables Available to Scripts .......................................................................... 268
Communicating with Excel from a VBScript .............................................................. 269
Calling MATLAB from the Instrument ........................................................................ 270
How to Select a Waveform Function Call .................................................................. 271
The MATLAB Waveform Control Panel ..................................................................... 272
MATLAB Waveform Function Editor - Example ......................................................... 272
MATLAB Example Waveform Plot ............................................................................. 274
How to Select a MATLAB Parameter Call ................................................................. 274
The MATLAB Parameter Control Panel ..................................................................... 275
The MATLAB Parameter Editor ................................................................................. 275
MATLAB Example Parameter Panel ......................................................................... 276
More Examples of MATLAB Waveform Functions .................................................... 277
Creating Your Own MATLAB Function ...................................................................... 280
CustomDSO ...................................................................................................... 281
What is CustomDSO? ................................................................................................ 281
Invoking CustomDSO ................................................................................................ 281
CustomDSO Basic Mode ........................................................................................... 282
Editing a CustomDSO Setup File .............................................................................. 282