Documentation

SimEvents Blocks

Modeling

Entity Generation

Scheduled Generation

Time-Based Entity Generator Generate entities using intergeneration times from signal or statistical distribution
Time-Based Function-Call Generator Generate function-call events in a time-based manner.
Event-Based Random Number Generate random numbers from specified distribution, parameters, and initial seed
Event-Based Sequence Generate sequence of numbers from specified column vector
Event to Timed Signal Convert event-based signal to time-based signal
Event to Timed Function-Call Convert event-based function call to time-based function call
Timed to Event Signal Convert time-based signal to event-based signal
Timed to Event Function-Call Convert time-based function call to event-based function call

Dynamic Generation

Event-Based Entity Generator Generate entity upon signal-based event or function call
Entity-Based Function-Call Event Generator Generate function call events corresponding to entities
Signal-Based Function-Call Event Generator Generate function-call events in response to signal-based events
Timed to Event Function-Call Convert time-based function call to event-based function call

Entity Attributes

Attribute Function Access and modify attributes using MATLAB code
Set Attribute Assign data to entity
Event-Based Random Number Generate random numbers from specified distribution, parameters, and initial seed
Event-Based Sequence Generate sequence of numbers from specified column vector
Timed to Event Signal Convert time-based signal to event-based signal

Resources

Resource Acquire Acquire resource
Resource Pool Define resource
Resource Release Release resources that entities do not need

Event-Based and Time-Based Signals

Timed to Event Signal Convert time-based signal to event-based signal

Queuing

FIFO Queue Store entities in sequence for undetermined length of time
LIFO Queue Store entities in stack for undetermined length of time
Priority Queue Store entities in sorted sequence for undetermined length of time
Single Server Serve one entity for period of time
Infinite Server Delay any number of entities for period of time
N-Server Serve up to N entities for period of time

Routing

Input Switch Accept entities from selected entity input port
Output Switch Select entity output port for departure
Path Combiner Merge entity paths
Replicate Output copies of entity

Entity Management

Entity Blocking Control

Enabled Gate Allow entity arrivals upon positive control signal
Release Gate Allow one pending entity to arrive when event occurs
Entity Sink Accept or block entities

Entity Combination

Entity Combiner Generate one entity per set of entities arriving simultaneously
Entity Splitter Divide composite entity into component entities
N-Server Serve up to N entities for period of time

Timeout Modeling

Cancel Timeout Cancel timeout event for each entity
Schedule Timeout Schedule timeout event for each entity

Subsystems

Conn Provide entity input port or entity output port for virtual subsystem
Event Filter Conditionalize, suppress, or prioritize execution of Atomic Subsystem
Timed to Event Signal Convert time-based signal to event-based signal
Timed to Event Function-Call Convert time-based function call to event-based function call
Time-Based Function-Call Generator Generate function-call events in a time-based manner.

Simulation

Visualize Results

Attribute Scope Plot data from attribute of arriving entities
Instantaneous Entity Counting Scope Plot entity count versus time
Instantaneous Event Counting Scope Plot event count versus time
Signal Scope Plot data from signal
X-Y Attribute Scope Plot data from two attributes of arriving entities
X-Y Signal Scope Plot data from two signals

Analyze Signal Timing

Initial Value Output specified value until first sample time hit
Signal Latch Write input signal value to memory and read memory to output signal upon events
Event to Timed Signal Convert event-based signal to time-based signal
Timed to Event Signal Convert time-based signal to event-based signal

Manipulate Events

Event-Based Entity Generator Generate entity upon signal-based event or function call
Release Gate Allow one pending entity to arrive when event occurs
Entity Departure Counter Count departures and write result to signal port or attribute
Signal Latch Write input signal value to memory and read memory to output signal upon events
Entity-Based Function-Call Event Generator Generate function call events corresponding to entities
Signal-Based Function-Call Event Generator Generate function-call events in response to signal-based events
Entity Departure Function-Call Generator Convert entity departure event into one or two function calls
Signal-Based Function-Call Generator Convert signal-based events into function calls

Data Analysis

Data Generation

Get Attribute Output value of entity attribute
Read Timer Report statistical data about named timer associated with arriving entities
Start Timer Associate named timer to each arriving entity independently and start timing
Entity Departure Counter Count departures and write result to signal port or attribute

Data Postprocessing

Discrete Event Signal to Workspace Write event-based signal to workspace
Get Attribute Output value of entity attribute
Was this topic helpful?