![LeCroy WaveRunner 104MXI Operator'S Manual Download Page 205](http://html1.mh-extra.com/html/lecroy/waverunner-104mxi/waverunner-104mxi_operators-manual_1866369205.webp)
O
PERATOR
’
S
M
ANUAL
WRXi-OM-E Rev B
205
Scripting Ideas
What can we do in a VBS script that we cannot do with the normal instrument functions? Here are some
possibilities.
•
Create a new function that acts on waveform values.
•
Create a new parameter.
•
Create a new form of non-linear vertical scale.
•
Create a new form of non-linear horizontal scale.
•
Move some or all data horizontally, including reflections.
•
Combine data to form digital filters.
•
Show several function results side by side.
•
Show several function results interleaved.
You can even create output data that are not related to the input. The output data need not even be in the same
domain as the input data, because the system treats them as pure numbers. So you can create your own
transforms into the frequency domain, for example.
Example Waveform Script
Custom Window
Creating a window function for FFT calculations.
Example Parameter Scripts
Decay Parameter
Calculating the rate of decay of a damped sine.
Locating Pulses
Finding pulses in a pulse train.
Debugging Scripts
Until we have integrated a more comprehensive debugger for VBScript there is a workaround.
•
Download the Windows Scripting Debugger for Windows 2000 from here:
http://download.microsoft.com/download/winscript56/Install/1.0a/NT45XP/EN-US/scd10en.exe
•
Enable JIT (Just In Time) debugging by setting the following registry key
HKCU\Software\Microsoft\Windows Script\Settings\JITDebug = to 1 (DWORD value)
•
Place
a
Stop
statement in your script.
When the Stop statement is executed the debugger opens and allows single-stepping, variable examination,
etc.
Using VBA or Visual Basic to debug VBScripts is not recommended since the language syntax for these three
variants of basic is slightly different.