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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 674
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 267
12 Verifying Generated Code for a Component
12-6
6
Save the name of the harness model for use later in this example:
[~,harnessModel] = fileparts(harnessModelFilePath);
7
Leave all models open for the next part of this example.
Next, create a test case that tests values for input signals to the component.
Create and Log Test Cases
Add a test case for your component to help you get closer to achieving 100% coverage.
For this example, use the signalbuilder function to add a new test case to the Signal
Builder block in the harness model. The new test case specifies new values for the input
signals to the component:
1
Load the file that contains the data for the new test case into the MATLAB
workspace:
load('slvnvdemo_powerwindow_controller_newtestcase.mat');
The workspace variables newTestData and newTestTime contain the test-case
data.
Vista de pagina 267
1 2 ... 263 264 265 266 267 268 269 270 271 272 273 ... 673 674

Comentarios a estos manuales

Sin comentarios