MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS Guía de usuario Pagina 147

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 210
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 146
The C MEX S-Function SimStruct
3-103
ssSetInputPortOffsetTime
(S,inputPortIdx,offset)
Used in mdlInitializeSizes (a fter
ssSetNumInputPorts)tospecifythesampletimeoffset
for each input port index. You can use this macro in
conjunction with
ssSetInputPortSampleTime if you have
specified port-based sample times for your S-function.
ssSetInputPortOverWritable
(S,inputPortIdx,value)
Used in mdlInitializeSizes (a fter
ssSetNumInputPorts) to specify whether the input port
is overwritable by an output port. The default is
value=0,
which means that the input port does not share memory
with an output port. When
value=1,theinputport
shares memory with an output port.
Note that
ssSetInputPortReusable and
ssSetOutputPortReusable must both be set to 0,
meaning that neither port involved can have global and
persistent memory.
Table 3-7: Input and Output Port Signal SimStruct Macros (Continued)
Macro Description
Vista de pagina 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 209 210

Comentarios a estos manuales

Sin comentarios