Run/Kill a Process Called From Matlab
16 次查看(过去 30 天)
显示 更早的评论
I am working on designing a GUI that reads data from a file that is populated from a Perl script. As part of unifying this GUI, I am trying to start and stop the Perl script by using a switch in Matlab App Designer. However, I am not sure how to implement stopping the Perl script.
Details of the Perl Script:
- The script is designed as an infinite script that collects data every 1 second
- The script must be manually stopped or killed
I have been researching different methods to implement starting and stopping an external script that is running in the background. For Windows platform, I have found that System.Diagnostics.Process() works for starting the script, getting the PID, and killing the script. Is there any advantages to using these methods instead of the system() Matlab function? If I use the system() function, is there a way to kill the script (I have been unable to find one so far)? For Linux Platform, is there similar methods to those available for the Windows platform for starting and killing the script? I have not been able to find much information online about the Linux Platform.
Any information is greatly appreciated!
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 PID Controller Tuning 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!