6482-901-01 Rev. A / August 2012 Return to Section Topics F-3
Model 6482 Dual-Channel Picoammeter / Voltage Source Reference Manual Appendix F: Example Programs
Data store program
The program listing below performs data storage as covered in Section 6, and it also
demonstrates how to use SRQs to determine when storage is complete. This program sets up the
following operating modes:
• Number of points: 10
• Trigger count: 10
• Data store source: channel 1 readings only
• Acquired data: all buffer readings, mean (average), and standard deviation.
' Data Store Program
*RST ' Restore GPIB defaults.
:STAT:MEAS:ENAB 512;*SRE 1 ' Enable buffer full SRQ.
:SOUR1:VOLT 10 ' Output 10 V on channel 1.
:SOUR1:DEL 0.5 ' 0.5 sec source 1 delay.
:TRAC:POIN 10 ' Store 10 readings.
:TRAC:FEED:CONT NEXT ' Turn on data store.
:TRIG:COUN 10 ' Trigger count = data store points.
:FORM:ELEM:TRAC CURR1 ' Select channel 1 current.
:OUTP1 ON ' Turn on channel 1 output.
:INIT ' Trigger readings.
' Wait for buffer to fill
:OUTP1 OFF ' Turn off channel 1 output.
:TRAC:DATA? ' Request all data store readings.
' Read back result
:DISP:MODE CALC3 ' Select channel 1 for stats.
:CALC8:FORM MEAN ' Select mean buffer statistic.
:CALC8:DATA? ' Request mean reading.
' Read back result
:CALC8:FORM SDEV ' Standard deviation statistic.
:CALC8:DATA? ' Request standard deviation.
' Read back result