Is there a way to reduce Timer period to less than 1 ms?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
gujax
am 28 Jan. 2023
Bearbeitet: gujax
am 31 Jan. 2023
I am trying to reduce timer(‘period’) to less than 0.001 if possible. In this forum link https://www.mathworks.com/matlabcentral/answers/37716-pause-function-in-matlab-for-1-millisecond, few people have suggested using java pause or writing your own pause function but how can I implement these alternatives inside the predefined timer? Or can I redefine timers ‘period’? I need the timer for its start finish and check functionality.The other question I have is why does one need wait? The fact that timer’s callback is running no further Matlab commands are getting executed. The wait is adding another significant time to my process. Thanks
2 Kommentare
Steven Lord
am 30 Jan. 2023
What is your application where you need a timer with periods that small? Are you trying to do something related to real-time processing?
Akzeptierte Antwort
Walter Roberson
am 28 Jan. 2023
You would need to reimplement timers.
5 Kommentare
Walter Roberson
am 30 Jan. 2023
I am not sure why a new timer function was being generated? Could you have used shared variables instead?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Troubleshooting in Simulink Real-Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!