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 be generated via ssSetErrorStatus. Note that any other dynamic frame input or output ports whose frame data settings 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