X-Stream Operator’s Manual 
WM-OM-E Rev I  307 
Debugging Scripts 
Until we have integrated a more comprehensive debugger for VBScript there is a workaround. 
1. Download the Windows Scripting Debugger for Windows 2000 from here: 
http://download.microsoft.com/download/winscript56/Install/1.0a/NT45XP/EN-US/scd10e
n.exe 
2. Enable JIT (Just In Time) debugging by setting the following registry key 
HKCU\Software\Microsoft\Windows Script\Settings\JITDebug = to 1 (DWORD value) 
3. Place a Stop statement in your script. 
Now, when the Stop statement is executed the debugger will open and allow 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. 
Horizontal Control Variables 
InResult.HorizontalOffset 
Double precision
Time shift of input waveform on grid in units of 
horizontal scale 
OutResult.HorizontalOffset 
Double precision
Time shift of output waveform on grid in units 
of horizontal scale 
InResult.HorizontalPerStep 
Double precision
Time between successive samples in the input 
waveform 
OutResult.HorizontalPerStep
Double precision Time between successive samples in the 
output waveform 
InResult.HorizontalUnits 
String  Horizontal units of input waveform 
OutResult.HorizontalUnits 
String  Horizontal units of output waveform 
InResult.Samples 
Integer  Number of samples in input waveform 
Vertical Control Variables 
InResult.VerticalOffset 
Double precision Vertical shift of input waveform on grid 
OutResult.VerticalOffset 
Double precision Vertical shift of output waveform on grid 
InResult.VerticalPerStep 
Double precision Difference between successive possible levels 
in the input waveform memory 
OutResultVerticalPerStep 
Double precision Difference between successive possible levels 
in the output waveform memory 
1 / 65536 of vertical full scale