When I click on Performance Adviser in Simulink I get DMR client's dictionary function threw std::exception 'Failed to create cache
5 次查看(过去 30 天)
显示 更早的评论
I've changed the equations I'd like to use for the resistor, dc voltage source and dc current source to a quadratic formula by going to the "source code" when clicking on the element properties, as this electrical circuit will actually be an analogy for a mechanical circuit.
However, it is not performing as I expect, with a negative current in one branch of the circuit.
So to understand what could be the issue, I clicked on performance adviser and get the failed to get cache error shown in the title of the question.

When I click on Model Adviser I also get:
Error occurred during model compile.
Error during code generation: Dot indexing is not supported for variables of this type.

The circuit is too big to take a screenshot of when zooming out without some parts becoming invisible.
I changed the equations to be V = I^2*R and P = I^3*R.
0 个评论
回答(1 个)
Aniket
2025-1-30
The negative current might indicate reverse flow, which could be a valid scenario depending on the mechanical analogy.
The error reported on opening Performance Advisor occurs when the path to the model is too long, meaning that when Performance Advisor attempts to create cache folders, these folder names are longer than the allowed Windows limit of 260 characters. To resolve this issue, move the model to a directory with a shorter path name.
I hope this helps resolve the issue!
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!