User`s guide

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