| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → SimEvents |
| Contents | Index |
| Learn more about SimEvents |
Generators / Event Generators
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 Event to Function-Call Event block, which offers more flexibility.
Entity Input Ports
| Label | Description |
|---|---|
| IN | Port for arriving entities. |
Entity Output Ports
| Label | Description |
|---|---|
| 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.

Controls the presence and behavior of the signal output port labeled #d.
Controls the presence and behavior of the signal output port labeled #f1.
See Example: Performing a Computation on Selected Entity Paths.
Entity Departure Event to Function-Call Event, Signal-Based Function-Call Event Generator
Generating Function-Call Events
![]() | Entity Splitter | Event-Based Entity Generator | ![]() |

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 |