MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guide de l'utilisateur Page 624

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 674
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 623
1 2 ... 619 620 621 622 623 624 625 626 627 628 629 ... 673 674

Commentaires sur ces manuels

Pas de commentaire