www.gusucode.com > ecoder 案例源码程序 matlab代码 > ecoder/InterfaceToVxWorksRTOSExample.m

    %% Interface to an Example Real-Time Operating System (VxWorks(R))
% This example shows how to simulate and generate code for asynchronous 
% events on an example RTOS (VxWorks).
%
% The operating system integration techniques that are demonstrated in 
% this example use one or more blocks the blocks in the |vxlib1| library.
% These blocks provide starting point examples to help you develop custom
% blocks for your target environment.
%
%% Example Model
% Open the |rtwdemo_vxworks| model. 
model = 'rtwdemo_vxworks';
open_system(model);
%
%% Model Description
% The example model contains two asynchronously executed subsystems, |Count| and |Algorithm|. |Count| 
% executes at interrupt level. |Algorithm| executes in an asynchronous
% task. The generated code for these blocks is tailored for the VxWorks(R) 
% operating system. However, you can modify the |Async Interrupt| and |Task Sync|
% blocks to generate code for your run-time environment whether 
% you are using an operating system or not.
%  
%% Related Information
% * <docid:rtw_ref.bu_98v5>
% * <docid:rtw_ref.bqnrjmx-1>
% * <docid:rtw_ug.f9453>
% * <docid:rtw_ug.f29370>
% * <docid:rtw_ug.f10041>
% * <docid:rtw_ug.bsyjz_c>
% * <docid:simulink_ug.bsuwmmp>
% * <docid:rtw_ug.f23284>
% * <docid:rtw_ug.f10930>
% * <docid:rtw_ug.bqpnsgq>
%
%   Copyright 2015 The MathWorks, Inc.