. |
Matrix Gain Mechaware API Documentation > Filter
OverviewOverviewThe Matrix Gain block is used to output a weighted sum of the Observer block’s states. The matrix gain block can only be connected to the states output of the observer block. The output of the matrix gain block is a double, and can be connected to any of the other mechaware blocks. The weighting of the states is specified by a file that contains the weighting coefficients. The length of the matix gain block is k, where k is the order of the observer that the matrix gain block is connected to. The maximum order of an observer is 16 (defined by MFWMaxObserverSize), and this is also the maximum length of the matrix gain block. The coefficients for this block are as follows:
Matlab/SimulinkSimulink Interface
The Matrix Gain block is used to output a weighted sum of the Observer block’s states. The matrix gain block can only be connected to the states output of the observer block. The output of the matrix gain block is a double, and can be connected to any of the other mechaware blocks. The weighting of the observer states is specified by the file specified by the Matrix Gain parameter in the block’s simulink parameter listing (see below). The block has two user data fields (User Data 0, User Data 1) to store application-specific data for convenient storage and retrieval. See User Data Storage for details. The block's update schedule is determined by the Evaluate Block. The following Parameter Dialog Box can be opened by double-clicking on the block in a Simulink Model: C++ APIMATRIXGAINBlockDeclaration Public Method
Description The Matrix Gain block is used to output a weighted sum of the Observer block’s states. The length of the matrix gain block is specified by Length, and it is the order of the observer block that the matrix gain block is connected. The Coefficients of the matrix gain block are specified by the coefficient registers. Parameters
Methods
|
| | Copyright © 2001-2012 Motion Engineering |