asiInterruptSim
asiInterruptSim(o_session) =>g_status/nil
Description
This method provides an interrupt to the simulation run process for a session. It is associated with the Simulation->Stop action in the user interface. This method is called by the environment. Therefore, you should not call it directly from the interface. This method can be re-defined for the interface. Use callNextMethod in this definition.
This function is defined as a method for the Analog Class. You can overload this method for your simulator class, as illustrated in the example. If you want to send a soft interrupt signal to your simulator, refer to the example mentioned in the asiQuitSimulator function.
Arguments
Value Returned
Examples
The following example shows how to override a method to interrupt a simulation run process:
defmethod( asiInterruptSim (( session yourSimulator_session )) println("yourSimulator : Simulation stopped by user") <insert code you need > callNextMethod() <insert code you need >
)
Return to top