Go to Post ...if you don't ask, you won't get. - Billfred [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, 14:58
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,752
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: After enabling, the code takes 9 seconds before it starts running

If you aren't making progress, attach code for people to look at. In your case, attach the whole thing.

Greg Mckaskle
Reply With Quote
  #2   Spotlight this post!  
Unread 11-03-2012, 14:52
Pirate King Pirate King is offline
Team Captain
FRC #0354 (Westinghouse Pirates)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: New York
Posts: 15
Pirate King is an unknown quantity at this point
Re: After enabling, the code takes 9 seconds before it starts running

I had the same problem. All i did is start a new robot project and copied the code part by part to see what was causing the problem. I could not find anything. but the start up lag i had disappeared. Maybe i had deleted something necessary to the code by accident in the first code. Try it if you have the time.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-03-2012, 00:29
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: After enabling, the code takes 9 seconds before it starts running

I discovered that it is about 10 second from when the robot gets communication with the DS, and we just happened to be hitting "enable" right when we got communication. This made it look like the actual code was lagging, but if I wait 10 seconds after getting comm, there is no problem when I enable.

I am still having some problems with the robot "spazzing" on enable. About 1/4 of the times I enable, a solenoid will fire or the turret will turn, then become still. I have set values for these in Begin so they should do nothing. Thoughts?
Reply With Quote
  #4   Spotlight this post!  
Unread 15-03-2012, 18:48
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,752
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: After enabling, the code takes 9 seconds before it starts running

Thanks for the update. The delay before and during Begin makes more sense and is actually expected.

To help with the spazzing, you may want to add a set to disable as well. If you swap from tele to disabled to auto, the old value will still be in effect until auto sets it. You may also want to search for the name of the refnum to help find everywhere it is being set, such as periodic tasks.

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 22:05.

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