Chapter 4 Remote Operation and Programming
Sample Program Commands
Operating and Programming Manual 57
Instrument Control Tasks
The commands you send are in BOLD, (followed by <CR><LF>) the 5071A‘s
responses are in italics. If you make a mistake (i.e., generate an error # at the
scpi prompt) type *cls followed by <CR><LF>.
Example Program 1 — Configuration
Program Dialog Task Function
DIAG:STAT:GLOB? Request the operating status of the 5071A.
“Operating normally”
scpi >
SYST:REM ON Command the 5071A to enter Remote mode.
DIAG:CONT:RESET Set/Reset the Continuous Operation light on
scpi > the front panel.
SOUR:ROSC:FREQ1 5.0E+6 Set Port 1 output to 5 MHz.
scpi >
SOUR:ROSC:FREQ2 1.0E+7 Set Port 2 output to 10 MHz.
scpi >
SYST:SCON Save this configuration in memory.
scpi >
Example Program 2 — Synchronization and Time/Date Setup
Program Dialog Task Function
SOUR:PTIM:SYNC FRONT Synchronize to external pulse
scpi > with front- panel sync input.
SOUR:PTIM:TIME 20,54,40 Set time.
scpi >
SOUR:PTIM:MJD 48587 Set Modified Julian date.
scpi >
SOUR:PTIM:SLEW 123.33425E-3 Adjust Epoch with resolution
to 50 ns.
scpi >