How can I set up my MATLAB application to start automatically on a target machine in stand-alone mode?

6 次查看(过去 30 天)
Hi,
I uploaded my program as a real-time application on a target machine (Speedgoat baseline) via MATLAB. Then, I used PuTTY to send commands to load, start, and stop the process. My question is: how can I change the settings so that the target machine starts a specific application when it is powered on and stops it when it is turned off without any command? Is this possible?

采纳的回答

Vandit
Vandit 2024-7-15
Hi Reza,
With Simulink Real-Time Explorer, you can configure a startup application that runs each time you start the target computer. Follow these steps to configure a startup real-time application:
  1. Open Simulink Real-Time Explorer.
  2. In the Targets Tree panel, select target computer 'TargetPC1'.
  3. To load a real-time application on the target computer, click the Load Application button.
  4. After you load the application, select the application from the Applications on target computer list and select the Startup App check.box. The next time the target computer starts or reboots, the application runs on startup.
For more information, please refer to the following documentation link:
Hope this helps.
  1 个评论
Reza
Reza 2024-7-15
编辑:Reza 2024-7-15
Hi Vandit,
Thank you so much for your help. It worked as you mentioned.
Now, the recorded file in the Log File block cannot be accessed if the Speedgoat has been turned off once before connecting to MATLAB. In other words, the Speedgoat should be connected to the host PC before turning off to be able to deliver the recorded data in SLRT Explorer.
Is there any way to solve this issue? I mean, can I attach a USB flash drive to keep the recording data for later extraction?

请先登录,再进行评论。

更多回答(0 个)

产品


版本

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by