Programming Example - Keithley 2750 User Manual

Multimeter/switch system
Hide thumbs Also See for 2750:
Table of Contents

Advertisement

6-14
Buffer
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.
NOTE
NOTE

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 2750 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?
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 2750 is busy. While busy with the calculation, remote program-
ming commands will not execute.
Use *OPC or *OPC? with CALC2:IMM and CALC2:IMM? when performing
the standard deviation calculation on a large buffer. See
on *OPC and *OPC?
Model 2750 Multimeter/Switch System User's Manual
Select buffer statistic
Control (on/off) buffer statistic
Calculate data in buffer
Calculate and read result
Read result of statistic calculation
' 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.
Section 12
for details

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents