discrete-凯发k8网页登录
you can extend the existing functionality of simevents® by authoring new blocks to model behaviors that are not provided with a simevents built-in solution. to create custom functionality in simevents models, you can use the matlab discrete-event system block that allows you to implement a discrete-event system object written in matlab® language.
to implement a custom discrete-event system object, inherit class. link the system object to a simevents model by using a block. the linked matlab discrete-event system block exhibits the desired custom behavior during simulation.
blocks
matlab discrete-event system |
classes
base class for discrete-event system objects |
methods
topics
the simevents library provides design patterns that you can refer to while modeling.
author discrete-event system object by defining entity types, ports, storage, and events.
- step 1:
- step 2:
- step 3:
- step 4:
- step 5: build a custom block with multiple storages
- step 6:
use the
matlab.discreteeventsystem
class to implement a discrete-event system object.configure matlab discrete-event system block.
define and work with events in custom discrete-event systems.
call simulink® function from a matlab discrete-event system block.
this example shows how to model resource scheduling using data exchange between the matlab discrete-event system block and the data store memory block.