xil_interface.cbuild error during SIL simulation of custom interface Simulink Model
2视图(30天)
显示旧的评论
你好,
我有一个模型与以下金宝app模型生成代码
代码的接口
设置:
- 代码接口包装:可重用函数
- 通过根级I / O:个人参数
我也定制原型模型的阶跃函数看起来像这样:
arg_d = testmodel_step(*自我,cntrl_t arg_x, cntrl_t arg_y)
在哪里
arg_x
和
arg_y
所传递的参数
价值。
这些类型的参数
cntrl_t,
作为一个自定义结构体类型从外部进口头文件。
我能够模拟模型在正常模式和构建生成的代码没有问题。然而,当我试图运行一个SIL的仿真模型与SIL模型块模型接口测试工具中的模型我得到这个错误:
C: /回购/ testmodel / testmodel_ert_rtw /银/ xil_interface。c: 327:7:错误:无效的类型参数的一元‘*’(“cntrl_t{即struct <匿名>}’)
* (arg_x) * (arg_y));
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
C: /回购/ testmodel / testmodel_ert_rtw /银/ xil_interface。c: 327:29:错误:无效的类型参数的一元‘*’(“cntrl_t{即struct <匿名>}’)
* (arg_x) * (arg_y));
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
我的工具链MinGW64 gmake(64位Windows)。
为什么SIL接口的代码生成器试图废弃阶跃函数的参数指针如果不?
我查看了一下
xil_interface.c
文件和接口数据实际上是宣布正确作为变量,而不是指针。
我需要配置模型的代码生成一种特殊的方式来解决这个错误吗?
谢谢你!
尼古拉斯。