main content

modeling system architecture of small uav -凯发k8网页登录

overview

this example shows how to use system composer™ to set up the architecture for a small unmanned aerial vehicle, composed of six top-level components. learn how to refine your architecture design by authoring interfaces, inspect linked textual requirements, define profiles and stereotypes, and run a static analysis on such an architecture model.

open the project. scexamplesmalluav

starting: simulink

author interfaces

define interfaces for domain-specific data between connections. the information shared between two ports defined by interface element property values further enhances the specification. to open the , in the modeling tab in the toolstrip, click interface editor.

click the gs commands port on the architecture model to highlight the architecture_gscommands interface and indicate the assignment of the interface.

inspect requirements

a requirements toolbox™ license is required to inspect requirements in a system composer architecture model.

components in the architecture model link to system requirements defined in scexamplesmalluavmodel.slreqx. open the requirements manager. in the bottom right corner of the model pane, click show perspectives views. then, click requirements.

select components on the model to see the requirement they link to, or, conversely, select items in the requirements view to see which components implement them. requirements can also be linked to connectors or ports to allow traceability throughout your design artifacts. to edit the requirements in smalluavreqs.slreqx, select the (requirements toolbox) from the menu.

the carrying capacity requirement highlights the total mass able to be carried by the aircraft. this requirement, along with the weight of the aircraft, is part of the mass rollup analysis performed for early verification and validation.

define profiles and stereotypes

to complete specifications and enable analysis later in the design process, stereotypes add custom metadata to architecture model elements. this model has stereotypes for these elements:

  • on-board element, applicable to components

  • rf connector, applicable to ports

  • rf wiring, applicable to connectors

stereotypes are defined in xml files by using profiles. the profile uavcomponent.xml is attached to this model. edit a profile by using the . on the modeling tab, click profile editor.

the display appears below.

analyze the model

to run static analyses on your system, create an analysis model from your architecture model. an analysis model is a tree of instances generated from the elements of the architecture model in which all referenced models are flattened out, and all variants are resolved.

to open the tool, click analysis model on the views menu.

run a mass rollup on this model. in the dialog, select the stereotypes that you want to include in your analysis. select the analysis function by browsing to utilities/massrollup.m. set the model iteration mode to bottom-up.

uncheck strict mode so that all components can have a mass property instantiated to facilitate calculation of total mass. click instantiate to generate an analysis.

once on the screen, click analyze. the analysis function iterates through model elements bottom up, assigning the mass property of each component as a sum of the mass properties of its subcomponents. the overall weight of the system is assigned to the mass property of the top level component, scexamplesmalluavmodel.

see also

| | | | |

related topics

网站地图