scope_set_math
Configure math waveforms on a LeCroy oscilloscope using arithmetic, signal processing (FFT, integration, derivative), envelope, or parameter-based functions. Define a math expression for channels 1-4.
Instructions
Define a math waveform function.
Available operators (all MAUI scopes):
Arithmetic: ABS(C1) absolute value INVERT(-C1) negation SQR(C1) square SQRT(C1) square root RECIPROCAL(C1) 1/x RESC(C1) rescale (scale + offset + change units) C1+C2 sum of two channels C1-C2 difference C1*C2 product C1/C2 ratio
Signal processing: FFT(C1) Fast Fourier Transform — use TYPE parameter to select POWERSPECTRUM (dBm), MAGNITUDE, PHASE, REAL, IMAGINARY. WINDOW options: VONHANN, HAMMING, FLATTOP, BLACKMANHARRIS, RECTANGULAR. Example: EQN,"FFT(C1)",TYPE,POWERSPECTRUM,WINDOW,VONHANN INTG(C1) integral DERI(C1) derivative (adjacent-sample subtraction) AVG(C1) averaging — add AVERAGETYPE,SUMMED or CONTINUOUS ERES(C1) enhanced resolution (smoothing, 0.5–3 extra bits)
Envelope / extrema: FLOOR(C1) minimum value at each X over N sweeps ROOF(C1) maximum value at each X over N sweeps
Parameter-based (use a measurement parameter Pn as source): TREND(P1) trend plot of parameter values over time HIST(P1) histogram of parameter values
Display only: ZOOMONLY(C1) zoom display without computation
After setting an FFT, use scope_set_math_zoom to zoom the frequency axis.
Args: func: Math function number 1–4 equation: Math expression string, e.g. 'FFT(C1)' or 'C1+C2'
Transport: SCPI
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| func | Yes | ||
| equation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |