.



Subsystem Blocks

MechaWare 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 Parameters

When 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 Names

Blocks 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

Model Downloader - MATLAB Workspace Import

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2009 Motion Engineering