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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1308760/image.png)
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1308765/image.png)
The attached mwe_written.slx was attached before I reopened it for this test.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Electrical Sensors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!