6-8 Buffer Model 6485 Picoammeter Instruction Manual
Programming example
The following program fragment stores 20 readings into the buffer and then calculates the
mean average on the buffer readings:
' Select data elements:
*RST ' Return 6485 to RST defaults.
FORM:ELEM READ,TIME ' Select reading and timestamp.
' Store and Recall Readings:
TRIG:COUN 20 ' Set trigger model to take to 20
readings.
TRAC:POIN 20 ' Set buffer size to 20.
TRAC:FEED SENS ' Store raw input readings.
TRAC:FEED:CONT NEXT ' Start storing readings.
INIT ' Trigger readings
' setup to SRQ on buffer full - see
' Figure G-2 for example
TRAC:DATA? ' Request all stored readings.
' Acquire Mean Statistic for Buffer Readings:
CALC3:FORM MEAN ' Select mean statistic.
CALC3:DATA? ' Request mean statistic.