Writing S-Functions | ![]() ![]() |
Set frame data entering an input port.
Syntax
void mdlSetInputPortFrameData(SimStruct *S, int_T port, Frame_T frameData)
Arguments
S
Simstruct representing an S-function block.
Description
This method is called with the candidate frame setting (FRAME_YES
, or FRAME_NO
) for an input port. If the proposed setting is acceptable, the method should go ahead and set the actual frame data setting using ssSetInputPortFrameData
. If the setting is unacceptable an error should generated via ssSetErrorStatus
. Note that any other dynamic frame input or output ports whose frame data setting are implicitly defined by virtue of knowing the frame data setting of the given port can also have their frame data settings set via calls to ssSetInputPortFrameData
and ssSetOutputPortFrameData
.
Languages
See Also
ssSetInputPortFrameData, ssSetOutputPortFrameData, ssSetErrorStatus
![]() | mdlSetInputPortDimensionInfo | mdlSetInputPortSampleTime | ![]() |