Creating a standalone .exe of an .m file that calls a simulink model
Hi,
I have a .m file that controls a gui. A slider in the gui is used as input for a simulink model. My goal is to create a standalone of this whole application, that runs on a PC where neither Matlab nor Simulink are installed.
My approach so far is to generate a standalone .exe out of the simulink model, modify the .m script to pass the input values to this .exe and get the output values, and then generate a .exe out of the .m script.
I have several questions on how to do this:
# Is this the correct approach or would it be better to create a dll out of the simulink model?
# If this is the way to go, which target in the code generation allows the easiest passing of values to the simulink model .exe? I found three different options: ert_shrlib (host based shared library), grt (Generic Realtime Target) and rsim (Rapid Simulation Target). Which of these should I use?
# Are there any step-by-step instructions on how to accomplish this? Or even examples of a similar project?
Thanks you very much!Hi,
I have a .m file that controls a gui. A slider in the gui is used as input for a simulink model. My goal is to create a standalone of this whole application, that runs on a PC where neither Matlab nor Simulink are installed.
My approach so far is to generate a standalone .exe out of the simulink model, modify the .m script to pass the input values to this .exe and get the output values, and then generate a .exe out of the .m script.
I have several questions on how to do this:
# Is this the correct approach or would it be better to create a dll out of the simulink model?
# If this is the way to go, which target in the code generation allows the easiest passing of values to the simulink model .exe? I found three different options: ert_shrlib (host based shared library), grt (Generic Realtime Target) and rsim (Rapid Simulation Target). Which of these should I use?
# Are there any step-by-step instructions on how to accomplish this? Or even examples of a similar project?
Thanks you very much! Hi,
I have a .m file that controls a gui. A slider in the gui is used as input for a simulink model. My goal is to create a standalone of this whole application, that runs on a PC where neither Matlab nor Simulink are installed.
My approach so far is to generate a standalone .exe out of the simulink model, modify the .m script to pass the input values to this .exe and get the output values, and then generate a .exe out of the .m script.
I have several questions on how to do this:
# Is this the correct approach or would it be better to create a dll out of the simulink model?
# If this is the way to go, which target in the code generation allows the easiest passing of values to the simulink model .exe? I found three different options: ert_shrlib (host based shared library), grt (Generic Realtime Target) and rsim (Rapid Simulation Target). Which of these should I use?
# Are there any step-by-step instructions on how to accomplish this? Or even examples of a similar project?
Thanks you very much! simulink, matlab MATLAB Answers — New Questions