MATLAB Examples

Asynchronous Events

This example model shows how to use asynchronous event support with an external TTL signal firing an interrupt on the parallel port.

This event invokes a function-call subsystem that serves as an interrupt service routine (ISR).

The data exchange between the asynchronous task and the rest of the model (rate monotonic task) is accomplished by using a Rate Transition block.

open_system(fullfile(matlabroot,'toolbox','rtw','targets','xpc','xpcdemos','xpcasynctrans'))