Event-Based Scheduling
Models can include blocks for generating code that handles asynchronous events, such as:
- Hardware-generated interrupts 
- Asynchronous read and write operations 
- Asynchronous tasks spawned by a real-time operating system (RTOS) 
For simulation, you can import asynchronous event data into a function-call subsystem.
Blocks
| Asynchronous Task Specification | Specify priority of asynchronous task represented by referenced model triggered by asynchronous interrupt | 
| Async Interrupt | Generate Versa Module Eurocard (VME) interrupt service routines (ISRs) that execute downstream subsystems or Task Sync blocks | 
| Task Sync | Run code of downstream function-call subsystem or Stateflow chart by spawning an example RTOS (VxWorks) task | 
Topics
- Asynchronous EventsDesign models that support execution of blocks in response to events that occur asynchronously to the periodic timing source of the system. 
- Generate Interrupt Service RoutinesGenerate an interrupt service routine (ISR) that is associated with a specific VME interrupt level. 
- Convert Asynchronous Subsystem to a Referenced ModelConvert an asynchronous subsystem to a referenced model. 
- Timers in Asynchronous TasksMaintain absolute and elapsed timing data for blocks that execute in the context of an asynchronous task with the code generator. 
- Create a Customized Asynchronous LibraryCreate custom blocks that support handling of asynchronous events with vxlib1 library blocks as templates. 
- Import Asynchronous Event Data for SimulationImport asynchronous event data into a function-call subsystem. 
- Asynchronous Support LimitationsLimitations of asynchronous event support.