Cannot get simulation to run after 2024 upgrade from 2023.

7 views (last 30 days)
I upgraded from MATLAB/SIMULINK 2023 to 2024. When trying to rerun the simulation that had run in 2023 I get:
"
Error:Unable to update models referenced by 'plant'.
Caused by:
The corresponding 'decay_heat_SF.tlc' file for the MATLAB S-function 'decay_heat_SF' in block 'decay_heat/Level-2 MATLAB S-Function' must be located in the current working directory, the MATLAB S-function directory 'D:\OneDrive\USNC\Control Design\Decay Heat', or the directory 'D:\OneDrive\USNC\Control Design\Decay Heat\tlc_c'
"
Under 2023b no "decay_heat_SF.tlc" was generated or needed.
When running "decay_heat_SF" as a standalone model it runs. When added as a sub-model in "plant" it gives this error.
Can someone help?

Accepted Answer

Chris
Chris on 14 Apr 2025
I am answering my own question.
It seems that when running a "referenced" model in SIMULINK version 2024 it defaults to a "Accelerator" in the "Simulation mode" instead of "normal" which I suspect was the default in 2023. As I an relatively new to SIMULINK and the fact that it compiles in the "accelerator" mode I was getting an error I did not really understand.
Once I switched to "normal" the SIMULATION ran as per normal. Presently, whilst debugging the model, running in "Accelerator" mode makes no real sense. But eventually I suppose I will need it.

More Answers (0)

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Tags

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!