windows real time target CPU 100%, freeze, etc

7 views (last 30 days)
Hello,
I am experiencing serious issues with windows real time target.
I need it to connect my simulink model to Xplane (an airplane simulator) to have a 3D graphic display.
Sometimes it works, sometimes the screen freeze and I can kill the whole Matlab process from the task manager (I cannot kill only Simulink), and sometimes the PC restart by itself.
But this is not the main problem, after few crashes like that, when I restarted the PC, the CPU is always running at 100%, even when I just start the PC and no application are open ! If I kill the process using the most of the CPU, the CPU is redistributed into the others process to always keep 100%.
I am sure that this is due to the windows real time target because at first I thought about a virus or something, so I format my PC and it was solved. I used it few days and it was fine until I reinstalled Matlab and I restart using the real time target.
I suppose the real time target changed something in the task allocation, which is the source of my problem.
Another weird thing, when I change the 'power option' from the control panel (high performance, power saver), the CPU stop using 100%. But if it crashes again under this power option, this power option will be "corrupted" and the CPU will run 100% under this power option.
I have a Lenovo U41. I am using windows 10, i7-5500U, 8GB of ram. I am using Matlab R2016b.
I installed the real time target by typing 'sldrtkernel -install' in the Matlab command line.
My Simulink file was working for few months with the windows real time target until my last windows update (which means my simulink model is correct).
Let me know if you need more information (maybe a log file has been generated when it has crashed).
Help ! Help ! Help !
Thanks you very much in advance.
Romain

Accepted Answer

Romain Chiappinelli
Romain Chiappinelli on 16 May 2017
The real time target make it freeze if the computer is not fast enough to complete the simulation between 2 steps.
Regarding the 100% CPU I fixed it like this: Control panel -> Hardware and Sound -> Power Option -> Change plan settings -> Restore default settings for this plan.
Romain

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!