1250 Frequency Response Analyzer Recording, Learning and Storing Facilities
SH/1250/3 12-13
12.3.8 PROGRAM PAUSE/CONTINUE KEY
Pressing this during a PROGRAM LEARN sequence causes the 1250 to pause
indefinitely on reaching this command when the program is subsequently run. During
this pause, control is returned to the front panel; pressing the PAUSE/CONTINUE key
causes the program to continue.
During a programmed pause, adjustments may be made to the unit under test or to the
1250 settings and intermediate results noted down if necessary.
12.3.9 EXAMPLE PROGRAMS: LOOPING AND CALLING
The following two example programs show how one program may call another, and also
how looping is achieved. The programs could be used as a production test of a unit at
three spot amplitudes and three spot frequencies.
The main program (1) sets up the required generator amplitude, calling program (2) to
measure at the three frequencies. Program (2) pauses after each measurement to allow
the result to be written down. After each complete set of nine measurements, Program
1 stops the Generator (at 0°) and pauses to allow the unit under test to be changed,
before looping back to the start again.
In the listings following, each program line is explained briefly. A complete alphabetical
list of commands and their meanings is given in chapter 13 Section 7.20.
Program 1 00 AM + 1.0000E - 01 Set Generator amplitude to 0. 1 V
00 RG Start Generator
00 EP 02 Execute (i.e. call) Program 2
00 AM + 1.0000E + 00 Set Generator amplitude to 1 V
00 EP 02 Call Program 2
00 AM + 1.0000E + 01 Set Generator amplitude to 10 V
00 EP 02 Call Program 2
00 SQ 00 Stop Generator at 0°
00 CP Pause (to allow unit to be changed)
00 EP 01 Execute Program 1 i.e. loop
99*Q Terminating Line
Program 2 00 FR + 1.0000E + 02 Set Generator frequency to 100Hz
00 SI Perform single measurement
00 CP Pause (to allow result to be noted)
00 FR + 3.0000E + 02 Set Generator frequency to 300Hz
00 SI
00 CP
00 FR + 1.2300E + 03 Set Generator frequency to 1230 Hz
00 SI
00 CP
99*Q Terminating Line
Note: A program may call itself (i.e. loop) only if the 'EP' command is the last one
before the terminating line 99*Q. Otherwise error 14 ('recursion attempted') is flagged.
Also see note in Chapter 12 Section 3.4.
12.3.10 ERROR MESSAGES DISPLAYED DURING PROGRAM RUNNING
If an error occurs (e.g. error 14) whilst a program is running, the error message and
dummy line number are displayed as ERROR14@00. For programs which have been
learnt via the 1250 front panel. Specific line numbers (up to 98 maximum) may be
displayed with the error message if the program was input via the GPIB or RS423 ports.