6-14
Buffer
Model 2750 Multimeter/Switch System User’s Manual
m. CALCulate2:FORMat <name>
Select buffer statistic
CALCulate2:STATe ON | OFF
Control (on/off) buffer statistic
CALCulate2:IMMediate
Calculate data in buffer
CALCulate2:IMMediate?
Calculate and read result
CALCulate2:DATA?
Read result of statistic calculation
<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
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.
NOTE
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?
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
' 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.
2750-900-01.book Page 14 Wednesday, August 3, 2011 7:56 AM
Summary of Contents for 2750
Page 3: ...2750 900 01 book Page 2 Wednesday August 3 2011 7 56 AM...
Page 7: ...2750 900 01 book Page 4 Wednesday August 3 2011 7 56 AM...
Page 17: ...2750 900 01 book Page 10 Wednesday August 3 2011 7 56 AM...
Page 324: ...12 CommonCommands 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Page 348: ...15 SCPIReferenceTables 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Page 374: ...B Model7700ConnectionGuide 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Page 386: ...C StatusandErrorMessages 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Page 394: ...D SignalProcessing SequenceandDataFlow 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Page 408: ...E MeasurementConsiderations 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...
Page 428: ...G IEEE 488BusOverview 2750 900 01 book Page 1 Wednesday August 3 2011 7 56 AM...