MATLAB SIMULINK VERIFICATION AND VALIDATION - S Podręcznik Użytkownika Strona 266

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 674
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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');
Przeglądanie stron 265
1 2 ... 261 262 263 264 265 266 267 268 269 270 271 ... 673 674

Komentarze do niniejszej Instrukcji

Brak uwag