Writing S-Functions    
ssWriteRTWParamSettings

Write values of nontunable parameters to the model.rtw file.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

nParamSettings
   Number of parameter settings.

paramType
   Type of parameter (see Parameter Setting Type-Specific Arguments).

settingName
   Name of parameter.

...
   Remaining arguments depend on the parameter type (see Parameter Setting Type-Specific Arguments).

Description

Use this function in mdlRTW to write nontunable parameter setting information to this S-function's model.rtw file. A nontunable parameter is any parameter that the S-function has declared as nontunable, using the ssSetParameterTunable macro. You can also use this macro to write out other constant values required to generate code for this S-function.

This function returns true if successful.

Parameter Setting Type-Specific Arguments

This section lists the parameter-specific arguments required by each parameter type.

Example

See simulink/src/sfun_multiport.c for an example that uses this function.

Languages

C

See Also
mdlRTW, ssSetParameterTunable


  ssWriteRTWParameters ssWriteRTWScalarParam