Why won't Simulink Onramp launch?

Hello,
Whenever I attempt to launch Simulink Onramp, I recieve an error saying "Simulink Onramp failed to launch. The system temporary folder is a subfolder of 'CacheFolder', which is not supported. Change the 'CacheFolder' so it is not a subfolder of the system temporary folder." I cannot find 'CacheFolder' through searching the computer, and I do not know how to change this subfolder. How can I fix this error?

 Respuesta aceptada

Asvin Kumar
Asvin Kumar el 16 de Mzo. de 2021

6 votos

The 'CacheFolder' mentioned is from Simulink preferences > General.
More details on it are given in this section from the page on Simulink general preferences. Like it mentions, the setting is empty by default and that means that the Cache Folder uses the present working directory (pwd). You could try either of the following:
  1. Verify whether your current directory is under the temp folder. Change the pwd to a folder that is not under the temp folder.
  2. Manually set the Cache Folder under Simulink general preferences.
Here's how to get details about the current Cache Folder programmatically: Get File Generation Control Parameters
Here's how to modify the Cache Folder programmatically: Set File Generation Control Parameters
You can use tempdir to see the System Temp Directory.

Más respuestas (2)

Aravind Mallemputi
Aravind Mallemputi el 6 de Sept. de 2021

3 votos

please show me the procedure.

6 comentarios

michael farrell
michael farrell el 5 de Mzo. de 2022
%
myCacheFolder = fullfile('C:','aNonDefaultCacheFolder');
myCodeGenFolder = fullfile('C:','aNonDefaultCodeGenFolder');
Simulink.fileGenControl('set', ...
'CacheFolder',myCacheFolder, ...
'CodeGenFolder',myCodeGenFolder, ...
'keepPreviousPath',true, ...
'createDir',true);
Omer Faruk
Omer Faruk el 8 de Nov. de 2022
Thanks a lot!!
%
myCacheFolder = fullfile('C:','aNonDefaultCacheFolder');
myCodeGenFolder = fullfile('C:','aNonDefaultCodeGenFolder');
Simulink.fileGenControl('set', ...
'CacheFolder',myCacheFolder, ...
'CodeGenFolder',myCodeGenFolder, ...
'keepPreviousPath',true, ...
'createDir',true);
copy the code above then paste into matlab code area and run it.
Karansingh Patil
Karansingh Patil el 23 de En. de 2023
Worked well
Yujie
Yujie el 22 de Feb. de 2023
worked well! Thanks.
Andrea
Andrea el 20 de Jun. de 2024
great tip! still working on june 2024

Iniciar sesión para comentar.

Shaopan Guo
Shaopan Guo el 2 de Jun. de 2022

1 voto

You can just change your current working space directory.

2 comentarios

Florian Schallinger
Florian Schallinger el 7 de Abr. de 2024
How can you do that permanently? When I copy/pasted the code from above, I had to do it again ont the following bootup of the programm.
Ugur
Ugur el 11 de Abr. de 2025
You can set the file directories in Simulink->Preferences.
I used the files created by the provided by from other comments in this thread.

Iniciar sesión para comentar.

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Centro de ayuda y File Exchange.

Productos

Versión

R2020b

Preguntada:

el 10 de Mzo. de 2021

Comentada:

el 11 de Abr. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by