MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS User's Guide Page 147

  • Download
  • Add to my manuals
  • Print
  • Page
    / 210
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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
Page view 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 209 210

Comments to this Manuals

No comments