User`s guide
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');