MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guida Utente Pagina 624

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 674
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 623
1 2 ... 619 620 621 622 623 624 625 626 627 628 629 ... 673 674

Commenti su questo manuale

Nessun commento