Page 154 - ExtendSim User Guide
P. 154

128
Items, Properties, and Values
Item properties
To Do This:
Calculate an item’s cycle time
Adding item attributes to a model
Use Block(s)
Set an attribute to the current time in a Set block or use the Timing attribute feature in the Create block’s Options tab. Then use the Timing attribute feature in the Infor- mation block so that it calculates the differ- ence from start to end time. See “Cycle timing” on page 312.
The Item library blocks that deal with attributes are listed in “Property-aware blocks” on page 121. These blocks provide a popup menu interface for selecting existing item properties or for adding new ones.
☞ Depending on the block, the popup menu may offer different choices of attribute types to set. For example, the Set block allows creating value, string, or DB address attributes.
Creating a new attribute causes it to appear in the list of properties in the block’s dialog and makes the attribute accessible by every property-aware block in the model.
The following information describes how to create different types of attributes in the Property Name column of the table in the Set block’s dialog:
• To create a new value item attribute, click the Property Name popup menu, choose New Value Attribute, type the name of the new attribute in the dialog that appears, and click OK. For example, a value attribute might be named “size”.
• Todefineanewstringitemattribute,selectNewStringAttributefromthepopupmenuin the Property Name column, enter a name, and click OK. This automatically opens the Exec- utive block’s Item Attributes tab. The table in this tab is where the attribute values (and the corresponding strings) for string attributes are declared. An example of this is shown in “Creating a string attribute” on page 115. An example of a string attribute could be “Car- Type” and the corresponding string/value combinations might be Ford/1, Toyota/2, and Volvo/3.
• CreatinganewDBaddressattributerequiresanexistingExtendSimdatabase.IntheSetdia- log, select an ExtendSim database from the popup list that appears. To create the DB address attribute, click the popup menu in the Property Name column, choose New DB Address Attribute, type the name of the new attribute in the dialog that appears, and click OK. For example, a DB address attribute could be named “ProcessTime”.
Discrete Event


































































































   152   153   154   155   156