필터 지우기
필터 지우기

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

조회 수: 5 (최근 30일)
Christophe
Christophe 2024년 4월 22일
답변: Christophe 2024년 4월 22일
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개)

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by