How to find the warning identifier from a warning message?

57 views (last 30 days)
Hi everyone,
I have a warning message in Simulink and I am looking to find the warning message identiier. So, that I can add to a list of identifiers in my code which need to be ignored during the build process. Could someone tell me is there any way to find the warning identifier of a particular warning message? or does Simulink have any documentations, where it provides list of all possible errors and warnings with their identifiers?
This is my warning message: ''Warning: Unable to honor user-specified priorities''
Thank you in Advance!!
  2 Comments
Raja Vardhan Reddy Kothakapu
@Rik Thanks for your reply. I already tried above command. It works only when simulink generates the warning. In my case, I just have the warning message and I don't know where and when it occurs. I need to find the identifier and add this to the another file, which ignores this warning during build process.

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 14 Apr 2020
'Simulink:Engine:UnableToHonorPriority'
I searched the .xml message files using Unix commands.
cd(matlabroot)
!find . -depth -name \*.xml -print0 | xargs -0 egrep -i "Unable to honor user-specified priorities"
  3 Comments
Raja Vardhan Reddy Kothakapu
Edited: Raja Vardhan Reddy Kothakapu on 14 Apr 2020
Yes, I agree with you. I also found the xml you are referring to. Thank you very much!!

Sign in to comment.

More Answers (0)

Categories

Find more on Large-Scale Modeling in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by