MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guia do Utilizador Página 266

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 674
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 265
12 Verifying Generated Code for a Component
12-4
Prepare the Component for Verification
To verify the referenced model slvnvdemo_powerwindow_controller, you need to
create a harness model that contains the input signals that simulate the controller in the
plant model. Perform the following steps:
1
Open the slvnvdemo_powerwindow example model:
slvnvdemo_powerwindow
2
Open the power_window_control_system subsystem.
3
The Model block named control in the power_window_control_system
subsystem references the component you verify during this example
slvnvdemo_powerwindow_controller. Load the referenced model:
load_system('slvnvdemo_powerwindow_controller');
4
Simulate the Model block that references slvnvdemo_powerwindow_controller
and log the input signals to the Model block:
loggedSignalsPlant = ...
slvnvlogsignals(...
'slvnvdemo_powerwindow/power_window_control_system/control');
Vista de página 265
1 2 ... 261 262 263 264 265 266 267 268 269 270 271 ... 673 674

Comentários a estes Manuais

Sem comentários