Math SCPI

M9370A / M9371A / M9372A / M9374A / M9375A

Calculate:Math Commands


Controls math operations on the currently selected measurement and memory.

CALCulate:MATH:

FUNCtion

MEMorize

 

Click on a keyword to view the command details.

See Also

Critical Note: CALCulate commands act on the selected measurement. You can select one measurement for each channel using Calc:Par:MNUM or Calc:Par:Select. Learn more.


CALCulate<cnum>:MATH:FUNCtion <char>

(Read-Write) Sets math operations on the currently selected measurement and the trace stored in memory. (There MUST be a trace stored in Memory. See CALC:MATH MEM)

See Critical Note

Parameters

 

<cnum>

Channel number of the measurement. There must be a selected measurement on that channel. If unspecified, <cnum> is set to 1.

<char>

The math operation to be applied. Choose from the following:

 

NORMal

Trace data only

 

ADD

Data + Memory

 

SUBTract

Data - Memory

 

MULTiply

Data * Memory

 

DIVide

Data / Memory

Examples

CALC:MATH:FUNC NORM
calculate2:math:function subtract

Query Syntax

CALCulate<cnum>:MATH:FUNCtion?

Return Type

Character

Default

NORMal


CALCulate<cnum>:MATH:MEMorize

(Write-only) Puts the currently selected measurement trace into memory. (Data-> Memory).

See Critical Note

Parameters

 

<cnum>

Channel number of the measurement. There must be a selected measurement on that channel. If unspecified, <cnum> is set to 1.

Examples

CALC:MATH:MEM
calculate2:math:memorize

Query Syntax

Not applicable

Default

Not applicable