Allow a sample time of Inf for a port


Allows an S-function with port-based sample times to specify or inherit a sample time of Inf. This setting allows the port to have a constant value, and tells the Simulink® engine that all input and output ports support a sample time of Inf. See Specifying Constant Sample Time (Inf) for a Port for more information.


See sfun_port_constant.c, the source file for the sfcndemo_port_constant example, for an example.

Introduced in R2007b

Was this topic helpful?