Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 397

Multimètre

Publicité

Subprograms
The 3458AA can store and execute BASIC language subprograms. These
subprograms can either be downloaded into 3458AA memory from a remote
system controller (such as one of the HP Series 200/300 computers) or you can
enter the subprogram from the front-panel keyboard. This section acquaints you
with the structure and usage of subprograms. It also discusses specific
commands, which are used within subprograms.
A subprogram is a series of 3458AA commands beginning with the SUB command
and ending with the SUBEND command. The SUB command assigns a name to
the subprogram which you use to execute the subprogram at a later time.
Subprograms are stored in 3458AA non-volatile memory.
Subprograms downloaded into the 3458AA can be executed later with a single
command from the system controller or front-panel keyboard. This allows the
system controller to perform other tasks while the 3458AA is busy with other
activities. This provides multi-tasking capability to your system controller because
the 3458AA is acting like a separate computer running tasks by itself. Also,
commands within an 3458AA subprogram execute faster than those same
commands received over the GPIB because of the way the 3458AA stores the
subprogram commands internally.
What Commands Are Allowed Within a Subprogram?
Most commands for the 3458AA may be stored and executed inside a
subprogram. The only commands which cannot be stored are CONTINUE,
COMPRESS, DELSUB, and SCRATCH. Three conditional and looping commands
are provided for use within subprograms.
How Many Different Subprograms Can Be Stored?
The exact number of subprograms which can be stored in 3458AA memory
depends on the individual sizes of the subprograms. A typical subprogram
containing 10 commands (including the SUB and SUBEND commands) might
average about 600 bytes. Refer to chapter 3 for more information on memory
usage.
Can I Nest Subprograms?
Yes! Nesting subprograms is the ability to have one subprogram call (execute)
another subprogram. You can nest up to 10 subprograms.
Keysight 3458A User's Guide
BASIC Language for the 3458A
7
397

Publicité

loading