Why can I ping my Speedgoat target and update the software, but the connection from MATLAB fails from R2020b through R2025b?
Afficher commentaires plus anciens
I'm using Simulink Real-Time (SLRT) with a Speedgoat target computer. I've successfully done the following:
- Migrated the target to the new QNX operating system as explained in this MATLAB Answer.
- Configured Windows Defender Firewall to allow traffic between MATLAB and Speedgoat and unblocked ports as explained in this MATLAB Answer.
- Updated the target software with the "Update Software" button in SLRT Explorer, or "tg.update" command in MATLAB.
- Verified that the target screen is showing the matching version of MATLAB.
- Verified that the target is reachable and can be pinged from the Windows Command Prompt.
However, when I try to establish the host-target connection from MATLAB using Connect Buttons or the "tg.connect" command, I get one of the following errors:
Unable to connect to target computer 'TargetPC1': Unable to connect to target computer.
Unable to connect to target computer due to possible firewall issue.
% In older versions of MATLAB:
Cannot connect to target 'TargetPC1': Cannot connect to target.
Réponse acceptée
Plus de réponses (1)
Pablo Romero
le 8 Jan 2024
Modifié(e) : Pablo Romero
le 28 Juin 2024
You can also use the following cmdlet in Powershell to configure the firewall accordingly in one single step. Please replace <SpeedgoatIPaddress> with your Speedgoat IP address, for example, 192.168.7.1 or remove that argument completely.
New-NetFirewallRule -DisplayName "Speedgoat" -Direction Inbound -RemotePort 5505-5507,5510-5512,5515-5517 -Protocol UDP -Action Allow -Profile Any -RemoteAddress <SpeedgoatIPaddress>
Catégories
En savoir plus sur System Configuration dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




