Main Content


Specify this S-function uses port-based sample times


Indicates the S-function registers multiple sample times (ssSetNumSampleTimes > 1) to specify the rate at which each input and output port is running. The simulation engine needs this information when checking for illegal rate transitions. If an S-function uses this option, it cannot inherit its sample times. See Hybrid Block-Based and Port-Based Sample Times for more information.


See mixedm.c for an example.

Version History

Introduced in R2007b