MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guía de usuario Pagina 624

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 674
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de 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
Vista de pagina 623
1 2 ... 619 620 621 622 623 624 625 626 627 628 629 ... 673 674

Comentarios a estos manuales

Sin comentarios