Display multiple causes of an error settings
4 次查看(过去 30 天)
显示 更早的评论
Hello all,
What settings (and where) should I do for displaying the multiple causes of an error.
For example if I build a model and I miss some parameters (that I used in the model) in workspace how is possible to receive an error showing me all this parameters (at the same time) that I miss?
At the moment I receive an error for one parameter, then I save it, then I try to build the model again and I get another error with the next parameter that I forgot to save in workspace, and so on... I do not what this to happen.. it would be perfect to display the multiple causes of the error.
Thanks! Bye!
回答(2 个)
TAB
2012-12-12
I am also using same version and I can see all the missing parameters at one time. And I don't think that there is any special setting for that. See may error dialog:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172112/image.jpeg)
You can try in another way also.
In command window enter command
>> get_param('YourModel','ReferencedWSVars')
This returns all the model parameters which are from workspace. And for missing parameters it give error listing all the missing parameters.
0 个评论
Alexandru
2012-12-12
5 个评论
TAB
2012-12-12
I don't know what could be the reason. But you can go through command Simulink.findVars. It is used to trace the variables/parameters used in model. I have never used this in practice.
Below are the other links which explains its usage:
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Event Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!