Main Content


Push test harness workspace entries and configuration set to model


sltest.harness.push(harnessOwner,harnessName) pushes the configuration parameter set and workspace entries associated with the component under test from the test harness harnessName to the main model containing the model or component harnessOwner. Subsystem model test harnesses always push.


collapse all

Change the denominator value of the Stick Prefilter in the harness. Then, push the change in the controller_harness to the f14 model. Notice that the parameter is updated in the model.

set_param('controller_harness/Controller/Stick Prefilter',...

blkpath = 'f14/Controller/Stick Prefilter';
disp(['Original denominator: ' get_param(blkpath,'Denominator')])

disp(['Updated denominator: ' get_param(blkpath,'Denominator')])

Input Arguments

collapse all

Model or component handle, or path, specified as a character vector or double

Example: 1.9500e+03

Example: 'model_name'

Example: 'model_name/Subsystem'

The name of the harness, specified as a character vector.

Example: 'harness_name'

Version History

Introduced in R2015a