IEEE-488 Reference
4-61
Format
:calc:form mxb <name>
Defaults
Power-up Saved power-on setup
*RST PERCent
:SYSTem:PRESet PERCent
Query
:FORMat? Query programmed math format
Short-form format: :calc:form?
Response message: MXB, PERC, PDEV, or NONE
Description
This command is used to specify the format for the CALC 1 math calculation. With NONE se-
lected, no CALC 1 calculation will be performed. With one of the other formats selected and
CALC 1 enabled (see :STATe), the result of the calculation will be displayed. The calculated
reading will be refreshed every time the instrument takes a reading.
mX+b: This calculation multiplies a constant (m) times the input reading (X) and adds an off-
set (b). Note that if a reference (see Sense1 subsystem) is established, then X = input
signal - reference.
Percent: This calculation is performed as follows:
where; X = input signal - reference (reference is zero if :REFerence is disabled; see Sense1
subsystem).
Percent deviation: See paragraph 3.10.3.
Programming example
10 OUTPUT 716; “:calc:form mxb; form?”
20 ENTER 716; A$
30 PRINT A$
40 END
Line 10 Two commands in this program message; the first selects the mX+b math format, and
the second queries the programmed format.
Line 20 Addresses the Model 2001 to talk.
Line 30 Displays the programmed math format for CALC 1 (MXB).
:KMATh commands
:MMFactor <NRf>
:CALCulate[1]:KMATh:MMFactor <NRf> Specify “m” factor
Parameter
<NRf> = -1e21 to 1e21 Specify “m” factor for mX+b calculation.
Format
:calc:kmat:mmf <NRf>
Defaults
Power-up Saved power-on setup
*RST “m” = 1
:SYSTem:PRESet “m” = 1
Percent
X
Target
Value
-------------------------------
100
×
=