| SimEvents® | ![]() |
simeventsconfig
simeventsconfig(sys,'des')
simeventsconfig(sys,'hybrid')
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.
| Parameter | Setting for DES Systems | Setting for Hybrid Systems |
|---|---|---|
| SolverName | VariableStepDiscrete | ode45 |
| SolverType | Variable-step | Variable-step |
| MaxStep | inf | inf |
| SaveTime | off | off |
| SaveOutput | off | off |
| AlgebraicLoopMsg | error | error |
| SolverPrmCheckMsg | none | none |
For information about the settings in the table, see Model Parameters in the Simulink® documentation. For information about discrete and continuous solvers, see Solvers.
![]() | se_setseeds | simeventsdocex | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |