Main Content

本页的翻译已过时。点击此处可查看最新英文版本。

基于事件的调度

异步事件处理、采样率转移、计时器、事件数据

模型中可以包含模块,以生成处理异步事件的代码,例如以下异步事件:

  • 硬件生成的中断

  • 已用时间计时器

  • 异步读写操作

  • 实时操作系统 (RTOS) 生成的异步任务

要进行仿真,您可以将异步事件数据导入到函数调用子系统中。

模块

Asynchronous Task Specification指定由异步中断触发的引用模型表示的异步任务的优先级
Async InterruptGenerate Versa Module Eurocard (VME) interrupt service routines (ISRs) that execute downstream subsystems or Task Sync blocks
Task SyncRun code of downstream function-call subsystem or Stateflow chart by spawning an example RTOS (VxWorks) task

主题

异步事件

一种设计模型,支持模块的执行以响应与系统的周期计时源异步发生的事件。

Rate Transitions and Asynchronous Blocks

Use Rate Transition blocks to handle data transfers to and from asynchronous blocks.

Generate Interrupt Service Routines

Generate an interrupt service routine (ISR) that is associated with a specific VME interrupt level.

Spawn and Synchronize Execution of RTOS Task

Simulate and generate code for asynchronous events on a multitasking, real-time operating system (VxWorks®).

Pass Asynchronous Events in RTOS as Input To a Referenced Model

Generate code for a model that triggers asynchronous events that get passed as input to a referenced model.

Timers in Asynchronous Tasks

Maintain absolute and elapsed timing data for blocks that execute in the context of an asynchronous task with the code generator.

Create a Customized Asynchronous Library

Create custom blocks that support handling of asynchronous events with vxlib1 library blocks as templates.

Import Asynchronous Event Data for Simulation

Import asynchronous event data into a function-call subsystem.

Asynchronous Support Limitations

Limitations of asynchronous event support.