. |
Subsystem BlocksMechaWare supports the use of Subsystem blocks in Simulink, both with and without masks. For instructions on how to create and mask subsystem blocks, see the Simulink documentation. Mask ParametersWhen using masks, the parameters can be used symbolically by the blocks inside the subsystem. These symbols will be resolved at download time by the Model Downloader. Note: Parameters can also reference MATLAB workspace variables. For more information, see MAT Workspace Import. Block NamesBlocks within subsystems will have the name of the containing block and colon preceding their name. Example: Consider the following model, located in the Samples\MDL\Subsystem directory of the MechaWare installation.
Each of the Subsystem blocks can be set up with a mask and parameters, as shown below. By looking under the mask for Axis Subsystem1, we can see how it is implemented. Inspecting the BiQuad filter, notice that its Coefficient File Name parameter uses the BIQ parameter of the subsystem mask. When Subsystem.mdl is downloaded, this block looks for a file called lowpass500.txt for its coefficients. Notice the name of the BiQuad Filter block listed as Axis Subsystem1:BiQuad Filter: See Also |
| | Copyright © 2001-2009 Motion Engineering |