SDA Operator’s Manual
SDA-OM-E Rev H
267
Y = Cos (XK) * Sin (XK) * Sqr (XK)
OldXK = XK
End If
Next
VBS runs slower than the "internal" calculations, because the scripts are interpreted. This could
be serious for calculations where many operations are needed on each sample, such as
convolution, correlation, and long digital filters.
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.
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/scd10en.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.
Содержание SDA
Страница 1: ...SERIAL DATA ANALYZER OPERATOR S MANUAL December 2007 ...
Страница 148: ...Standard Horizontal Parameter Help Markers Standard Vertical Parameter Help Markers 148 SDA OM E Rev H ...
Страница 223: ...SDA Operator s Manual Example 6 SDA OM E Rev H 223 ...
Страница 225: ...SDA Operator s Manual SDA OM E Rev H 225 ...
Страница 232: ...In this figure the panel has been pasted onto the Excel sheet for comparison 232 SDA OM E Rev H ...
Страница 243: ...SDA Operator s Manual This example used the CORREL Array1 Array2 function of Excel as depicted below SDA OM E Rev H 243 ...
Страница 246: ...246 SDA OM E Rev H ...
Страница 247: ...SDA Operator s Manual Excel Example 5 Using a Surface Plot SDA OM E Rev H 247 ...
Страница 279: ...SDA Operator s Manual Convolving two signals SDA OM E Rev H 279 ...
Страница 310: ...The jitter wizard is accessed from the Analysis drop down menu 310 SDA OM E Rev H ...
Страница 327: ...SDA Operator s Manual SDA OM E Rev H 327 ...
Страница 328: ...328 SDA OM E Rev H ...
Страница 394: ...394 SDA OM E Rev H ...
Страница 395: ...SDA Operator s Manual SDA OM E Rev H 395 ...