Real-Time Workshop | ![]() ![]() |
Creating a Customized Asynchronous Library
You can use the Real-Time Workshop VxWorks asynchronous blocks as templates that provide a starting point for creating your own asynchronous blocks. Templates are provided for these blocks:
You can customize each of these blocks by implementing a set of modifications to files associated with each template. These files are:
SS_OPTION_ASYNCHRONOUS_INTERRUPT
should be used when a function-call subsystem is attached to an interrupt. For further information, see documentation for SS_OPTION
and SS_OPTION_ASYNCHRONOUS
in matlabroot
/simulink/include/simstuc.h
At a minimum, you must rename the system calls generated by the TLC files to the correct names for the new real-time operating system (RTOS) and supply the correct arguments for each file. There is a collection of files that you must copy (and rename) from matlabroot
/rtw/c/tornado/devices
into a new directory, for example, matlabroot
/rtw/c/
my_os
/devices
. These files are:
vxdbuffer.tlc
, vxdbuffer.c
vxinterrupt.tlc
, vxinterrupt.c
, vxintbuild.m
vxlib.tlc
vxtask.tlc
, vxtask.c
![]() | Unprotected Asynchronous Rate Transition Block | Targeting Real-Time Systems | ![]() |