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.
2701-900-01.book Page 15 Wednesday, August 3, 2011 9:43 AM
Summary of Contents for 2701
Page 344: ...12 CommonCommands 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 366: ...15 SCPIReferenceTables 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 393: ...A Specifications 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 399: ...B Model7700ConnectionGuide 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 410: ...C StatusandErrorMessages 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 417: ...D SignalProcessing SequenceandDataFlow 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 430: ...E MeasurementConsiderations 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 450: ...G KE2700InstrumentDriver Examples 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...