MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guía de usuario Pagina 303

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 386
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 302
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
Vista de pagina 302
1 2 ... 298 299 300 301 302 303 304 305 306 307 308 ... 385 386

Comentarios a estos manuales

Sin comentarios