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

  • Download
  • Add to my manuals
  • Print
  • Page
    / 282
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 152
LibDefinePWork
4
-31
LibDefinePWork
Purpose
Call this function from inside the block’s
BlockInstanceSetup
function to
define the specified
pwork
in the block.
Syntax
%<LibDefinePWork(block, name, width)>
Arguments
block
Reference to the block record.
name
String that you want to call the
pwork
.
width
Integer width of the
pwork
.
Description
This call should be made from inside the block’s
BlockInstanceSetup
function,
and adds the specified
pwork
to the block. The function creates and maintains
an internal record for the
pwork
definition. For example, a block may have a
pwork
record for data logging.
%<LibDefinePWork(block, "LoggedData", 3)>
Internally this creates a block record
NumPWorkDefines 1
PWorkDefine {
Name "LoggedData"
Width 3
}
LoggedDat PWorkDefine[0]
Note that
LoggedData
is a reference to
PWorkDefine[0]
, which is added by the
system file which executes the block’s
BlockInstanceSetup
function.
Page view 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 281 282

Comments to this Manuals

No comments