MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuel de service Page 153

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 282
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 281 282

Commentaires sur ces manuels

Pas de commentaire