code executes very slowly suddenly

조회 수: 2 (최근 30일)
Kishore Kumar
Kishore Kumar 2021년 12월 11일
편집: Jan 2021년 12월 11일
Recently I am working on an application development that reads an external hardware and plots real time values in MATLAB. The program seems to work fine at frequency of 300Hz (300 sets of reading/second). The same program was altered to bring textual outputs at plot window using "uieditfield". This programm worked closer to 500Hz. This was the results I obtained last week.
I was trying to develop the same application in python to try out. But recently, when I try to run the same MATLAB code on the same laptop the frequency has dropped to 50Hz (graph plot) and 250Hz (textual output). Due to this I am losing sync while reading from the device and sync fails. I couldn't find any reasons why this happend. The external hardware works totally fine. I tried debugging by loading the data from csv and processing the data alone. Still the speed was less. I tried it on other pc, it was working good with the expected frequency.
So any reasons why this could happen?
I have not updated the MATLAB version
  댓글 수: 2
Jan
Jan 2021년 12월 11일
편집: Jan 2021년 12월 11일
Without seeing the code and knowing any details, it is very unlikely that somebody guesses the reason of the problem. Matlb did not contain a magic "slow down at 9thode December" flag. Tjis means that something has been modified. So compare the backups of your code to finde the difference.
dpb
dpb 2021년 12월 11일
Is automagic OS update on? Could be the OS was updated w/o being aware of it.
Or, perhaps you picked up some additional malware if connected to internet...

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by