Chapter 6 Command Reference 203
MSIZE
• When you use the RMEM command to recall readings, it turns off reading
memory. This means any new readings will not be placed in reading memory
and cannot have an enabled memory math operation performed on them. When
you use the "implied read" method to recall readings, reading memory is not
turned-off.
• Related Commands: MATH, MEM, RMATH, RMEM, SMATH
Example The following program performs the post-process NULL operation on 20
readings. After executing the MMATH NULL command, 21 readings are taken
and stored in reading memory in FIFO mode. Line 80 recalls the first reading
taken which is stored in the OFFSET register. The value in the OFFSET register
is then changed to 3.05. The remaining 20 readings in memory are recalled and
the NULL operation is performed on each.
10 OPTION BASE 1 !COMPUTER ARRAY NUMBERING STARTS AT 1
20 DIM Rdgs(20) !DIMENSION ARRAY FOR 20 READINGS
30 OUTPUT 722; "PRESET NORM" !PRESET, NRDGS 1,AUTO, DCV 10
40 OUTPUT 722;"MEM FIFO" !ENABLE READING MEMORY, FIFO MODE
50 OUTPUT 722;"MMATH NULL" !ENABLE POST-PROCESS NULL OPERATION
60 OUTPUT 722;"NRDGS 21" !21 READINGS PER TRIGGER
70 OUTPUT 722;"TRIG SGL" !TRIGGER READINGS
80 ENTER 722;A !RECALL FIRST READING USING IMPLIED READ
90 OUTPUT 722; "SMATH OFFSET, 3.05"!WRITE 3.05 TO OFFSET REGISTER
100 ENTER 722;Rdgs(*) !RECALL READINGS USING IMPLIED READ,
105 !PERFORM NULL OPERATION ON EACH
110 PRINT Rdgs(*) !PRINT NULL MODIFIED READINGS
120 END
MSIZE
Memory size. On a previous multimeter, the MSIZE command was used to clear
all memory and allocate memory space for readings, subprograms, and state
storage. The 3458 accepts the MSIZE command to maintain language
compatibility, but performs no action since the 3458's memory allocations are
predefined and cannot be changed. The MSIZE? query command, however, is
useful to determine the total reading memory and the largest unused block of
subprogram/state memory.
Syntax MSIZE [reading_memory][,subprogam_memory ]
Remarks • As subprogram/state memory is used, it eventually becomes fragmented into
many small blocks. The MSIZE? command returns the total number of bytes of
reading memory and the number of bytes of the largest unused block of
subprogram/state memory. The SCRATCH command clears all subprograms
and states from memory returning these memory areas to one contiguous block.
Also, when power is cycled, the multimeter combines fragmented blocks of
memory wherever possible.