How do I transfer files to or from my Speedgoat Simulink Real-Time target in R2020b and beyond?
35 views (last 30 days)
Show older comments
MathWorks Support Team
on 20 Jan 2021
Edited: MathWorks Support Team
on 20 Jun 2025
After upgrading to MATLAB R2020b, the following Simulink Real-Time functions no longer work in my scripts:
- SimulinkRealTime.openFTP
- SimulinkRealTime.fileSystem
- SimulinkRealTime.copyFileToTarget
- SimulinkRealTime.copyFileToHost
I receive the following error when calling any of them:
Unable to resolve the name SimulinkRealTime.openFTP.
How can I access the file system of my Speedgoat target computer and transfer files to or from my Speedgoat target computer in R2020b or later?
Accepted Answer
MathWorks Support Team
on 20 Jun 2025
Edited: MathWorks Support Team
on 20 Jun 2025
With the removal of the "File Scope" and "From File" blocks from the Simulink Real-Time (SLRT) library in R2020b, manual file transfers to or from the Speedgoat target computer are rarely needed. Consequently, the SLRT FTP APIs referenced above have also been discontinued in that release.
However, both SCP and FTP protocols remain supported in SLRT R2020b and later. You can still transfer files using external tools such as FileZilla, PuTTY's pscp, or by leveraging MATLAB’s 'ftp' and 'sftp' (R2021b+) objects. Always ensure you log in with the 'slrt' user account (with default password 'slrt') rather than 'root' to maintain system integrity. To change the 'slrt' user password, see: Change Password for Target Computer
Despite the continued protocol support, manual file transfers between the host PC and Speedgoat target computer are generally discouraged. Such actions can lead to unpredictable application behavior, particularly if the file system is accessed using the 'root' account.
Instead, we recommend the following alternative workflows based on your specific use case:
The "File Scope" block was replaced by "File Log" in R2020b for logging signal data to a local file on your Speedgoat target computer's SSD. By default, file logs are automatically transferred to the host PC at the end of the run, or they can be interactively imported into MATLAB using the "Import File Log" dialog or the tg.FileLog.import function. For more information about file logging, see:
Since R2021a, there is a supported workflow to copy file log data manually from the Speedgoat target computer to a host computer without MATLAB. See the following answer for details:
The "From File" block was deprecated in R2020b in favor of using the root-level input port data Simulink feature to supply input data for your real-time simulation. For more details, see the following page:
To manage the parameter sets on the target, you can import any saved parameter sets from the target to MATLAB with importParamSet, allowing you to edit the parameters as a ParameterSet object. After editing, you can re-export them to the target using exportParamSet. For more details on parameter set workflow, see the following page:
0 Comments
More Answers (0)
See Also
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!