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

45 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"
求助是不是我的某些设置存在问题?
  5 Commenti
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你就能看到啦。
这是我个人解决的方法,仅供参考。
Walter Roberson
Walter Roberson il 6 Ago 2024
钰莹 李 comments to @dong lin:
非常感谢你的详细解释!
(Which translates approximately as:
Thank you very much for your detailed explanation!)

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 (0)

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!