MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Service Manual Page 139

  • Download
  • Add to my manuals
  • Print
  • Page
    / 282
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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)>
Page view 138
1 2 ... 134 135 136 137 138 139 140 141 142 143 144 ... 281 282

Comments to this Manuals

No comments