Programming Example - Keithley SourceMeter 2790 Reference Manual

Hide thumbs Also See for SourceMeter 2790:
Table of Contents

Advertisement

6-14
m. CALCulate2:FORMat <name>
CALCulate2:STATe ON | OFF
CALCulate2:IMMediate
CALCulate2:IMMediate?
CALCulate2:DATA?
<name> = MINimum | MAXimum | MEAN | SDEViation | PKPK | NONE
After the selected buffer statistic is enabled, IMMediate or IMMediate? must be sent to cal-
culate the statistic from the data in the buffer. The CALCulate2:DATA? command does not
initiate a calculate operation. It simply returns the result of the last calculation. If new data is
stored in the buffer, you must again send IMMediate or IMMediate? to recalculate the statis-
tic from that new data.
klqb

Programming example

The following command sequence stores 20 readings in the buffer and then calculates the
mean for those readings. Note that after sending a query command, the Model 2790 must
be addressed to talk.
' Store readings:
TRAC:CLE:AUTO ON
TRAC:POIN 20
TRAC:FEED SENS
TRAC:FEED:CONT NEXT
TRAC:DATA?
' Calculate mean:
CALC2:FORM MEAN
CALC2:STAT ON
CALC2:IMM?
Model 2790 SourceMeter
If the standard deviation calculation is being performed on a buffer that has
more than 1000 readings, the "CALCULATING" message will flash to indicate
that the Model 2790 is busy. While busy with the calculation, remote program-
ming commands will not execute.
Use *OPC or *OPC? with CALC2:IMM when performing the standard devia-
tion calculation on a large buffer. See
*OPC?.
®
Switch System Reference manual
Select buffer statistic
Control (on/off) buffer statistic
Calculate data in buffer
Calculate and read result
Read result of statistic calculation
Section 12
for details on *OPC and
' Enable buffer auto-clear.
' Set buffer size to 20.
' Select raw readings for storage.
' Start storage process.
' Request all stored readings.
' Select mean calculation.
' Enable mean calculation.
' Perform calculation and request result.

Advertisement

Table of Contents
loading

Table of Contents