开发者

System call from Simulink possible?

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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜