
Agilent B1500A/B1505A Programming Guide, Edition 11 3-113
Programming Examples
Using Program Memory
Table 3-29 and Table 3-30 show the example program that uses the internal program
memory, and does the following:
• stores a high-speed spot measurement program in the memory 1, and displays it.
• stores a pulsed spot measurement program in the memory 2, and displays it.
• executes the internal memory program 1 and 2.
• displays the measurement results on the console window.
The example program shown in Table 3-30 uses the internal variables available for
the internal program memory. The program code is given as the replaceable code of
the lines 12 to 38 shown in Table 3-29. To run the program, delete the lines 12 to 38
from the program of Table 3-29, and insert the program lines 1 to 37 of Table 3-30.
Also insert Table 3-30’s lines 39 to 49 between Table 3-29’s lines 52 and 53. The
code shown in Table 3-30 cannot run by itself.
NOTE Running example programs in this section
To run the programs, the project template (Table 3-1) is not needed. To run the
program of Table 3-30, see the above paragraph.
Tips to use program memory
1. Completes program:
Before storing the program in the program memory, verify that the program is
complete and free of errors. Command parameter check will be performed when
the program is executed.
If the program being stored makes changes to the present measurement setup,
verify that these changes are correct and compatible with the present setup.
2. For the invalid commands in the internal memory program, refer to Table 2-1 on
page 2-51.
Commentaires sur ces manuels