Model 2701 User’s Manual Buffer 6-15
Programming example
The following command sequence stores 20 readings in the buffer and then calculates the
mean for those readings:
NOTE The following example can be run from the KE2700 Instrument Driver using the
example named “BufStats” in Table G-1 of Appendix G.
’ Store readings:
TRAC:CLE:AUTO ON ’ Enable buffer auto-clear.
TRAC:POIN 20 ’ Set buffer size to 20.
TRAC:FEED SENS ’ Select raw readings for storage.
TRAC:FEED:CONT NEXT ’ Start storage process.
TRAC:DATA? ’ Request all stored readings.
’ Calculate mean:
CALC2:FORM MEAN ’ Select mean calculation.
CALC2:STAT ON ’ Enable mean calculation.
CALC2:IMM? ’ Perform calculation and request result.