Go to Post Programmers fuel: pure, unadulterated caffeinated beverages. - Mike [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 11-03-2011, 21:31
Bmcdonnell Bmcdonnell is offline
Registered User
FRC #2062 (C.O.R.E. 2062)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Waukesha,WI
Posts: 9
Bmcdonnell is an unknown quantity at this point
Autonomous does not run during first enable

When we run our code from start up, our autonomous mode won't run until after we enable in autonomous mode, then disable and renable. However, when we just run deployed code, it will work the first time. This is fine for testing, but when we put the robot on the field, it just sits there because it is the first time to autonomous is enabled. Teleop mode will work the first time deployed or ran at start up.

We do get this error on the driver station:

−44036 An invalid set operation occurred, and the PWM channel was not allocated.
We have not been able to find the source of this error yet.
Has anyone had a problem with this and found a solution?

We could really use an autonomous mode for tomorrow.

Thanks,
Brandon
__________________
Core values, Core Pride.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-03-2011, 23:34
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Autonomous does not run during first enable

I remember having the error, I don't remember how to solve it. Is your main loop running too slow? The elapsed times vi included in the framework is very useful for that (we have it outputting to the dashboard).

Have you tried running the code (not at startup) and looking at what value the robot mode outputs? Is autonomous independent.vi running at all? Are correct outputs being put to the motors?

If all of those check out, try putting diagram disable structures around some motors, and see when you stop getting the error.

Good luck!
Reply With Quote
  #3   Spotlight this post!  
Unread 12-03-2011, 14:00
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,112
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: Autonomous does not run during first enable

Make sure you are opening all your motors in Begin.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-03-2011, 08:41
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: Autonomous does not run during first enable

If you don't find it, post code.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 13-03-2011, 10:23
Bmcdonnell Bmcdonnell is offline
Registered User
FRC #2062 (C.O.R.E. 2062)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Waukesha,WI
Posts: 9
Bmcdonnell is an unknown quantity at this point
Re: Autonomous does not run during first enable

We never found the problem, but we did just redo our autonomous code and got it working.

Thanks for the advice.
__________________
Core values, Core Pride.
Reply With Quote
  #6   Spotlight this post!  
Unread 25-04-2011, 23:15
404'd's Avatar
404'd 404'd is offline
Lead contributor of sweg
AKA: Josh
FRC #0967 (Iron Lions (9-sits-7))
Team Role: Alumni
 
Join Date: Mar 2011
Rookie Year: 2009
Location: Marion, Iowa
Posts: 86
404'd is a name known to all404'd is a name known to all404'd is a name known to all404'd is a name known to all404'd is a name known to all404'd is a name known to all
Re: Autonomous does not run during first enable

This happened to us every time starting at our first regional. We never figured out what the problem was, but we did fix it. The NI guy at the competition came over and used the NI Measurement & Automation explorer to completely reformat the cRIO. Once we re-imaged and re-deployed it worked perfectly
__________________
Driving "Career":
2012 GKC: Quarterfinals w/ 6th seeded alliance | Wisconsin: Quarterfinals - 3rd seeded alliance captains
2013 GKC: Quarterfinals w/ 5th seeded alliance | North Star: Regional winners, 2nd seeded alliance captains
2013 CMP: Curie Semis w/ 2056 + 3990
Reply With Quote
  #7   Spotlight this post!  
Unread 26-04-2011, 18:03
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Autonomous does not run during first enable

ours does something similar to this. The problem is that the autonomous runs too many things at once which slows it down the first time. AKA do you have multiple while loops acting independently? Thats what our problem is we have a PID loop and a drive loop. The PID loop delays the drive loop a couple seconds then it runs. So everything works but it just takes a couple seconds extra.

NOW FOR YOUR ANSWER IF IT DOESNT WORK SORRY

Preface- If you have a working one DONT TOUCH THE OLD ONE TILL OFFSEASON
1 Run your robot in Autonomous mode (if your not already). And after about a minute or 2 it should execute something (if nothing happens go no further)
2 If something happens remove/combine some of your while loops.
3 Profit
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #8   Spotlight this post!  
Unread 26-04-2011, 20:26
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: Autonomous does not run during first enable

If your autonomous loops are taxing the CPU too much, it is likely because one or more of them is running full speed, with no sleep function in it. This is very easy to spot and very easy to fix. Come by the NI booth or ask the CSE folks if you need assistance.

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 04:37.

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