SS_OPTION_ALLOW_CONSTANT_PORT_SAMPLE_TIME

Allow constant sample time for a port

Description

Allows an S-function with port-based sample times to specify or inherit constant sample times. Setting this option tells the Simulink® engine that all input and output ports support constant sample times. See Specifying Constant Sample Time for a Port for more information.

Example

See sfun_port_constant.csfun_port_constant.c, the source file for the sfcndemo_port_constantsfcndemo_port_constant example, for an example.

Was this topic helpful?