9-11
IM DLM3054-01EN
Examples of Expressions
For each operator, correct expressions and easily mistaken expressions are listed. Incorrect examples are
shaded.
DIFF and INTEG (differentiation and integration) Examples
Syntax: DIFF(parameter), INTEG(parameters)
Parameter: Enter a waveform or an expression that contains waveforms.
DIFF(C1/3) Derivative of the C1/3 waveform
INTEG(INTEG(C3)) Double integral of the C3 waveform
DIFF(DIFF(C4)) Double derivative of the C4 waveform
DIFF(5) Not allowed because the parameter is a constant
INTEG(K1+10) Not allowed because the parameter is a constant expression
FILT1 and FILT2 (Digital Filter) Examples
Syntax: FILT1(parameter), FILT2(parameter)
Parameter: Enter a waveform or an expression that contains waveforms.
FILT1(C1+C2) Digital filtering of the C1+C2 waveform
FILT1(C3+K1) Digital filtering of the C1+K1 waveform
FILT1(5) Not allowed because the parameter is a constant
FILT2(K1+10) Not allowed because the parameter is a constant expression
* The digital filters must be defined.
MEAN (Moving Average) Examples
Syntax: MEAN(parameter 1, parameter 2)
Parameter 1: Set the source waveform of the moving average. Enter a waveform or an expression that
contains waveforms.
Parameter 2: Set the moving average coefficient. Enter a constant or a constant expression.
MEAN(C1,10) Moving average of waveform C1 with the coefficient set to 10
MEAN(C2+C3,K1) Moving average of the C2+C3 waveform with the coefficient set to K1
MEAN(5,10) Not allowed because parameter 1 is not a waveform or an expression that
contains waveforms
MEAN(C1,C2) Not allowed because parameter 2 is not a constant or a constant expression
DELAY (Phase Shift) Examples
Syntax: DELAY(parameter 1, parameter 2)
Parameter 1: Set the waveform to phase-shift. Enter a single-term waveform.
Parameter 2: Set the amount of phase shift. Enter a constant or a constant expression.
DELAY(C1,5E−3) Phase-shift waveform C1 by 0.005 s
DELAY(C2,P.
Period(C2)
*
2)
Phase-shift waveform C2 by 2 periods of waveform C2
DELAY(C1,C2) Not allowed because parameter 2 is not a constant or a constant expression
DELAY(C1+C2,5) Not allowed because parameter 1 is not a single-term waveform
9 Computed and Reference Waveforms