MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guida Utente Pagina 316

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 386
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 315
12 Configuring Real-Time Workshop for Your Application
12-12
Real-Time malloc Code Format
The real-time malloc code format (corresponding to the generic real-time
malloc target) is very similar to the real-time code format. The differences are:
Real-time
malloc declares memory dynamically.
Real-time
malloc allows you to multiply instance the same model with each
instance maintaining its own unique data.
Real-time
malloc allows you to combine multiple models together in one
executable. For example, to integrate two models into one larger executable,
real-time
malloc maintains a unique instance of each of the two models. If
you do not use the real-time
malloc format, the Real-Time Workshop will not
necessarily create uniquely named data structures for each model,
potentially resulting in name clashes.
grt_malloc_main.c, the main routine for the generic real-time malloc
(grt_malloc) target, supports one model by default. Youmustmodifyitto
fit your particular multimodel scenario.
grt_malloc_main.c is located in the
directory
matlabroot/rtw/c/grt_malloc.
Unsupported Blocks
The real-time malloc format does not support the following built-in blocks:
Functions & Tables
- MATLAB Fcn
- S-Functions — M-file and Fortran S-functions, C MEX S-functions that
call into MATLAB.
System Target Files
grt_malloc.tlc
tornado.tlc — Tornado (VxWorks) real-time target
Vedere la pagina 315
1 2 ... 311 312 313 314 315 316 317 318 319 320 321 ... 385 386

Commenti su questo manuale

Nessun commento