MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Instrukcja Obsługi Strona 139

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 282
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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)>
Przeglądanie stron 138
1 2 ... 134 135 136 137 138 139 140 141 142 143 144 ... 281 282

Komentarze do niniejszej Instrukcji

Brak uwag