Agilent Technologies 3458A User Manual page 247

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

The only way to take readings within a subprogram is to use the TARM SGL
or TRIG SGL command. When either of these commands is encountered, the
multimeter will not execute the next command in the subprogram until all
specified readings are taken. (This also means all configuration and other
triggering commands must occur before the TARM SGL or TRIG SGL
command.) Any other trigger arm or trigger events (except TARM EXT, see
next Remark) will be executed in a subprogram, but the readings will not be
initiated until the subprogram is complete.
Whenever the TARM EXT command is encountered in a subprogram, the
multimeter waits until an external trigger is received on its Ext Trig connector
before executing the next line of the subprogram. This allows you to synchronize
subprogram execution to external equipment.
Any subprogram named 0 will be automatically executed whenever the
multimeter has finished its power-on sequence. This is useful to recall the
multimeter's previous state (RSTATE 0) following a power failure.
Subprograms are stored in continuous memory (not lost when power is
removed). If you compress a subprogram, however, (COMPRESS command)
the subprogram is removed from continuous memory and will be destroyed
when power is removed.
Related Commands: CALL, COMPRESS, CONT, DELSUB, PAUSE,
SCRATCH, SUBEND
Examples
10 OPTION BASE 1
20 DIM RDGS(5)
30 OUTPUT 722;"SUB DCCUR2"
40 OUTPUT 722;"PRESET NORM"
50 OUTPUT 722;"MEM FIFO"
60 OUTPUT 722;"DCV, 10, .01"
70 OUTPUT 722; "NRDGS,5,AUTO"
80 OUTPUT 722;"TRIG SGL"
90 OUTPUT 722; "SUBEND"
100 OUTPUT 722;"DISP MSG 'CALLING SUBPROGRAM'"
110 OUTPUT 722; "CALL DCCUR2"
120 ENTER 722;Rdgs(*)
130 PRINT Rdgs(*)
140 END
When the following subprogram is called (CALL EXTPACE), the multimeter
executes it line-by-line until it encounters TARM EXT (line 70). Subprogram
execution then ceases until an external trigger occurs. This allows you to
synchronize subprogram execution to some external event. After the first external
trigger is received, subprogram execution resumes. When the next line is
encountered (TRIG SGL), subprogram execution ceases until the 1000 readings
are taken. After the readings are taken, the subprogram changes the measurement
function to 2-wire ohms and the number of readings to 100. When the second
TARM EXT command is encountered (line 100), subprogram execution ceases
!COMPUTER ARRAY NUMBERING STARTS AT 1
!DIMENSION ARRAY FOR 5 READINGS
!STORES FOLLOWING LINES NAMED DCCUR2
!PRESETS
!ENABLES FIFO MODE OF READING MEMORY
!DC VOLTAGE, 10V RANGE, .01% RESOLUTION
!5 READINGS PER TRIGGER, AUTO EVENT
!SPECIFIES THE SINGLE TRIGGER MODE
!SIGNALS THE END OF SUBPROGRAM STORAGE
Chapter 6 Command Reference
SUB
247

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents