Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   How to make timed sequences in java? (http://www.chiefdelphi.com/forums/showthread.php?t=124250)

omalleyj 08-01-2014 13:19

Re: How to make timed sequences in java?
 
Quote:

Originally Posted by Ether (Post 1323836)
You might want to throttle it with a sleep to run only as fast as it needs to. There are other processes running.



Yes, I take the time at the top of the loop and at the end of the loop sleep for the remainder of the 20ms. (Or print a 'broke realtime' message). That's the big downside of an OS, you have to share :(

Ether 08-01-2014 14:01

Re: How to make timed sequences in java?
 
Quote:

Originally Posted by omalleyj (Post 1323841)
Or print a 'broke realtime' message).

Yes :-)

On a related note: When designing realtime frameworks and application code for bare metal embedded microcontrollers, it's helpful to increment an element in an array of error counters for realtime margin and other operating assumptions. Monitoring those error counters during development, qualification, stress, and acceptance testing is a great way to increase confidence level that the system is operating as expected.



All times are GMT -5. The time now is 22:47.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi