End

This block pauses, stops or restarts a simulation. The block also generates errors and messages.

    End

Library

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".

Parameters

End_0

NameLabelDescriptionData TypeValid Values

job

Action to perform at event instant(s)

Action performed when the block is activated.

String

'Stop'
'Pause'
'Restart'
'Error'
'Message'

bmessage

Message

The message printed when the block is activated. When the action is a "Restart" this parameter is not used.

String

Ports

NameTypeDescriptionIO TypeNumber

Port 1

activation

input

1

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

no

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no