- Enable 'Number of entities departed, d' option in the 'Statistics' tab of the 'Entity Generator block Parameters'. This enables an output signal.
- Connect the output signal from 'Entity Generator' block to a 'Detect Change' block input port.
- The output signal of the 'Detect Change' block can then be passed on as an input to the 'Message Send' block.
- Resource Pool: https://www.mathworks.com/help/simevents/ref/resourcepool.html
- Entity Generator: https://www.mathworks.com/help/simevents/ref/entitygenerator.html
- Detect Change: https://www.mathworks.com/help/simulink/slref/detectchange.html
- Message Send: https://www.mathworks.com/help/simulink/slref/send.html