Question on Simulink Stand Alone executable with grt target file
3 次查看(过去 30 天)
显示 更早的评论
Hi , I was trying to generate a windows executable file from a simulink model using the grt system target file. It generated the exe file. This is a simple model I have two inputs and an output. I was wondering how can I call this model executable from Windows command line or say other languages like Python using os.system, and pass in the input arguments and get the corresponding outut. Any help on this will be much appreciated. Please let me know if you need more information. ![Compiled_Model.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/204705/Compiled_Model.png)
![Compiled_Model.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/204705/Compiled_Model.png)
I am able to run this in command line, but I am not sure how to pass in the arguments and get back the result.
![Command_Line_Execution.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/204706/Command_Line_Execution.png)
0 个评论
采纳的回答
Patel Mounika
2019-2-21
You can give the input arguments next to the executable (D:\Bibin\Testing>Test_Sum your input arguments) and the corresponding output will be displayed in the prompt.
Hope this helps.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Schedule Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!