View Single Post
  #4   Spotlight this post!  
Unread 11-02-2011, 01:45
mahumnut's Avatar
mahumnut mahumnut is offline
Registered User
FRC #1418 (Vae Victus)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2009
Location: DC area
Posts: 23
mahumnut is an unknown quantity at this point
Re: Camera Processing Script Causing Obscene Lag

Quote:
Originally Posted by SuperS_5 View Post
This sounds like the vision loop is staving other processes of cRIO resources. Use a millisecond wait in the vision loop, specifically in the enabled case. (I typically use between 1-50ms, but that depends on the complexity of the vision code)

PS: After posting, I actually looked that your VI. I am sure it is consuming most of the cRIO's processor, and starving other loops.
There should already be a 100 ms wait timer in the vision processing vi loop. Back when I put it in, it helped a little with the lag, but it is still a major problem, is their any particular reason why you think it is starving other processes, is it the actual steps in my script?
Reply With Quote