1
votes

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.

2

2 Answers

2
votes

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.

1
votes

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.