Error using systemcomp​oser.extra​ctArchitec​tureFromSi​mulink

9 visualizaciones (últimos 30 días)
Rahul
Rahul el 16 de Oct. de 2024
Comentada: Josh Kahn el 21 de Oct. de 2024
Unable to convert simulink model to an architectural model using system composer.
This is the error I get "Error using systemcomposer.extractArchitectureFromSimulink
The specified destination directory 'C:\Users\\MATLAB\Examples\R2024b\systemcomposer\ExtractArchitectureOfASimulinkModelExample' does not have write permissions to create an architecture model.

Respuestas (2)

Anagha Mittal
Anagha Mittal el 17 de Oct. de 2024
Hi Rahul,
Assuming that you are referring to the following example:
The function "extractArchitectureFromSimulink" is not working due to restricted permissions.
There are various workarounds for the same, you may follow any one of the following:
  1. Copy the Simulink model to a folder where you have all access. For this, open the Simulink model and click on "Save As" and change the location of the file to a local folder.
  2. Change the permissions of the "C:\Users\\MATLAB\Examples\R2024b\systemcomposer\ExtractArchitectureOfASimulinkModelExample" folder to give yourself Write access. For this, navigate to this folder in File Explorer, right click on it and select "Properties". In the "Security" tab, click on the "Edit" button, select your username and change the access to "Full Control". Restart MATLAB, and try the command again.
  3. While running the function "extractArchitectureFromSimulink", change the location to save the model to a folder where you have complete access, like the following:
systemcomposer.extractArchitectureFromSimulink('f14', 'C:\Users\YourUsername\Documents\ExtractedArchitecture');
Hope this helps!
  2 comentarios
Rahul
Rahul el 17 de Oct. de 2024
Hello,
For some reason none of these workarounds are working. I get the same error. In addition, even if I try to convert my own simulink model to an architectural model I get the same error.
Josh Kahn
Josh Kahn el 21 de Oct. de 2024
@Rahul, just checking in, are you still blocked by this issue? If so, can you please reach out to our support team?

Iniciar sesión para comentar.


Josh Kahn
Josh Kahn el 17 de Oct. de 2024
HI @Rahul,
This is a known issue related to the example that is fixed in an upcoming update for R2024b. I can confirm the work around for this issue is copying the files out of the example folder and into a separate folder (such as c:\work) like Anagha suggested above.
Josh

Categorías

Más información sobre System Composer en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by