SimEvents Functions


Entity Generation

Scheduled Generation

simevents Open SimEvents library
simeventslib Open SimEvents library
se_setseeds Set seed values for blocks with random number generators
se_randomizeseeds Randomize seeds


Configure Simulation

seupdate Update models from previous releases

Create Custom Visualization

getBlocksToObserve Blocks to observe during model simulation
getPace Pace at which simulation runs
initialize Initialize visualization during model initialization
simevents.CustomObserverInterface Create custom observer object
terminate Terminate animation when model terminates
entityAdvance Detect advance of entities from one block to another
entityCombine Detect combination of component entities into composite entity
entityDestroy Detect destruction of entity
entityGenerate Detect entity generation
entityQueue Detect entity enqueuing
entityReplicate Detect replication of entity
entitySplit Detect composite entity splitting into component entities
eventCancel Detect when block cancels event
eventExecute Detect when block executes event
eventSchedule Detect when block schedules event
continueFcn Continue observer when model simulation continues after pause
pauseFcn Pause observer when model pauses simulation
simevents.connectObserver Connect observer to model
simevents.disconnectObserver Disconnect observer from model
simevents.CustomObserverInterface Monitor and visualize event and entity activity during model simulation

Debug Simulation

Debugger Session

help Help for debugger functions
se_getdbopts SimEvents debugger options structure
sedebug Debug discrete-event simulation
sedb.quit Quit discrete-event simulation debugging session
sedb.detail Customize debugger simulation log in discrete-event simulation

Simulation Stepping

sedb.animate Turn on or off animation and control speed
sedb.cont Continue simulation until next breakpoint
sedb.runtoend Run until end of discrete-event simulation
sedb.step Single step in discrete-event simulation
sedb.bdelete Delete breakpoints in discrete-event simulation
sedb.blkbreak Set breakpoint for discrete-event simulation block
sedb.breakpoints List breakpoints in discrete-event simulation
sedb.disable Disable breakpoints in discrete-event simulation
sedb.enable Enable breakpoints in discrete-event simulation
sedb.enbreak Set breakpoint on operation involving target entity
sedb.evbreak Set breakpoint for execution or cancellation of event
sedb.tbreak Set timed breakpoint in discrete-event simulation

State Inspection

sedb.blkinfo Block information in discrete-event simulation
sedb.blklist Blocks and their identifiers in discrete-event simulation
sedb.currentop Current operation in discrete-event simulation
sedb.enbreak Set breakpoint on operation involving target entity
sedb.eninfo Entity information in discrete-event simulation
sedb.evcal Event calendar of discrete-event simulation
sedb.evinfo Event information in discrete-event simulation
sedb.gceb Name of currently executing block in discrete-event simulation
sedb.gcebid Identifier of currently executing block in discrete-event simulation
sedb.gcen Identifier of entity currently undergoing operation
sedb.gcev Identifier of current event
sedb.simtime Current time in discrete-event simulation

Data Analysis

Data Generation

se_getseeds Seed values of random number generators in blocks
Was this topic helpful?