Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Robot Communication Lost for odd reason (http://www.chiefdelphi.com/forums/showthread.php?t=146594)

Mark McLeod 04-04-2016 12:10

Re: Robot Communication Lost for odd reason
 
Timed loop structures run at an elevated priority to regular code, so it was probably locking out normal operations.

Alan Anderson 04-04-2016 12:15

Re: Robot Communication Lost for odd reason
 
Quote:

Originally Posted by engbrech (Post 1567344)
Well I seem to have alleviated the issue but I don't really understand the reason. The catapult was being launched in the periodic task loop in a Labview subVi. It's launched was controlled with a timed loop structure. Switching that loop to a regular while loop with a "wait until next 10ms" control seemed to fix the job.

Maybe your catapult loop takes longer than 10 milliseconds to execute? A timed loop runs at a higher priority than normal, and would starve the rest of your program of CPU cycles.


All times are GMT -5. The time now is 11:23.

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