Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 111

Multimètre

Publicité

Using Subprogram Memory
The multimeter can store command strings as subprograms. This allows you to
execute frequently used command strings while keeping bus/controller
interaction to a minimum. Since stored subprograms are compiled, the multimeter
executes a subprogram much faster than it could execute the equivalent
commands sent over the GPIB. The multimeter has 14k-bytes of memory that are
shared by subprograms and states (discussed later). When subprogram/state
memory becomes full, the multimeter generates the Memory Error (bit 7 in the
error register).
The status register contains a subprogram complete bit that can be used to
NOTE
determine when a subprogram has finished executing. Refer to
Register
Storing a subprogram
You store a subprogram using the SUB and SUBEND commands. The SUB
command indicates the start of the subprogram and its identifying name. A
subprogram name may contain up to 10 characters. The name can be all alpha
characters or a combination of alpha and numeric characters (the characters ?
and _ can also be included in the name). When using an alphanumeric name, the
first character must be alpha. Alpha or alphanumeric subprogram names must not
be the same as multimeter commands or parameters or the name of a stored
state.
Following the SUB command, enter the subprogram commands in the order you
want them executed. Use the SUBEND command to indicate the end of the
subprogram. All subprograms are stored in continuous memory (remain intact
when power is removed) unless the subprogram is compressed (see
subprograms
commands in lines 20 through 60 as a subprogram entitled 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"
Keysight 3458A User's Guide
later in this chapter, for more information.
later in this chapter). For example, the following program stores the
Configuring for Measurements
Using the Status
3
Compressing
111

Publicité

loading