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

  • 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 151
LibDefineIWork
4
-30
LibDefineIWork
Purpose
Call this function from inside the block’s
BlockInstanceSetup
function to
define the specified
iwork
in the block.
Syntax
%<LibDefineIWork(block, name, width)>
Arguments
block
Reference to the block record.
name
String that you want to call the
iwork
.
width
Integer width of the
iwork
.
Description
This call should be made from inside the block’s
BlockInstanceSetup
function,
and adds the specified
iwork
to the block. The function creates and maintains
an internal record for the
iwork
definition. For example, a block may have
iwork
records for system enable.
%<LibDefineIWork(block, "SystemEnable", 1)>
%<LibDefineIWork(block, "IcNeedsLoading", 1)>
Internally this creates a block record
NumIWorkDefines 2
IWorkDefine {
Name "SystemEnable"
Width 1
}
IWorkDefine {
Name "IcNeedsLoading"
Width 1
}
SystemEnable IWorkDefine[0]
ICNeeedsLoading IWorkDefine[1]
Note that
SystemEnable
and
IcNeedsLoading
are references to
IWorkDefine[0]
and
IWorkDefine[1]
, respectively, and are added by the
system file, which executes the block’s
BlockInstanceSetup
function.
Vue de la page 151
1 2 ... 147 148 149 150 151 152 153 154 155 156 157 ... 281 282

Commentaires sur ces manuels

Pas de commentaire