MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manual de servicio Pagina 152

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 282
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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.
Vista de pagina 151
1 2 ... 147 148 149 150 151 152 153 154 155 156 157 ... 281 282

Comentarios a estos manuales

Sin comentarios