User`s guide
Creating a Customized Asynchronous Library for Your System
11-25
Creating a Customized Asynchronous
Library for Your System
You can use the Real-Time Workshop’s VxWorks Asynchronous blocks as
templates that provide a starting point for creating your own asynchronous
blocks. Templates are provided for these blocks:
• Asynchronous Interrupt block
• Task Synchronization block
• Rate Transition block
• Asynchronous Buffer block
You can customize each of these blocks by implementing a set of modifications
to files associated with each template. These files are:
• The block’s underlying S-function C MEX-file
• The block’s mask and the associated mask M-file
• The TLC files that control code generation of the block
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
7/rtw/c/tornado/devices into a new directory, for
example,
matlabroot/rtw/c/my_os/devices. These files are:
• Asynchronous Interrupt block —
vxinterrupt.tlc, vxinterrupt.c,
vxintbuild.m
• Asynchronous Buffer block — vxdbuffer.tlc, vxdbuffer.c
• Task Synchronization block — vxtask.tlc, vxtask.c
• O/S include file — vxlib.tlc