Simulink R2020b DataStore Memory and String support. Cannot use a string as an Inital Value
조회 수: 3 (최근 30일)
이전 댓글 표시
In Simulink R2020b, I cannot use the DataStore Memory block with a string Initial Value although the DataType is set on "string".
The error message is the following : "Invalid setting in '<SYSTEM>/Data Store Memory' for parameter 'InitialValue'.
This should be support as per the documentation : https://fr.mathworks.com/help/releases/R2020b/simulink/ug/simulink-strings.html
Am I doing anything wrong ?
댓글 수: 0
답변 (1개)
Jaimin
2024년 10월 9일
편집: Jaimin
2024년 10월 9일
To resolve the error, one workaround is to use the “Initialize Function” block to assign a string value to the “Data Store Memory” block. This works because the “Initialize Function” block is a preconfigured Subsystem block that executes during a model initialization event.
Kindly refer to the following images to understand how to use the "Initialize Function" block.
For more information on “Initialize Function” block kindly refer following MathWorks Documentation.
I hope this will be helpful.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 String에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!