Generate function call events corresponding to entities
Generators / Event Generators
The Entity-Based Function-Call Event Generator block
will be removed in a future release. Use the Entity
Departure Function-Call Generator block instead. To update your model to avoid using obsolete blocks, see
This block generates a function call corresponding to each entity that arrives at the block. You can choose whether the block generates the function call before or after the departure. You can use the function call to invoke function-call subsystems, Stateflow® blocks, or other blocks that accept function-call inputs.
This block is similar to the Entity Departure Function-Call Generator block, which offers more flexibility.
Entity Input Ports
|IN||Port for arriving entities.|
Entity Output Ports
|OUT||Port for departing entities.|
Signal Output Ports
|Label||Description||Time of Update When Port Is Present||Order of Update|
|f1||Function-call signal.||Before or after entity departure, depending on Generate function call parameter||1|
|#d||Number of entities that have departed from this block since the start of the simulation.||After entity departure||3|
|#f1||Number of function calls the block has generated since the start of the simulation.||After entity departure||2|
The initial output value for the numerical signals, which is in effect from the start of the simulation until the first update by the block, is 0.
Determines whether the function call occurs before or after the entity departs from this block.
Allows you to use the signal output port labeled #d.
Allows you to use the signal output port labeled #f1.