Why do I get the error "Invalid setting in '<model>/<block>' for parameter '<param>'." when using a character array (or struct that contains a character array) as a block's value?

Why do I get the error "Invalid setting in '<model>/<block>' for parameter '<param>'." when using a character array (or struct that contains a character array) as a block's value?

 采纳的回答

The "character" data type is not supported by Simulink:
Please run the following command in the MATLAB R2018b Command Window to access the release specific documentation on "Data Types Supported by Simulink":
web(fullfile(docroot, 'simulink/ug/data-types-supported-by-simulink.html'))
.
Consider converting to an integer type, or use blocks in the 'String' library.
Run the below command in your MATLAB instance to access the release specific documentation:
web(fullfile(docroot, 'simulink/string.html'))
(introduced in MATLAB R2018a).
Please follow the below link to search for the required information regarding the current release:
Please follow the below link to search for the required information regarding the current release:

更多回答(0 个)

类别

产品

版本

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by