. |
Proportional Selector Mechaware API Documentation > Logic
OverviewOverviewThe Selector block proportionally selects two inputs and outputs this selection. This block implements the following equation to proportionally select the two inputs: Output = Selector * Input0 + (1-Selector) * Input1 This block allows two main functions, the ability to Mix two signals (similar to a Crossfader on a mixer, switching between two music sources) and smooth transitions between states. For example, to change the gain of Kp in a control system, an abrupt change might introduce a disturbance large enough to cause instability. However, the selector will work to gradually change Kp. Example
The configuration values for this block are as follows:
Matlab/SimulinkSimulink Interface
This block has three inputs Input 0, Input 1 and Selector. The block implements the equation defined in the Overview. 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++ APISELECTORBlockDeclaration Public Method
Description The Selector block computes the proportional selection of two inputs. This block has no configurable parameters. Methods |
| | Copyright © 2001-2012 Motion Engineering |