Main Content

SS_OPTION_PORT_SAMPLE_TIMES_ASSIGNED

Specify this S-function uses port-based sample times

Description

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.

Example

See mixedm.c for an example.

Version History

Introduced in R2007b