Download Writing S-Functions

Transcript
ssWriteRTWParameters
Purpose
10ssWriteRTWParameters
Write tunable parameter information to model.rtw file.
Syntax
int_T ssWriteRTWParameters(SimStruct *S, int_T nParams, int_T
paramType, const char_T *paramName, const char_T *stringInfo,
...)
Arguments
S
SimStruct representing an S-function block.
nParams
Number of tunable parameters
paramType
Type of parameter (see “Parameter Type-Specific Arguments”)
paramName
Name of parameter
stringInfo
General information about the parameter, such as how it was derived
...
Remaining arguments depend on parameter type (see “Parameter
Type-Specific Arguments”).
Description
Use this function in mdlRTW to write tunable parameter information to this
S-function’s model.rtw file. This function returns TRUE if successful.
Note This function is provided for compatibility with S-functions that do not
use run-time parameters. It is suggested that you use run-time parameters
(see “Run-Time Parameters” on page 7-6). If you do use run-time parameters,
you do not need to use this function.
Parameter Type-Specific Arguments
This section lists the parameter-specific arguments required by each
parameter type.
10-197