Block Nominal Values cleared upon reopening model

2 次查看(过去 30 天)
Hello. I was using nominal values in one of my models as I found them crucial for convergence in some scenarios. Later, I found my model was no longer converging and that some blocks' nominal values settings had been reset to default values. I was able to verify the git commits which had set these nominal values and that these files had not been touched since said commits.
I continued investigating and was able to prepare the attached files, which I believe show this behavior. Please let me know if this is expected behavior and I have somehow misunderstood this funcionality.
I created a fresh new model file, added the blocks which I've found exhibit this behavior (I do not know if there are more) and saved the model as mwe_clear.slx. I then set each block's Nominal Values by double-clicking them and using their dialog boxes, saved the file as mwe_written.slx and closed Simulink.
From MATLAB, I selected both files, right-clicked and selected "Compare Selected Files/Folders". The result is as expected and shown in the following image:
When opened mwe_written.slx again, I found all blocks' Nominal Values (checkbox and value) had been reset to default values (unchecked and 1). For some other blocks, this is not what happened and the values were preserved (e.g. Voltage Source (Three-Phase)).
I then saved mwe_written.slx again and compared both files. This is what I found:
The attached mwe_written.slx was attached before I reopened it for this test.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Electrical Sensors 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by