Executing A Subprogram; Suspending Subprogram Execution - Agilent Technologies 3458A User Manual

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

Executing a
Subprogram
Suspending
Subprogram
Execution
72 Chapter 3 Configuring for Measurements
DCCUR1.
10 OUTPUT 722;"SUB DCCUR1"
20 OUTPUT 722;"MEM FIFO"
30 OUTPUT 722;"TRIG HOLD"
40 OUTPUT 722;"DCI 1,.01"
50 OUTPUT 722; "NRDGS 5, AUTO"
60 OUTPUT 722;"TRIG SGL"
70 OUTPUT 722; "SUBEND"
80 END
If you create a new subprogram using the same name as an existing
subprogram, the new subprogram overwrites the old subprogram.
To execute a stored subprogram, issue the CALL command along with the
subprogram's name. For example, to execute the preceding subprogram,
send:
OUTPUT 722;"CALL DCCUR1"
Note
When the input buffer (discussed later in this chapter) is off, the multimeter
does not release the GPIB until the completion of the subprogram or a
PAUSE command (discussed below) is encountered. Refer to "Using the
Input Buffer", later in this chapter for information on how to release the bus
immediately after calling a subprogram. To abort subprogram execution,
send the GPIB Device Clear command.
From the front panel, you can view all stored subprogram names by accessing
the CALL command and pressing the up or down arrow key. Once you have
found the correct subprogram, press the Enter key to execute the
subprogram.
You can temporarily suspend subprogram execution by including the
PAUSE command in the stored subprogram. The multimeter executes
subprograms on a command-by-command basis. When it encounters the
PAUSE command, subprogram execution is suspended and, if the
subprogram was called from remote, the GPIB bus is released. For example,
the following program has a PAUSE command in line 60.
10 OUTPUT 722; "SUB 2"
20 OUTPUT 722;"MEM FIFO"
30 OUTPUT 722;"TRIG HOLD"
40 OUTPUT 722;"DCV 10"
50 OUTPUT 722;"NRDGS 5,AUTO"
60 OUTPUT 722;"PAUSE"
70 OUTPUT 722;"TRIG SGL"
80 OUTPUT 722;"SUBEND"
90 END
When you call the above subprogram, the commands will be executed up to
the PAUSE command and then program execution ceases. To resume
subprogram execution, send:
OUTPUT 722;"CONT"

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents