Go to Post My advice is anytime your intuition tells you something, double check it with physics. - tennispro9911 [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
  #1   Spotlight this post!  
Unread 10-03-2012, 17:36
androb4's Avatar
androb4 androb4 is offline
..is trying to take this year off.
AKA: Andrew A.
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2003
Location: Houston, TX
Posts: 220
androb4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to behold
Speeding up Teleop

I got a warning message in the DS that said Teleop was running to slow. I know exactly why this is happening, I just want to know if doing this to Teleolp would speed it up.

1. All of the DevRef's are bundled and put into a global.

2. Then I unbundled the DevRef's in an infinite loop inside a Teleop Independent VI I created.

3. This VI is placed in Robot Main, just like Periodic Tasks.

Will doing this make it run normally?? Thanks!
Attached Thumbnails
Click image for larger version

Name:	Teleop.JPG
Views:	46
Size:	32.1 KB
ID:	12270  Click image for larger version

Name:	TeleopInd.JPG
Views:	47
Size:	9.9 KB
ID:	12271  
__________________
FRC 441 Mentor 2012-2015
FRC 441 Alumni 2009-2012
FTC 4673 Alumni 2011-2012
FRC 1484 Alumni 2006-2008

Reply With Quote
  #2   Spotlight this post!  
Unread 11-03-2012, 08:06
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Speeding up Teleop

That could run normally, but I doubt it will change the error messages. The default teleop is more event based, running when a new joystick packet comes in. Presumeably, the new way would read the joysticks as fast as possible and update the motors. I can't tell from what you posted.

The issue causing the messages is probably in a parallel loop already. Perhaps vision. I would suggest measuring what is running at what rate before making such a radical change.

In the project, there is a Support Folder that contains the elapsed times VI. If you drop it into a VI or a loop, you can leave the panel open and see how long between runs. Be sure to open the charts tab on the DS and watch the CPU usage too. Keep in mind that open panels with lots of updates adds CPU overhead.

Determine the appropriate rate for various loops and watch for untimed loops that are running far faster than needed.

If vision is on, you may want to change the Framerate in Begin to get the CPU usage down a bit.

Please post if you find things or need more suggestions.

Greg Mckaskle
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


All times are GMT -5. The time now is 03:50.

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