MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Servisní příručka Strana 139

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 282
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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)>
Zobrazit stránku 138
1 2 ... 134 135 136 137 138 139 140 141 142 143 144 ... 281 282

Komentáře k této Příručce

Žádné komentáře