Skip to Main Content Skip to Search
Product Documentation

Converting Between Time-Based and Event-Based Signals

When to Convert Signals

Time-based signals and event-based signals have different characteristics, as described in Comparison with Time-Based Signals. Here are some indications that you might need to convert a time-based signal into an event-based signal, or vice versa:

When Not to Convert Signals

Here are some indications that converting a time-based signal into an event-based signal, or vice versa, might be inappropriate:

How to Convert Signals

Use the blocks in the tables to convert between time-based and event-based signals. These blocks exist in the Gateways library. The documentation refers to these blocks collectively as gateway blocks.

Converting Numerical Data Signals

FromToConversion Block
Time-based signalEvent-based signalTimed to Event Signal
Event-based signalTime-based signalEvent to Timed Signal

Converting Function-Call Signals

FromToConversion Block
Time-based signalEvent-based signalTimed to Event Function-Call
Event-based signalTime-based signalEvent to Timed Function-Call

Signal Conversion When Using Custom Library Blocks

When you use custom library blocks in a SimEvents model, be aware of how you use time-based and event-based signals with such blocks. Consider these best-practice guidelines:

  


Free Discrete Event Simulation Technical Kit

Model electronic system architectures, process flows, and logistics as queuing systems or agent-based systems.

Get free kit

Trials Available

Try the latest version of discrete-event simulation products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS