필터 지우기
필터 지우기

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

조회 수: 19 (최근 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"
求助是不是我的某些设置存在问题?
  댓글 수: 4
钰莹 李
钰莹 李 2024년 4월 7일
Thank you for your answer, but I couldn't find where this option is. Could you please tell me the detailed location of this option?
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你就能看到啦。
这是我个人解决的方法,仅供参考。

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

채택된 답변

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.

추가 답변 (1개)

Shangjun Xie
Shangjun Xie 2024년 5월 15일
我也遇到了这个问题。
我尝试将被测试的模型的逻辑清空,以arxml生成的基础模型进行测试,SIL测试可以正常运行,test manager可以得到仿真结果。
我正在逐步还原模型,定位导致错误产生的模块,如果有相关经验,还请与我分享

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!