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

10 ビュー (過去 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 件)

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by