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

6 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Vandit
Vandit il 15 Lug 2024
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 Commento
Reza
Reza il 15 Lug 2024
Modificato: Reza il 15 Lug 2024
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?

Accedi per commentare.

Più risposte (0)

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by