Why is my code that includes Simulink Fixed Point™ message identifiers not working?
2 views (last 30 days)
Show older comments
Warnings
I have code that uses
warning('off',…)
to turn off a warning message. My code used to work in earlier releases but does not work in Simulink Fixed Point 7.0 (R2011b).
Errors
I have code that uses a try/catch statement and performs an action based on a specific error identifier. My code used to work in earlier releases but does not work in Simulink Fixed Point 7.0 (R2011b).
Accepted Answer
MathWorks Support Team
on 30 Aug 2011
Error and warning message identifiers have changed in Simulink Fixed Point 7.0 (R2011b).
If you use
warning('off',…)
to turn off warnings, replace warning message identifiers that changed with the new message identifiers listed in the document attached to this solution, to continue to suppress the warnings.
If you use a try/catch statement in your code, replace the old identifier with the new identifier as detailed in the attached document.
To determine the identifier for a warning, run the following command just after the warning message appears:
[MSG,MSGID] = lastwarn;
This command saves the message identifier to the variable MSGID.
0 Comments
More Answers (0)
See Also
Categories
Find more on Configure and View Diagnostics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!