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

  • Download
  • Add to my manuals
  • Print
  • Page
    / 282
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 153
LibDefineRWork
4
-32
LibDefineRWork
Purpose
Call this function from inside the block’s
BlockInstanceSetup
function to
define the specified
rwork
definition in the block.
Syntax
%<LibDefineRWork(block, name, width)>
Arguments
block
Reference to the block record.
name
String that you want to call the
rwork
.
width
Integer width of this
rwork
.
Description
This call should be made from inside the block’s
BlockInstanceSetup
function,
and adds the specified
rwork
definition to the block. The function creates and
maintains an internal record for the
rwork
definition, removing the Simulink
definition if necessary.
%<LibDefineRWork(block, "PrevT", 1)>
%<LibDefineRWork(block, "PrevU", 3)>
Internally this creates a block record
NumRWorkDefines 2
RWorkDefine {
Name "PrevT"
Width 1
}
RWorkDefine {
Name "PrevU"
Width 3
}
PrevT RWorkDefine[0]
PrevU RWorkDefine[1]
Note that
PrevT
and
PrevU
are references to
RWorkDefine[0]
and
RWorkDefine[1]
, respectively, and are added by the system file, which executes
the block’s
BlockInstanceSetup
function.
Page view 153
1 2 ... 149 150 151 152 153 154 155 156 157 158 159 ... 281 282

Comments to this Manuals

No comments