simeventsconfig - Change model settings for discrete-event simulation

Syntax

simeventsconfig
simeventsconfig(sys,'des')
simeventsconfig(sys,'hybrid')

Description

simeventsconfig changes settings of the current system to values appropriate for discrete-event simulation (DES) modeling.

simeventsconfig(sys,'des') changes settings of the specified system to values appropriate for discrete-event simulation modeling. In particular, this syntax changes the solver to a variable-step discrete solver.

simeventsconfig(sys,'hybrid') changes settings of the specified system to values appropriate for modeling systems that combine time-driven and discrete-event-driven behavior. In particular, this syntax changes the solver to a continuous solver, ode45.

This function assigns the following simulation settings.

ParameterSetting for DES SystemsSetting for Hybrid Systems
SolverNameVariableStepDiscreteode45
SolverTypeVariable-stepVariable-step
MaxStepinfinf
SaveTimeoffoff
SaveOutputoffoff
AlgebraicLoopMsgerrorerror
SolverPrmCheckMsgnonenone

For information about the settings in the table, see Model Parameters in the Simulink® documentation. For information about discrete and continuous solvers, see Solvers.

See Also

simeventsstartup

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS