An error occurred while calling into the SIL or PIL target connectivity implementation.

조회 수: 45 (최근 30일)
我在通过Simulink进行模型集成测试的时候碰到了问题。我通过已有模型建立了一个集成测试模型,建立了harness,编写了不同Scenarios下的测试用例,但是在进行B2B测试的时候,第一个Scenarios能正常完成测试,从第二个开始就无法生成代码,报如下故障:
An error occurred ('PIL:pilverification:PILImplementationError') when calling 'sim':
An error occurred while calling into the SIL or PIL target connectivity implementation.
Error(s) encountered while building "SAM_ASILC"
求助是不是我的某些设置存在问题?
  댓글 수: 5
dong lin
dong lin 2024년 5월 15일
抱歉没看到。我再详细描述一下我情况吧,我一个component里面有两个runnable,其中一个runnable里面有stateflow,且 function inline operation是auto好像,这导致我codegen的代码出错,本来是这个component里的port,他给生成到了另一个component,codegen出来的代码错了,sil自然废了。这问题还是软件集成出问题,才发现的。
点击stateflow,右键,block parameters(subsystem),code generation你就能看到啦。
这是我个人解决的方法,仅供参考。
Walter Roberson
Walter Roberson 2024년 8월 6일
钰莹 李 comments to @dong lin:
非常感谢你的详细解释!
(Which translates approximately as:
Thank you very much for your detailed explanation!)

댓글을 달려면 로그인하십시오.

채택된 답변

Rijuta
Rijuta 2023년 10월 13일
, 钰莹
我会用英回答你的问题
I understand that you are encountering an error while conducting model integration testing through Simulink.
To resolve this error, you can follow one of the following steps:
  • Ensure that the harness model can compile/simulate successfully outside of Simulink Test Manager. If not, you will get a more detailed error message which can help you investigate the issue.
  • Since this is a bug in R2020b, you can update your MATLAB to R2022b or later releases.
  • To run this in R2021a, a possible workaround is to try changing mapping to 'Auto' for all Model Arguments Parameters from the Test Harness Editor.
I hope this solves your query.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 测试模型组件에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!