How can I override a Test Assessment/Sequence scenario parameter in an observer model using Simulink Test Manager?
Show older comments
Consider the model shown in Fig. 1 below.

Fig. 1
Additionally, consider the test harness shown in Fig. 2 for the model shown in Fig. 1.

Fig. 2
where the Test Sequence block contains the 2 scenarios shown in Fig. 3 that are activated according to the "idx_harness" scenario parameter.

Fig. 3
I would like to run a test assessment against the "internal_signal" signal shown in Fig. 1 even though I do not want to output this signal from the model. To do this, I inserted an Observer Reference block into the model shown in Fig. 1, as shown in Fig. 4 below.

Fig. 4
The corresponding Observer model, which is obtained by double-clicking on the "Observer" block in Fig. 4, is shown in Fig. 5.

Fig. 5
The contents of the Test Assessment block shown in Fig. 5 are shown in Fig. 6.

Fig. 6
The Test Assessment block also contains 2 scenarios that are activated according to the value of the "idx_observer" scenario parameter.
I would like to activate different scenarios in the Test Sequence block shown in Fig. 2 and the Test Assessment block shown in Fig. 5 by overriding the values of the "idx_harness" and "idx_observer" parameters inside Simulink Test Manager. Specifically, consider the Simulink Test Manager window shown in Fig. 7.

Fig. 7
When I click on the "Add Parameter" button shown in Fig. 8 to add parameters to override, Simulink Test Manager only detects the "idx_harness" scenario parameter and does not detect the "idx_observer" scenario parameter, as shown in Fig. 9. How can I get Simulink Test Manager to detect the "idx_observer" scenario parameter so that I can override its value?

Fig. 8

Fig. 9
Accepted Answer
More Answers (0)
Categories
Find more on Inputs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

