Products & Services Solutions Academia Support User Community Company

Learn more about SimEvents   

Accessing Attributes of Entities

The table describes some ways you can access and use data that you have attached to an entity.

Use Attribute Values To...Technique
Create a signal

Use the Get Attribute block.

For example, see the subsystem of the model described in Adding Event-Based Behavior.

Create a plot

Use the Attribute Scope block and name the attribute in the Y attribute name parameter of the block.

Alternatively, use the X-Y Attribute Scope block and name two attributes in the X attribute name and Y attribute name parameters of the block.

For example, see the reference page for the X-Y Attribute Scope block.

Compute a different attribute value

Use the Attribute Function block.

For example, see Attribute Names Unique and Accessible in Composite Entity.

Help specify behavior of a block that supports the use of attribute values for block parameters. Examples are the service time for a server and the selected port for an output switch.

Name the attribute in the block dialog box as applicable.

For example, see Example: Using an Attribute to Select an Output Port.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS