Test Manager: No block called 'From1' could be found.

3 次查看(过去 30 天)
Hello,
I'm working on a model and try to write test through Test Manager.
The model is updating without error => OK
When I run the test in Test Manager, I can see the following step in the Simulink test harness window:
...
Updating library link blocks: Completed
( It updates the 4 referenced model,)
Compiling: Refreshing bus cache: Completed
Compiling: Evaluating block parameters: Completed
Initializing
Ready
Then it stops, and in the Test Manager window, the following error appears:
Cause of Failure: Erros running test case
Invalid Simulink object name: Toto_Sequence_Harness/From1.
No block called 'From1' could be found.
As mentionned in another post, a space character can be the origin of the error. I look for ' From1' (sapce before) and 'From1 ' (space after) but Simulink didn't find any.
In the model there are 1602 'From1' (without space, it includes 'From10', 'From11'...).
How can I have more precision regarding error location ?
How can this error can be solved ?
Thanks in advance,
Christophe

采纳的回答

Christophe
Christophe 2024-4-22
In Test Manager / Simulation outputs / Logged signals, a signal source was set to Toto_Sequence_Harness/From1.
This was not consistent with the Toto_Sequence_Harness signal named From2.
By removing the wrong signal source (Toto_Sequence_Harness/From1), and adding the correct one (Toto_Sequence_Harness/From2) the problem is solved.
Thanks for people who think about my problem.
PS: It would be very helpfull, if the error message could mention the location of the block it didn't find or give Simulation outputs / Logged signals information.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Outputs 的更多信息

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by