Keithley 2010 User Manual page 161

Hide thumbs Also See for 2010:
Table of Contents

Advertisement

:STATE <b>
:CALCulate2:STATe <b>
Parameters
<b> =
Query
:STATe?
Description
This command is used to enable or disable the CALC2 calculation. When en-
abled, the selected CALC2 format will be calculated when the :IMMediate
or :IMMediate? command is executed.
:IMMediate
:CALCulate2:IMMediate
Query
:IMMediate?
Description
The :IMMediate command is used to perform the selected CALC2 operation
on the readings in the buffer (assuming CALC2 is enabled; see :STATe).
After performing the calculation, the result can be read by using the
:CALCulate2:DATA? query command.
Another way to perform the calculation and read the result is to use the query
form of the command (:IMMediate?). When this command is sent, the
calculation is performed and the result is queried.
Program
This example assumes that there are readings stored in the buffer and that
CALC2 is enabled:
PRINT #1, "output 02; :calc2:form max" ' Select format
PRINT #1, "output 02; :calc2:imm?"
PRINT #1, "enter 02"
:DATA?
:CALCulate2:DATA?
Description
This query command is used to read the result of the CALC2 calculation. If
CALC2 is disabled or NONE is selected, the "raw" reading will be read.
SCPI Command Reference
Control CALC2
0 or off
Disable CALC2 calculation
1 or on
Enable CALC2 calculation
Query state (on or off) of CALC2.
Perform CALC2
Perform calculation and read result (equivalent
to :CALCulate2:IMMediate; DATA?)
Read CALC2 result
' Perform math and query result
' Get response from 2010
5-23

Advertisement

Table of Contents
loading

Table of Contents