Clear Filters
Clear Filters

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

39 views (last 30 days)
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?

Accepted Answer

Vandit
Vandit on 15 Jul 2024 at 7:10
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 Comment
Reza
Reza on 15 Jul 2024 at 18:06
Edited: Reza on 15 Jul 2024 at 18:13
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?

Sign in to comment.

More Answers (0)

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!