Simulink 可以进行系统调用吗?
是否可以从 Simulink 进行系统调用?我没有在文档中找到它,但也许有一个解决方法。或者,它可以像函数调用一样简单。
Is it possible to do a system call from Simulink? I haven't found it in documentation, but maybe there is a workaround. Or, it can be as easy as an function call.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该能够使用嵌入式 MATLAB 函数块从 Simulink 运行 MATLAB 函数。在此函数中,您可以调用 SYSTEM 函数来执行操作系统命令。
You should be able to use an Embedded MATLAB Function Block to run a MATLAB function from Simulink. Within this function you can make a call to the SYSTEM function to execute an operating system command.
是的,我确实相信通过 S-Functions。不幸的是,您必须转向 C 或 C++ 并处理非常笨重的模型接口。我已经很长时间没有使用 S-Function 了,所以恐怕除了指出它们的存在之外我无能为力。
Yes, I do believe this is possible through S-Functions. Unfortunately, you must drop down to C or C++ and deal with a very clunky interface to the model. It's been a very long time since I've done work with an S-Function, so I'm afraid I can't help much beyond pointing out their existence.