| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → SimEvents |
| Contents | Index |
| Learn more about SimEvents |
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. |
Tip Suppose your entity possesses an attribute containing one of these quantities:
Use the attribute directly. This is better than creating a signal with the attribute value and ensuring that the signal is up-to-date when the entity arrives. For a comparison of the two approaches, see Example: Using a Signal or an Attribute. |
![]() | Manipulating Attributes of Entities | Counting Entities | ![]() |

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 |