MATLAB SIMULINK VERIFICATION AND VALIDATION - S User's Guide Page 624

  • Download
  • Add to my manuals
  • Print
  • Page
    / 674
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 623
25 Create Model Advisor Checks
25-48
function result = SampleStyleOneCallback(system)
mdladvObj = Simulink.ModelAdvisor.getModelAdvisor(system);
if strcmp(get_param(bdroot(system), 'ScreenColor'),'white')
result = ModelAdvisor.Text('Passed',{'pass'});
mdladvObj.setCheckResultStatus(true);
else
msg1 = ModelAdvisor.Text(...
['It is recommended to select a Simulink window screen color'...
' of white for a readable and printable model. Click ']);
msg2 = ModelAdvisor.Text('here');
msg2.setHyperlink('matlab: set_param(bdroot,''ScreenColor'',''white'')');
msg3 = ModelAdvisor.Text(' to change screen color to white.');
result = [msg1, msg2, msg3];
mdladvObj.setCheckResultStatus(false);
end
Page view 623
1 2 ... 619 620 621 622 623 624 625 626 627 628 629 ... 673 674

Comments to this Manuals

No comments