PhaseStation 53100A User’s Manual V1.04 25-Apr-2022
119
Scripts
Menu
TimeLab includes an embedded JavaScript engine
that can run automated test scripts using the
PhaseStation 53100A and TimePod 5330A.
(Script-based access to other instruments such as
time-interval counters is not currently supported.)
Numerous API functions are provided to support a
variety of applications, ranging from performance
verification procedures included with TimeLab to user-developed test scripts. The
Scripts
menu helps
you edit, run, and otherwise manage your collection of test scripts.
Creating a new test script
The easiest way to create a new test script is to set up your measurement in the 53100A acquisition
dialog just as you normally would. Then, rather than selecting
Start measurement
, click the
Save script
button. The Windows file dialog that appears will prompt you to save the current set of measurement
parameters to a JavaScript (.js) file. When executed later with
Scripts→Run script
, the script will launch
a measurement with the same acquisition parameters and options.
As an alternative, you can use
Scripts→Edit script
to create modified copies of the scripts that are
included with TimeLab, such as
53100A_performance_test.js
and
5330A_ADC_test.js
. These programs
are more elaborate than the elementary scripts created by
Save script
, but they were all originally
created through that function. They exercise virtually all of the capabilities of the TimeLab script API as
well as those of the instrument itself.
The script folder’s location will vary from one Windows version to the next. For example, in a typical
Windows 7 installation on drive C: it can be found at
C:\Users\Public\Documents\TimeLab\ Scripts
at
the command prompt, or
Libraries→Public Documents→TimeLab→
Scripts
in Explorer.
Examples
In addition to the performance test scripts, TimeLab includes two other examples showing how to
accomplish various tasks under script control.
53100A_3_cornered_hat.js
demonstrates how to launch
an automated 3-cornered hat stability measurement that will run for 12 hours, periodically saving the
results while the test is running, while
53100A_command_line_example.js
illustrates one way to create
a complete automated test procedure by launching TimeLab to run a script from an external shell,
application, or environment with specified parameters and termination behavior. Review the comments
in these scripts to learn how to configure, run, and adapt them.
For a detailed listing of script API functions, refer to the JavaScript API Function Reference section on
page 145.
13
Figure 57: Scripts menu
Содержание PHASE STATION 53100A
Страница 1: ...TM 53100A Phase Noise Test Set User s Manual Revision 1 04 April 25 2022...
Страница 16: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 16...
Страница 18: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 18...
Страница 20: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 20...
Страница 30: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 30...
Страница 36: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 36...
Страница 42: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 42...
Страница 64: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 64...
Страница 74: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 74...
Страница 104: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 104...
Страница 116: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 116...
Страница 122: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 122...
Страница 130: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 130...
Страница 140: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 140...
Страница 143: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 143 Figure 66 5 MHz residual phase noise and AM noise...
Страница 214: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 214...
Страница 215: ...PhaseStation 53100A User s Manual V1 04 25 Apr 2022 215 Appendix Legal and regulatory notices...