Writing S-Functions    
mdlSetInputPortFrameData

Set frame data entering an input port.

Syntax

Arguments
S
   Simstruct representing an S-function block.

port
   Index of a port

frameData
   frame data

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

C

See Also

ssSetInputPortFrameData, ssSetOutputPortFrameData, ssSetErrorStatus


 mdlSetInputPortDimensionInfo mdlSetInputPortSampleTime