MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuale di Servizio Pagina 177

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 176
LibSourceFileCustomCode
4
-55
LibSourceFileCustomCode
Purpose
Places code at the top of the model’s source file
Syntax
%<LibSourceFileCustomCode(buffer, location)>
Arguments
buffer
Buffer to append to internal cache buffer.
location
"header"
(place at top of file).
Description
Use this function to place code at the top of the model’s source file by specifying
"header"
. Custom code is not allowed at the bottom of
model.c
since placing it
at the top of
model.reg
has the same effect (
model.c
includes
model.reg
as its
last statement).
Be careful placing code in
model.c
if file splitting is an issue. When code is
needed in each split file, place it in
model.h
instead of
model.c
.
Each call to this function appends your buffer to the internal cache buffer.
Vedere la pagina 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 281 282

Commenti su questo manuale

Nessun commento