Mcount; Mem - Agilent Technologies 3458A User Manual

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

MCOUNT?

Example

MCOUNT?

Syntax
Remarks
Example

MEM

Syntax
196
Chapter 6 Command Reference
The following program performs the real-time NULL math operation on 20
readings. After executing the NULL command, the first reading is triggered by
line 50. The value in the OFFSET register is then changed to 3.05. The 20 read-ings
are triggered by line 90 and 3.05 is subtracted from each reading.
10 OPTION BASE 1
20 DIM Rdgs(20)
30 OUTPUT 722;"PRESET NORM"
40 OUTPUT 722;"MATH NULL"
50 OUTPUT 722;"TRIG SGL"
60 OUTPUT 722;"SMATH OFFSET,3.05" !WRITE 3.05 TO OFFSET REGISTER
70 OUTPUT 722;"NRDGS 20"
80 OUTPUT 722;"TRIG SYN"
90 ENTER 722;Rdgs(*)
100 PRINT Rdgs(*)
110 END
Memory Count Query. Returns the total number of stored readings.
MCOUNT?
Related Commands: MEM, MFORMAT, MSIZE, RMEM
10 OUTPUT 722; "MCOUNT?"
20 ENTER 722;A
30 PRINT A
40 END
Memory. Enables or disables reading memory and designates the storage mode.
MEM [mode]
mode
The mode parameter choices are:
Numeric
mode
Query
Parameter
Equiv.
OFF
0
LIFO
1
!COMPUTER ARRAY NUMBERING STARTS AT 1
!DIMENSION ARRAY FOR 20 READINGS
!PRESET, NRDGS 1,AUTO, DCV 10
!ENABLE REAL-TIME NULL MATH OPERATION
!TRIGGER 1 READING, STORED IN OFFSET
!20 READINGS PER TRIGGER
!SYN TRIGGER EVENT
!SYN EVENT, ENTER NULL CORRECTED READINGS
!PRINT NULL CORRECTED READINGS
!RETURNS TOTAL NUMBER OF STORED READINGS
!ENTERS RESPONSE INTO A VARIABLE
!PRINTS RESPONSE
Description
Stops storing readings (stored readings stay intact)
Clears reading memory and stores new readings
LIFO (last-in-first-out)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents