Dashboard blocks crash my Simulink by using all of my PC's memory(MATLAB 2016b)

5 vues (au cours des 30 derniers jours)
Guobang Liang
Guobang Liang le 5 Mar 2021
When I try to use the Lamp block of dashboard , I have to connect the signal with the Lamp block, then the signal will have an icon on its line as shown below, and then I start the simulink(Stop time set to "inf"). I find that my memory use is continuously increasing(eventually go up to 100%, total memory is 16GB), then Simulink won't update the state of Lamp. For example, when the memory reach to 100%, the color of Lamp won't change anymore even though I change the signal it has connected, and Simulink will become really slow. After some experiments, I find the problem is "Stream Selected Signals"(By right-clicking the signal line). As long as I stop the "Stream Selected Signals", the memory won't rise up again, but the PROBLEM is if I want to use the Lamp block, I must start the "Stream Selected Signals", What should I do?
What's interesting is that this problem will appear in R2016b, it won't happen in R2019b. I have tested the same model in R2019b, the memory problem won't happen, and I can't find the "Stream Selected Signals" icon in the signal line in R2019b. Is this problem can solve in R2016b?

Réponses (0)

Catégories

En savoir plus sur Control Simulations with Interactive Displays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by