Go to Post We talked to a team in Las Vegas and next year there will be another team with a 25 drive train. The west coast may never be the same. - nuggetsyl [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-02-2013, 17:48
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: building and deploying code

The words "loop error" seem to be referring to a message telling you the loop containing the motor drive commands is running too slow. Is that correct?

The code looks okay. I don't see any problems in Teleop that would make it run slowly. Is there anything in Periodic Tasks? Perhaps something in there is using up all the cRIO's CPU cycles.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2013, 15:38
Kyle A's Avatar
Kyle A Kyle A is offline
If it ain't broke don't fix it!
AKA: K Adams
FRC #0306 (CRT(Corry Robotics Team))
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry PA
Posts: 341
Kyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud of
Send a message via AIM to Kyle A Send a message via Yahoo to Kyle A
Re: building and deploying code

Quote:
Originally Posted by Alan Anderson View Post
The words "loop error" seem to be referring to a message telling you the loop containing the motor drive commands is running too slow. Is that correct?

The code looks okay. I don't see any problems in Teleop that would make it run slowly. Is there anything in Periodic Tasks? Perhaps something in there is using up all the cRIO's CPU cycles.
Yes that is what I meant. I dont believe we put anything into that, here is the file, I also have gone through and reinstalled all the required updates. Here is the link, thanks for the help.
Attached Files
File Type: vi Periodic Tasks.vi (21.1 KB, 5 views)
__________________
Corry Robotics Team 306 1999-2015

Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2013, 20:20
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,751
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: building and deploying code

I don't see anything in the Periodic Tasks that should cause it to run slowly or consume CPU. There is one piece of code with the encoder that isn't in a loop, so it will only run one time.

If you have the newer driver station, it will show you CPU usage for different modes of operation. Does it help you understand what the robot is doing? Is the disabled robot CPU high? Is it just teleop? Is it auto too?

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2013, 23:57
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: building and deploying code

The "loop running too slowly" error can also be caused by the Driver Station computer being overburdened. Are you running anything CPU-intensive on it?
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2013, 07:41
DrewG's Avatar
DrewG DrewG is offline
Registered User
FRC #0306 (CRT)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Corry, Pa
Posts: 18
DrewG is on a distinguished road
Re: building and deploying code

we are no longer getting the slow loop error, but there are a few new problems.
The compressor does not stop at 120 psi.
The shooter motor does not respond to joystick 3 (or any other control).
The strangest part is that all the buttons i have set to control a piston move the drive train instead.
here are all the vis I changed. if you need to see any others, ill post them as well.
Attached Files
File Type: vi Begin2.vi (43.0 KB, 2 views)
File Type: vi Teleop2.vi (37.5 KB, 1 views)
File Type: vi Periodic Tasks2.vi (23.4 KB, 3 views)
File Type: vi Finish2.vi (27.5 KB, 1 views)
Reply With Quote
  #6   Spotlight this post!  
Unread 12-02-2013, 07:43
DrewG's Avatar
DrewG DrewG is offline
Registered User
FRC #0306 (CRT)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Corry, Pa
Posts: 18
DrewG is on a distinguished road
Re: building and deploying code

The drive train also no longer whines or "twitches"
Reply With Quote
  #7   Spotlight this post!  
Unread 12-02-2013, 10:49
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: building and deploying code

Quote:
Originally Posted by DrewG View Post
The compressor does not stop at 120 psi.
The compressor code looks right. Do you have the pressure switch wired across the SIG and (-) pins of DIO1? Can you verify that the switch opens when the pressure reaches 120 PSI? Is there perhaps a short circuit across the connections, such as a bit of metal in the DIO pins or a stray strand of wire on the switch terminals?

Quote:
The shooter motor does not respond to joystick 3 (or any other control).
The strangest part is that all the buttons i have set to control a piston move the drive train instead.
But your program doesn't have anything that would let the drive motors react to any buttons. Are you perhaps moving the joystick a little when trying to press a button? Check the Setup tab on the Driver Station and make sure the three joysticks are in the order you think they are. Pressing any button on a joystick will make its name change from green to blue in the list, and add asterisks. You can drag the joystick names around to put them in the order you want them to be in.
Reply With Quote
  #8   Spotlight this post!  
Unread 14-02-2013, 17:17
DrewG's Avatar
DrewG DrewG is offline
Registered User
FRC #0306 (CRT)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Corry, Pa
Posts: 18
DrewG is on a distinguished road
Re: building and deploying code

The reason the controls were going crazy was that the sidecar was ony drawing power from the cRIO and not the battery. we fixed this problem and a few other minor issues, and everything seems to be running smoothly. thanks to everyone for all the help!
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 12:09.

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