从C功能块中使用Simulink工作空间变量

发布于 2025-01-23 19:41:47 字数 333 浏览 2 评论 0原文

如您所知,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文