从C功能块中使用Simulink工作空间变量
如您所知,Simulink提供了一个称为C功能块的块,该块允许我们在Simulink环境上调用Legacy C代码(请参阅 c功能)。
该块具有一个选项,该选项使我们能够在C函数内进一步使用输入,输出,参数和常数参数,但是我想知道是否有任何方法可以调用Simulink Workspace参数(例如,基础中定义的Simulink参数工作区)在C功能块中被调用。
As you might know Simulink offers a block called C Function block which allows us to call legacy C code on the Simulink environment(See C-Function).
This block has an option which allows us to declare input, output, parameter and constant parameter that further be used inside the C function, but I want to know if there is any way to call Simulink Workspace parameters (e.g. Simulink parameters defined in the base workspace) to be called inside the C function blocks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论