Go to Post That's awesome. I sort of like the smaller venues. You get to know teams on a lot more personal level. - thisOrrthat [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 22-02-2011, 11:50
pedro123 pedro123 is offline
Registered User
FRC #3803
 
Join Date: Feb 2011
Location: USA
Posts: 9
pedro123 is an unknown quantity at this point
Code Error (Not getting beyond the loop)

Hi,

So we made a Project with Game Code and added our personal TeleOp code into the designated file. When we try our teleop without uploading the whole project as startup, it works.

However, when I Build the project and Run As Startup and the crio Reboots, only one part of the teleop works. We have compressor code and drive code with two motors plus the pneumatics. When we Run As Startup, our compressor turns on, reaches the limit and stops but we cant control the joystick at all. the error file says that the code is not getting the robotodrive loop. So, I made two while loop with pneumatics and compressor in one and the robotdrive in the other, however it still does not work... Can you help?

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 22-02-2011, 13:15
Jimmy the Kidd's Avatar
Jimmy the Kidd Jimmy the Kidd is offline
Programmer, Scouter, Tactician, etc
FRC #0364 (Team Fusion)
Team Role: Tactician
 
Join Date: May 2010
Rookie Year: 2010
Location: Gulfport MS
Posts: 71
Jimmy the Kidd is an unknown quantity at this point
Re: Code Error (Not getting beyond the loop)

Quote:
Originally Posted by pedro123 View Post
Hi,

So we made a Project with Game Code and added our personal TeleOp code into the designated file. When we try our teleop without uploading the whole project as startup, it works.

However, when I Build the project and Run As Startup and the crio Reboots, only one part of the teleop works. We have compressor code and drive code with two motors plus the pneumatics. When we Run As Startup, our compressor turns on, reaches the limit and stops but we cant control the joystick at all. the error file says that the code is not getting the robotodrive loop. So, I made two while loop with pneumatics and compressor in one and the robotdrive in the other, however it still does not work... Can you help?

Thanks!
Could you either post the teleop.vi or give a screenshot?
__________________

The GDC needs to write the rules once and let the game be what the game is going to be. There's little that's fun about being told exactly how to play with your toys. - Madison
Reply With Quote
  #3   Spotlight this post!  
Unread 22-02-2011, 13:43
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: Code Error (Not getting beyond the loop)

Quote:
Originally Posted by pedro123 View Post
When we try our teleop without uploading the whole project as startup, it works.
When you say "try our teleop", what exactly do you mean?
Reply With Quote
  #4   Spotlight this post!  
Unread 22-02-2011, 16:14
dekker120 dekker120 is offline
Registered User
AKA: Matt Mohler
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Lees Summit
Posts: 15
dekker120 is an unknown quantity at this point
Re: Code Error (Not getting beyond the loop)

Check to make sure that the Watchdog is either Disabled, or that the Watchdog is being "fed" in the while loops... Also check to make sure that the While loops don't have too long of a wait delay... This could be activating the Safety Config feature on the motors. Posting a screenshot would be nice.
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 22-02-2011, 21:53
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: Code Error (Not getting beyond the loop)

Read my thread about while loops in teleop. You cant have them in there. You instead can put them into the periodic tasks VI.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #6   Spotlight this post!  
Unread 22-02-2011, 22:30
pedro123 pedro123 is offline
Registered User
FRC #3803
 
Join Date: Feb 2011
Location: USA
Posts: 9
pedro123 is an unknown quantity at this point
Re: Code Error (Not getting beyond the loop)

I will upload a screenshot of my TeleOp vi as soon as possible (most likely tomorrow morning) but till then, I should let you know I have two while loops. I'll update the info tomorrow.

Quote:
Originally Posted by j.cole View Post
Read my thread about while loops in teleop. You cant have them in there. You instead can put them into the periodic tasks VI.
I just read that but my whole teleop code is two while loops, if i place them in the Periodic tasks, do I just leave my teleop code empty (No drive either?) ?

thanks
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 08:12.

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