SCPI.CALCulate(Ch).SELected.MATH.FUNCtion

Object type

Property (Read-Write)

Syntax

All revision:

SCPI.CALCulate(Ch).SELected.MATH.FUNCtion = Param

Param = SCPI.CALCulate(Ch).SELected.MATH.FUNCtion

 

In revision A.9.60 and above, the following syntax is also supported:

SCPI.CALCulate(Ch).TRACe(Tr).MATH.FUNCtion = Param

Param = SCPI.CALCulate(Ch).TRACe(Tr).MATH.FUNCtion

Description

This command sets/gets the data trace display method (math method between measurement data and memory trace data), for the active trace of selected channel (Ch).

In revision A.9.60 and above, you can select the trace and set/get the data trace display method for the trace just by executing the above TRACe(Tr) command. You do not need to execute SCPI.CALCulate(Ch).PARameter(Tr).SELect.

Variable

Parameter

Param

Description

Math method between measurement data and memory trace data

Data type

Character string type (String)

Range

Select from the following:

  • "NORMal": Specifies Data (no math).

  • "DIVide": Specifies Data / Mem.

  • "MULTiply": Specifies Data x Mem.

  • "SUBTract": Specifies Data - Mem.

  • "ADD": Specifies Data + Mem.

Where Data is the measurement data (corrected data array) and Mem is the data stored in the memory trace (corrected memory array).

Preset value

"NORMal"

Examples

Dim MathFunc As String
SCPI.CALCulate(1).PARameter(1).SELect
SCPI.CALCulate(1).SELected.MATH.FUNCtion = "div"
MathFunc = SCPI.CALCulate(1).SELected.MATH.FUNCtion

Related objects

SCPI.CALCulate(Ch).PARameter(Tr).SELect

Equivalent key

Display > Data Math > OFF|Data / Mem|Data * Mem|Data -   Mem|Data + Mem

Equivalent SCPI command

Syntax

All revision:

:CALCulate{[1]-160}[:SELected]:MATH:FUNCtion {NORMal|
SUBTract|DIVide|ADD|MULTiply}

:CALCulate{[1]-160}[:SELected]:MATH:FUNCtion?

 

In revision A.9.60 and above, the following syntax is also supported:

:CALCulate{[1]-160}:TRACe{[1]-16}:MATH:FUNCtion {NORMal|
SUBTract|DIVide|ADD|MULTiply}

:CALCulate{[1]-160}:TRACe{[1]-16}:MATH:FUNCtion?

Query response

{NORM|DIV|MULT|SUBT|ADD}<newline><^END>

Example of use

10 OUTPUT 717;":CALC1:MATH:FUNC DIV"
20 OUTPUT 717;":CALC1:MATH:FUNC?"
30 ENTER 717;A$