Azzera filtri
Azzera filtri

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

19 visualizzazioni (ultimi 30 giorni)
我在通过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 Commenti
钰莹 李
钰莹 李 il 7 Apr 2024
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 il 15 Mag 2024
抱歉没看到。我再详细描述一下我情况吧,我一个component里面有两个runnable,其中一个runnable里面有stateflow,且 function inline operation是auto好像,这导致我codegen的代码出错,本来是这个component里的port,他给生成到了另一个component,codegen出来的代码错了,sil自然废了。这问题还是软件集成出问题,才发现的。
点击stateflow,右键,block parameters(subsystem),code generation你就能看到啦。
这是我个人解决的方法,仅供参考。

Accedi per commentare.

Risposta accettata

Rijuta
Rijuta il 13 Ott 2023
, 钰莹
我会用英回答你的问题
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.

Più risposte (1)

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

Categorie

Scopri di più su 测试模型组件 in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!