MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manual de servicio Pagina 177

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 282
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de 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.
Vista de pagina 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 281 282

Comentarios a estos manuales

Sin comentarios