End
This block pauses, stops or restarts a simulation. The block also generates errors and messages.
Library
Activate/ActivationOperations
Description
The End block can perform one of the following actions when activated:
- Stop: the block asks the simulator to stop the simulation and generates the message defined by the parameter "Message".
- Pause: the block asks the simulator to pause the simulation and generates the message defined by the parameter "Message".
- Restart: the block asks the simulator to restart the simulation process (evaluation, compilation and simulation).
- Error: the block generates an error. The simulator exits with the error defined by the parameter "Message".
- Message: the block generates the message defined by the parameter "Message".
- Simulation cold-restart: Once activated, the block forces the simulator to do a cold-resrat of the numerical solver. A message defined by the parameter "Message" is generated.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
job | Action to perform at event instant(s) | Action performed when the block is activated. | String | 'Stop' |
bmessage | Message | The message printed when the block is activated. When the action is a "Restart" this parameter is not used. | String |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | activation | input | 1 |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | no | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |