LP('Expression','Omega*','Reset=0')

Arguments

'Expression'

Measured value

'Omega*'

Specification of the angular frequency of the filter, which results in the frequency of the LP function to frequency = 'Omega'/(2*PI)

'Reset'

Optional digital parameter that can be used to deactivate the function. ‘Reset’ can be an expression as well.

'Reset' > 0

Filter is deactivated, input signal is displayed unfiltered

'Reset' = 0

Filter is applied

Parameters ending with * are only evaluated once at the start of the acquisition.

Description

The function is a low-pass filter with frequency = 'Omega'/(2*PI) applied to 'Expression'. The filter is a single-pole filter with a roll-off rate of 20 dB/decade. If the optional 'Reset' parameter is TRUE then the filter is deactivated and the result is the unfiltered 'Expression' input signal. 'Reset' can also be formulated as an expression.

Examples:

LP([0:0],10)

Filter is active ('Reset' omitted).

LP([0:0],10,If([0:0]<0,1,0))

The filter function is only used for positive values.

LP([0:0],10,[3.1])

e.g. with [3.1] = If([0:0]>10, 1, 0)

The filter is deactivated as soon as the expression [3.1] returns TRUE, i.e. if the expression [0:0] exceeds the limit value 10.

Example

Applying the filter function to a sine wave with 10 Hz, which is overlaid by a further wave with 50 Hz.

Task description

The filter function should be applied with the values 5, 10 and 40 for 'Omega'.

Solution

The lower the value selected for 'Omega', the more the signal is attenuated.