How do I transfer files to or from my Speedgoat Simulink Real-Time target in R2020b and beyond?

22 views (last 30 days)
After upgrading to R2020b, I noticed that the following Simulink Real-Time functions in my script do not work anymore:
  • SimulinkRealTime.openFTP
  • SimulinkRealTime.fileSystem
  • SimulinkRealTime.copyFileToTarget
  • SimulinkRealTime.copyFileToHost
I am getting the following error when using 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 target computer in R2020b or later?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 31 May 2023
Edited: MathWorks Support Team on 30 May 2023
With the removal of "File Scope" and "From File" blocks in R2020b, there is little reason for a user to manually transfer files to and from the target computer.
Note that FTP is still supported in R2020b and later and can be used via external tools like FileZilla, or directly via the MATLAB objects 'ftp' or 'sftp' (available from R2021b). The username and password are both "slrt" by default.
However, manually moving files between host and target is discouraged. Consider the following alternative workflows depending on your use case:
 

Use Case 1: Transfer simulation data logged on the target computer to the host PC

The block "File Scope" was replaced by "File Log" in R2020b. When using the "File Log" block, the logged data runs are either automatically transferred from the target computer to the host PC at the end of the simulation, or they can be imported using the dedicated "Import File Log" button in SLRT Explorer or the filelog.import function.
For detailed information on a supported workflow to transfer these file logs manually, see the following article:
 

Use Case 2: Transfer input data for the real-time simulation to the target computer

Use root-level input port data to supply input data for your real-time simulation. For more details, see the following page:

More Answers (0)

Community Treasure Hunt

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

Start Hunting!