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
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
2024-8-6
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!