Go to Post Moat confirmed, he was only mostly wrong - swnylm [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 23-02-2010, 10:22
rath358's Avatar
rath358 rath358 is offline
Registered User
AKA: max
FRC #0093 (NEW Apple Corps)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Wisconsin
Posts: 27
rath358 is on a distinguished road
Re: vision causes mega-lag in main loop

here is a screenshot of the error that comes up
Attached Thumbnails
Click image for larger version

Name:	Untitled 2.png
Views:	22
Size:	82.9 KB
ID:	8785  
Reply With Quote
  #17   Spotlight this post!  
Unread 23-02-2010, 12:44
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: vision causes mega-lag in main loop

Quote:
Originally Posted by rath358 View Post
here is a screenshot of the error that comes up
That's not an error. It's just an informational message telling you that there's already code running on the cRIO, and that it will be halted in order to run the code you're telling it to run instead.
Reply With Quote
  #18   Spotlight this post!  
Unread 23-02-2010, 16:03
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 137
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: vision causes mega-lag in main loop

I downloaded and tested your Camera Lag Troubleshoot.zip code. With vision enabled I get loop times between 40 and 170 ms. With vision disabled I get loops times between 30 and 65 ms.

Then I turned off auto error logging following the instructions here. With vision enabled I now get loop times between 15 and 65 ms. With vision disabled I get loop times between 15 and 23 ms.

You might want to try turning off auto error logging.
Reply With Quote
  #19   Spotlight this post!  
Unread 23-02-2010, 19:45
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 137
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: vision causes mega-lag in main loop

Sorry for the delayed post. I answered earlier today, but got a message a moderator would have to review my post. Now I see my post never made it.

I tested your attached Camera Lag Troubleshoot.zip code. I was able to improve the loop timing by turning off automatic error logging on the robot. To do that look for my post titled

"Turning off automatic error logging in LabVIEW may improve loop timing "

I'd give you the link, but I suspect that's what caused problems earlier.

Hope this helps.
Reply With Quote
  #20   Spotlight this post!  
Unread 24-02-2010, 22:06
rath358's Avatar
rath358 rath358 is offline
Registered User
AKA: max
FRC #0093 (NEW Apple Corps)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Wisconsin
Posts: 27
rath358 is on a distinguished road
Re: vision causes mega-lag in main loop

Thank you very, very much for this. I will not be able to test it until tomorrow night, but it sounds like exactly the kind of thing I am looking for.

now, back to that homework backlog...
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2010 FRC camera vision tracking delay, image processing lag pspeer C/C++ 18 18-02-2010 07:24
Main loop wierd problem Tottanka Programming 5 10-02-2008 15:14
Mega FIRST How-to Book Leon Machado IV General Forum 14 20-05-2005 20:21
Rewriting main loop Max Lobovsky Programming 4 04-01-2005 18:35


All times are GMT -5. The time now is 04:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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