Table A-19: Model.rtw Model Parameters Record
Variable/Record Name
|
Description
|
ModelParameters {
|
|
NumParameters
|
Total number of unique parameter values (sum of next 5 fields).
|
NumInrtP
|
Number of parameter values in rtP parameter vector (realized as a struct). These are visible to external mode and possibly shared by multiple blocks.
|
NumConstPrms
|
Number of inlined parameter values. These are inlined, unless the roll threshold causes them to be placed in global constant memory. These parameters are possibly pooled across multiple blocks.
|
NumExportedGlobal
|
Number of exported global parameters values. May be shared by multiple blocks.
|
NumImportedExtern
|
Number of imported parameter values. May be shared by multiple blocks.
|
NumImportedExternPointer
|
Number of parameter values that are accessed via imported extern pointers. May be shared by multiple blocks.
|
NumCustomStorageClass
|
Number of parameters with custom (user specified) storage class. These parameters are derived from any Simulink.Parameter 's with properties RTWInfo.StorageClass set to `Custom' and the corresponding RTWInfo.CustomStorageClass property giving the definition of the storage class. These parameters may be shared by multiple blocks.
|
ParameterDefaults {
|
Default values for the following Parameter records.
|
RecordType
|
ModelParameter
|
MemoryMapIdx
|
[-1, -1, -1]. Undefined GlobalMemoryMap entry.
|
HasObject
|
0: Default is no Simulink.Parameter object is associated with this parameter.
|
DataTypeIdx
|
0: Default is real_T data type.
|
OriginalDataTypeIdx
|
0: Default is real_T data type.
|
ComplexSignal
|
no: Default is non-complex
|
Width
|
1
|
Dimensions
|
[1 1]
|
Tunable
|
no : Default value is not tunable.
|
RollVarDeclared
|
0: Default is Roll variable not declared for variable
|
Transformed
|
no : Default is that this parameter is not transformed and it maps back directly to dialog parameters.
|
StorageClass
|
Auto : Default value is Auto (Real-Time Workshop declares the memory).
|
CustomStorageClassVersion
|
0: Default version number of custom storage class
|
TypeQualifier
|
"" : Default is no type qualifier.
|
IsSfcnSizePrm
|
0: Default is not an S-function sizes parameter (only used by non-inlined S-functions)
|
SystemScoping
|
[0, 0]: Default value for system scoping [numOpens, numCloses ].
|
Value
|
0.0: Default value of parameter
|
AcceleratorPadding
|
0: Default is no padding added by Accelerator after parameter
|
}
|
|
Parameter {
|
|
Identifier
|
Identifier used in the generated code.
|
LogicalSrc
|
Parameter index
|
Tunable
|
If inlined parameters check box is off, then all parameter values are tunable (they will reside in the rtP vector). If inlined is on, then tunable means that this parameter has been selectively non- inlined. It will be placed in memory according to the Storage class. Note that the default value is 'no ' (in which case this field is not written).
|
Transformed
|
yes : If inline parameters is on and this is a run-time parameter that is obtained by applying a transformation to one or more dialog parameters.
|
StorageClass
|
Specifies where to declare/place this parameter value in memory
(Auto , Auto_SFCN, ExportedGlobal , ImportedExtern , ImportedExternPointer ). Default value is Auto in which case this field is not written to the model .rtw file. AUTO_SFCN indicates that a tunable parameter is being passed to the S-function via its ssGetSFcnParam . This is for use by the S-function target only.
|
TypeQualifier
|
String used as a type qualifier for the declaration of the parameter (e.g., static ).
|
Value
|
Evaluated value of this parameter.
|
Width
|
Total number of elements in parameter value
|
Dimensions
|
Actual dimensions of this parameter value. Note, it is possible for blocks to have matrix values written as a column-major vector. This field contains the dimensions of the data prior to the flattening of the vector to column-major.
|
OriginalDataTypeIdx
|
The original data type of this parameter. Real-Time Workshop supports a wide range of data types, including custom defined data types. For example, the original data type of a block run-time parameter from the Fixed-Point Blockset may be sfix name (or ufix name ) and this parameter resolves to int8_T . In this case, the original data type is sfix name (or ufix name ) and the data type is int8_T .
|
DataTypeIdx
|
Data type index into the data type table (CompiledModel.DataTypes.DataType ).
|
ComplexSignal
|
yes or no , is this a complex signal?
|
IsSfcnSizePrm
|
1, if this is an S-function sizes parameter, 0 otherwise.
|
SystemScoping
|
A 2-D matrix that captures how deep the parameter is within the hierarchical data structure
|
ReferencedBy
|
A Nx4 matrix. Each row consists of
[systemIdx, callSiteIdx, blockIdx, paramIdx] that identifies a usage of this parameter value. If N>1, then this parameter value is shared by multiple blocks.
|
OwnerSysIdx
|
A 2-D matrix that captures the system index and callsite index of the system in which the parameter is used.
|
HasObject
|
1, if this run-time parameter is from a Simulink.Parametr .
|
Object {
|
The Simulink.Parameter . Only present if HasObject == 1.
|
}
|
|
AcceleratorPadding
|
Padding added after this parameter when using the Accelerator
|
}
|
|
}
|
|