
Why am I unable to connect to my Speedgoat target, which was set up in R2020a or earlier, after upgrading to MATLAB R2020b or later?
63 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 9 Dic 2021
Modificato: MathWorks Support Team
il 23 Mar 2025 alle 21:54
I have a Speedgoat real-time target computer and have been using it with R2020a and previous releases to deploy and run my models.
I wanted to connect the Speedgoat with MATLAB R2020b, but I get the following error in Simulink Real-Time Explorer or when I execute the following commands at the MATLAB command line:
>> tg = slrealtime;
>> tg.connect
Error using slrealtime.Target/throwErrorWithCause (line 151)
Cannot connect to target 'TargetPC1': Cannot connect to non-QNX Neutrino target.
Use speedgoat.migrateTarget to update target machine.
The suggested command also gives me an error message:
>> speedgoat.migrateTarget
Unable to resolve the name speedgoat.migrateTarget.
In R2021a or later, the error message while connecting is "Cannot communicate with target" or "Unable to communicate with target computer":
Cannot connect to target 'TargetPC1': Cannot execute command on target 'TargetPC1':
Cannot communicate with target 'TargetPC1'.
Disconnecting development computer from target 'TargetPC1'. (uname)
Error on target computer 'TargetPC1': Unable to execute command on target computer 'TargetPC1':
Unable to communicate with target computer 'TargetPC1'.
Disconnecting development computer from target computer 'TargetPC1'. (echo $HOME).
Why do I get these errors, and how do I resolve them?
Risposta accettata
MathWorks Support Team
il 23 Mar 2025 alle 0:00
Modificato: MathWorks Support Team
il 23 Mar 2025 alle 21:54
Starting in R2020b, Simulink Real-Time uses a 64-bit POSIX-based real-time operating system (RTOS), namely BlackBerry® QNX Neutrino®. In R2020a and earlier, Simulink Real-Time used a 32-bit operating system. The errors above occur when using MATLAB R2020b or later to connect to a Speedgoat target that has not been upgraded to the new RTOS, or that was booted with the prior RTOS.

The quickest way to determine which RTOS your Speedgoat uses is to connect a screen. Here are screenshots of the old RTOS target screen with graphics enabled, versus the new QNX RTOS text-only status monitor.
To use Simulink Real-Time from R2020b onwards, you must upgrade your Speedgoat computer to the new QNX RTOS using the Target Software Migration utility that ships as part of Speedgoat I/O Blockset. Follow the steps below:
1. Download and install the latest Speedgoat I/O Blockset from the Download area of the Speedgoat Customer Portal.
2. Once the Speedgoat I/O Blockset is installed, use the following command to migrate your target machine to use the new QNX operating system:
>> speedgoat.migrateTarget
We highly recommend following this video tutorial. If you have any queries regarding the dual-boot feature, or need assistance with the Target Software Migration tool or boot errors, contact Speedgoat Support.
3. After the target migration is complete, go back to MATLAB, run a software update and connect:
>> tg = slrealtime;
>> tg.update('force',true);
>> tg.connect;
In case you encounter any further connection issues after upgrading your Speedgoat and booting with the new QNX RTOS, ensure your new MATLAB installation is allowed through the firewall. In addition, MATLAB R2020b and later use new protocols and ports for host-target connections, requiring firewall and network adjustments. See Why am I unable to connect to my Speedgoat target computer in R2020b or later? for more information.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Target Computer Setup in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!