PhaseStation 53100A User’s Manual V1.04 25-Apr-2022
178
/autoupdate
The /autoupdate function is useful in scenarios where
STREAM.EXE
may need to be
recompiled, upgraded, or otherwise replaced over a network without manual
intervention at the server console. When /autoupdate is present on the command line,
STREAM.EXE
will periodically check for the presence of a file called
STREAM.EX1
in the
same directory as the executable. If
STREAM.EX1
is ever found,
STREAM.EXE
will
terminate with exit(2), reporting the message “Server terminated due to release of new
version.”
This feature depends on the use of a batch file or script to launch
STREAM.EXE
. Upon
detecting exit code 2 when
STREAM.EXE
terminates, the batch file or script should
overwrite
STREAM.EXE
with a copy of
STREAM.EX1
, delete
STREAM.EX1
, and then
relaunch the new
STREAM.EXE
process with the same set of command-line parameters.
When any other exit code is returned by
STREAM.EXE
, the batch file or script can exit
normally or take other actions.
Two examples of /autoupdate batch files are included in the TimeLab directory.
SERVE.BAT
is a generic launcher for
STREAM.EXE
that specifies the phasestation.tll and
/autoupdate options on behalf of the user, passing along any other command-line
options as well.
TSC.BAT
demonstrates the use of the /format:TSC and /port:1298
options along with /autoupdate.
SERVE.BAT
appears below in its entirety.
@echo off
rem
rem Batch file to launch TCP streaming data server with 53100A driver
rem and automatic restart capability
rem
:start
rem
rem If stream.ex1 exists in the directory, rename it to stream.exe and run it
rem (passing any command-line arguments that were originally used with
rem serve.bat)
rem
if not exist stream.ex1 goto serve
copy stream.ex1 stream.exe >nul
del stream.ex1
:serve
if not exist stream.exe goto bail
stream phasestation.tll /autoupdate %*
rem
rem If stream server exits with code 2, it means that the /autoupdate option
rem detected a new copy of stream.ex1 in the directory. Go back and launch
rem the new version without any manual intervention
rem
if errorlevel 2 goto start
:bail
Содержание 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...