Start of trail Discrete Second-Order Low-Pass Filter navigation bar

Table of Contents

Bias Removal

Calculates the initial bias (using a simple moving average algorithm) of the input signal and removes the estimated bias from the input signal.

Library

QUARC Targets/Discrete

Description

Bias Removal

The Bias Removal block calculates the initial bias (using the simple moving average method) of the input signal and removes the estimated bias from the input signal. The input signal initial bias is only calculated during the duration defined between the Start time for the inital bias estimation (s) and Stop time for the inital bias estimation (s) parameters.

Input Ports

X

Input signal to which the initial bias estimation and removal are applied.

Output Ports

X-Xbias

Before the initial bias has been fully estimated (i.e., before the time defined by the Stop time for the inital bias estimation (s) parameter has passed), the signal output here is defined by the menu item selected from the drop-down list provided by the (X-Xbias) output during bias estimation parameter. Once the initial bias has been fully estimated (i.e., after the time defined by the Stop time for the inital bias estimation (s) parameter has passed), the X-Xbias output is equal to the bias-removed X-Xbias calculated signal.

Xbias

Output of the unweighted moving average computation estimating the signal initial bias. The calculation to estimate the initial bias is only carried out during the duration defined between the Start time for the inital bias estimation (s) and Stop time for the inital bias estimation (s) parameters.

done

Output signal indicating, when equal to 1, that the estimation of the input signal initial bias is complete. This output signal is equal to 0 otherwise.

Parameters and Dialog Box

Bias Removal

Start time for the inital bias estimation (s) (tunable online)

Time (in seconds) from which to start estimating the initial bias from the input signal. In other words, the moving average computation used to estimate the bias is started (i.e., enabled) at this time parameter value.

Stop time for the inital bias estimation (s) (tunable online)

Time (in seconds) from which to stop estimating the initial bias from the input signal. In other words, the moving average computation used to estimate the bias is stopped (i.e., disabled) at this time parameter value.

(X-Xbias) output during bias estimation (tunable online)

This drop-down menu allows to specify what the X-Xbias output of this block should be before the input signal initial bias has been fully calculated, i.e., while the done output is still 0. In all cases once the initial bias has been fully estimated (i.e., after the time defined by the Stop time for the inital bias estimation (s) parameter), the X-Xbias output is the bias-removed X-Xbias calculated signal.

Selecting the 0 menu item makes the X-Xbias output equal to 0, until the initial bias has been fully estimated, at which point the X-Xbias output is the bias-removed X-Xbias calculated signal.

Selecting the X menu item makes the X-Xbias output equal to the biased input signal X, until the initial bias has been fully estimated (i.e., when the done output is 1), at which point the X-Xbias output is the bias-removed X-Xbias calculated signal.

Selecting the X-Xbias menu item makes the X-Xbias output equal to the result of the X-Xbias computation, where X-Xbias is the latest estimated bias value (or 0 if the estimation has not started yet).

Sample time (s)

The sample time (in seconds) of the block.

Targets

Target Name

Compatible*

Model Referencing

Comments

QUARC Win32 Target

Yes

Yes

QUARC Win64 Target

Yes

Yes

QUARC Linux Nvidia Target

Yes

Yes

QUARC Linux QBot Platform Target

Yes

Yes

QUARC Linux QCar 2 Target

Yes

Yes

QUARC Linux QDrone 2 Target

Yes

Yes

QUARC Linux Raspberry Pi 3 Target

Yes

Yes

QUARC Linux Raspberry Pi 4 Target

Yes

Yes

QUARC Linux RT ARMv7 Target

Yes

Yes

QUARC Linux x64 Target

Yes

Yes

QUARC Linux DuoVero Target

Yes

Yes

QUARC Linux DuoVero 2016 Target

Yes

Yes

QUARC Linux Verdex Target

Yes

Yes

QUARC QNX x86 Target

Yes

Yes

Last fully supported in QUARC 2018.

Rapid Simulation (RSIM) Target

Yes

Yes

S-Function Target

No

N/A

Old technology. Use model referencing instead.

Normal simulation

Yes

Yes

* Compatible means that the block can be compiled for the target.

 

navigation bar