Hi,
I am trying to run some simulations in Simulink. I imported the model from mbsim with a FMU-Block. The FMU-file is generated via cmd and 'mbsimCreateFMU.exe' executed from a matlab script.
I want to investigate the effects of parameter changes and therefore I created a Matlab script, that does the following:
load bus for Simulink and FMU
for-loop that first changes parameters for mbsim and recreates the fmu-file, second the simulink model is executed
When starting the script from matlab, the first iteration of the loop is completed successfully. After the new fmu-file is created in the second iteration I always get the error:
" Error using Agility_Analysis (line 104)
Error parsing FMU 'mbsim.fmu'.
Caused by:
Error using Agility_Analysis (line 104)
Access denied. Check that you have permissions to access the
path. "
I checked if it helps to run Matlab as an administrator but it doesn't.
I would be very thankful if someone can help me out with this issue.
Hi, I am trying to run some simulations in Simulink. I imported the model from mbsim with a FMU-Block. The FMU-file is generated via cmd and 'mbsimCreateFMU.exe' executed from a matlab script. I want to investigate the effects of parameter changes and therefore I created a Matlab script, that does the following:
When starting the script from matlab, the first iteration of the loop is completed successfully. After the new fmu-file is created in the second iteration I always get the error: " Error using Agility_Analysis (line 104) Error parsing FMU 'mbsim.fmu'. Caused by: Error using Agility_Analysis (line 104) Access denied. Check that you have permissions to access the path. "![grafik](https://user-images.githubusercontent.com/75430908/117440734-bd0f7880-af34-11eb-8f92-7e610b32a3d3.png)
I checked if it helps to run Matlab as an administrator but it doesn't.
I would be very thankful if someone can help me out with this issue.