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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 282
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 138
LibCacheDefine
4
-17
LibCacheDefine
Purpose
Call this function from inside
BlockTypeSetup
to cache a
#define
statement.
Syntax
%<LibCacheDefine(buffer)>
Arguments
buffer
Buffer of
#define
statements to be cached.
Description
LibCacheDefine
should be called from inside
BlockTypeSetup
to cache a
#define
statement. Each call to this function appends your buffer to the
existing cache buffer. The
#define
statements are placed inside
model.h
.
Example
%openfile buffer
#define INTERP(x,x1,x2,y1,y2) ( y1+((y2 - y1)/(x2 - x1))*(x-x1) )
#define this that
%closefile buffer
%<LibCacheDefine(buffer)>
Vista de pagina 138
1 2 ... 134 135 136 137 138 139 140 141 142 143 144 ... 281 282

Comentarios a estos manuales

Sin comentarios