beautypg.com

Teledyne LeCroy WaveExpert 100H Operators Manual User Manual

Page 14

background image

Operator’s Manual

12

WE-OM-E Rev A

Multiple Traces on One Grid (Excel Example 4)................................................................... 265

Using a Surface Plot (Excel Example 5)............................................................................... 268

WRITING VB SCRIPTS ............................................................................................ 268

Types of Scripts in VBS ........................................................................................................ 268

Loading and Saving VBScripts ............................................................................................. 269

The default parameter function script: explanatory notes..................................................... 272

Scripting with VBScript.......................................................................................................... 273

Variable Types ...................................................................................................................... 274

Variable Names .................................................................................................................... 274

Arithmetic Operators ............................................................................................................. 275

VBS Controls............................................................................................................. 277

IF . . . Then . . . Else . . . End If ............................................................................................. 278

Summary of If . . . . Then . . . . Else ...................................................................................... 279

Select Case........................................................................................................................... 280

Summary of Select Case . . . . End Select............................................................................ 281

Do . . . Loop .......................................................................................................................... 281

While . . . Wend..................................................................................................................... 282

For . . . Next .......................................................................................................................... 282

VBS keywords and functions ................................................................................................ 283

Other VBS Words ................................................................................................................. 285

Functions............................................................................................................................... 285

Hints and Tips for VBScripting.............................................................................................. 287

ERRORS............................................................................................................................... 288

Error Handling....................................................................................................................... 290

Speed of Execution............................................................................................................... 290

Scripting Ideas ...................................................................................................................... 291

Debugging Scripts................................................................................................................. 291

Horizontal Control Variables ................................................................................................. 292

Vertical Control Variables ..................................................................................................... 292

List of Variables Available to Scripts..................................................................................... 294

Communicating with Excel from a VBScript ......................................................................... 295

Calling MATLAB from The Instrument .................................................................................. 296

How to Select a Waveform Function Call ............................................................................. 297

The MATLAB Waveform Control Panel ................................................................................ 298

MATLAB Waveform Function Editor -- Example .................................................................. 298

MATLAB Example Waveform Plot........................................................................................ 301