- Go to the "Home" tab in MATLAB.
- Click on "Preferences".
- In the Preferences window, select "MATLAB > General > Java Heap Memory".
- Increase the heap size slider to allocate more memory. Be cautious not to exceed the available physical memory of your system. Click "Apply" and then restart MATLAB for the changes to take effect.
Freezing simulink canva with plenty of dashboard elements
35 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a problem with freezing simulink canva, depsite having quite powerful hardware (Windows 10, i7-1265U, 32GB RAM, iGPU intel iRIS Xe), either during modeling or simulating. When I try in any way to manipulate the "display position" of the dashboard elements (i.e. zoom in/out, move view, open subsystem) the whole simulink gui freezes for a shorter (when modelling) or longer (when simulating) period of time. Then it can be seen in Windows task manager that the CPU usage jumps while the GPU is amost idle. This does not happen when you manipulate the canva in the same way but without dashboard elements.
I attach a simple example where are two subsystems - one contains 512 dashboard lamps, second 512 groups of blocks in-subsystem-out. To reproduce the problem it is enough to zoom in/out and after establishing the view clicking the space to fit the view.
0 Commenti
Risposte (1)
Hitesh
il 28 Ott 2024 alle 7:13
Hi Marek,
I also encountered the same issue when trying to zoom or open subsystems with dashboard elements in the Simulink file you shared. This performance issue in Simulink during operations involving dashboard elements was due to insufficient memory allocation for Java heap space. Simulink utilizes Java for its graphical user interface components, and dashboard elements.
By increasing the Java heap memory, you provide more resources for Simulink to handle complex graphical operations and large numbers of dashboard elements efficiently. This adjustment allows Simulink to manage memory more effectively, reducing the likelihood of freezing or sluggish performance when zooming, panning, or opening subsystems with numerous dashboard elements. After increasing the Java Heap Size, I was able to successfully zoom and open subsystems with dashboard elements in the Simulink file that have you shared.
Steps to Increase Java Heap Memory:
For more information on "Java Heap Memory Preferences", refer to the following MATLAB documentation:
4 Commenti
Hitesh
il 3 Nov 2024 alle 10:45
Modificato: Hitesh
il 3 Nov 2024 alle 10:45
Hi Marek,
I think this might be best handled with MathWorks tech support. Could you submit a technical support request ?
Vedere anche
Categorie
Scopri di più su Control Simulations with Interactive Displays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!