O
PERATOR
’
S
M
ANUAL
WRXi-OM-E Rev C
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
g Scripts
Until we have integrated a more compr
around.
•
Download the Windows Scripting D
for Windows 2000 from here:
http://download.mi
ft.com/dow
d10en.exe
Decay Parameter
Calculating the rate of decay of a damped sine.
Locating Pulses
Finding pulses in a pulse train.
Debuggin
ehensive debugger for VBScript there is a work
ebugger
croso
nload/winscript56/Install/1.0a/NT45XP/EN-US/sc
•
Enable JIT (Just In Time) debuggin
ng the following registry key
HKCU\Software\Mi
t\Window
•
Place
a
Stop
state
your scr
When the Stop sta
t is execu
able examination,
etc.
g by setti
crosof
s Script\Settings\JITDebug = to 1 (DWORD value)
ment in
ipt.
temen
ted the debugger opens and allows single-stepping, vari
Using VBA or Visual Basic to debug VBScripts is not recommended since the language syntax for these three
variants of basic is slightly different.