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
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
qc_open_library('quarc_library/Discrete')Description
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
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 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).
menu item makes theSample time (s)
The sample time (in seconds) of the block.
Targets
Target Name |
Compatible* |
Model Referencing |
Comments |
---|---|---|---|
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
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 |
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.