Remote access to a Simulink Real-Time Speedgoat target through VPN

21 views (last 30 days)
Are there any guidelines for remotely accessing a Simulink Real-Time (SLRT) Speedgoat target computer through VPN?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Apr 2025
Edited: MathWorks Support Team on 11 Apr 2025

Option 1: Target Access with Remote Host PC through VPN

The recommended approach is to install a remote host PC next to the Speedgoat real-time target machine and then establish a remote desktop connection to this PC:
It is a much easier setup, as the required configuration effort should be the same as for any other remote desktop access. Since the remote host PC is directly connected to the Speedgoat target machine, no additional Speedgoat-specific configuration is required in the VPN infrastructure.
It also has other benefits, such as a better response time and transfer speed, so use cases with large file transfers or logging should always consider option 1.
Note that restrictions may apply for remote usage of MATLAB for Designated Computer licenses. Refer to the MathWorks Software License Agreement shipped with your MATLAB installation first.

Option 2: Direct Target Access via Host Link through VPN

Another possible option is to directly access the Speedgoat target via the host link through VPN:
However, this option is not recommended as it will often not work if a restrictive or poor quality IT infrastructure is in place. The response time and transfer speed over such a remote connection is also usually slower than in option 1.
Furthermore, we develop and test Simulink Real-Time with the assumption that the host and target are connected directly through a local network (LAN) with the same subnet. We don't officially support or test connections through VPN because there are too many different varieties of VPNs in the market, and it's not feasible for us to test every VPN connection to make sure it works. We won't be able to offer official support for option 2.
The only tip we can provide is to open all ports in the VPN firewall which are used for the host-target connection. See: What ports and protocols does a Speedgoat target use to communicate with the host in Simulink Real-Time (SLRT)?

Important notes:

(1) Certain VPN solutions use NAT, which stands for Network Address Translation. As of R2025a, NAT is not supported with Simulink Real-Time, as it is not compatible with some of the communication protocols that are used to establish the host-target connection. Use a VPN service that does not use NAT.
(2) You can use a network power switch to turn on and off the power of the real-time target machine. Such power switches can easily be purchased online, and Speedgoat Inc. has had good experiences with the NETIO PowerPDU 4C, but there are many other vendors for such devices.
(3) To ensure proper network configuration, you may need to change the gateway of the Speedgoat real-time target machine. Here are the steps to do so: How can I access a Simulink Real-Time (SLRT) Speedgoat target computer on a separate network?

More Answers (0)

Categories

Find more on Simulink Real-Time in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!