ssSetParameterTuningCompliance
Specify sample time behavior and tunability for S-function blocks with port-based sample times
Syntax
void ssSetParameterTuningCompliance(SimStruct *S,logical Flag)
Arguments
-
S
-
SimStruct representing an S-function block.
-
Flag
-
Logical value indicating whether to allow a sample time of
Inf
港口的年代-function.
Description
Use this macro to specify sample time behavior for your S-function with port-based sample times. If you setflag
toFalse
, the Simulink®engine does not allow a sample time ofInf
这个功能。如果你设置flag
toTrue
, the S-function block is tunable and its ports can have a sample time ofInf
. To set the sample time for ports in the S-Function, usessSetOutputPortSampleTime
andssSetInputPortSampleTime
. These ports execute every time you tune any parameter in your model during simulation.
Languages
C, C++