Go to Post Sometimes i wish the robot could fit into my pocket. - GMAdan [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 14-10-2010, 19: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: Whats wrong with this code?

I don't see a problem with the code that I see.

First, I'd look at the Diagnostics tab to make sure there aren't messages explaining that there was a misspelling or other explanation. Make sure that the watchdog hasn't shut down the robot since I don't see a feed anywhere on the screen.

Finally, with the robot in that state, place some probes via right clicking on wires, and push a button.

One thing I'll throw out is that 10% motor power or 0.1 may not be enough to move the motor. If you see that your logic is correct and you are sending 10%, change the constants to controls so that you can tweak the values more easily, find the values that work, then make current values default.

Also, button one should be easier to debug as you can look at the solenoid module LEDs.

Greg McKaskle
Reply With Quote
  #2   Spotlight this post!  
Unread 14-10-2010, 21:49
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
Re: Whats wrong with this code?

Thank you for replying. I do not know what the problem could be, in the diagnostics window it does not show any error messages. And plus not even the solenoid extends. No changes occur when i press Number 2 (to move the motor) nothing happens.

When i started looking into the last years robot, i connected everything and enabled the robot. The robot worked fine, except we had one problem which i wanted to fix, which was that the motor connected to the proximity switch did not turn back. so i opened the code that was in the robot, which should be this one, because it had the latest date and it was named the FINALrobotcode. The only thing i changed was change motor speed from 0.1 to -0.1 when armed switch comes on. Then...All of a sudden something happend.

The code did not work and still does not...Help pleaseee

Team 1514
The Vikes

Last edited by whcirobotics : 15-10-2010 at 07:14.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-10-2010, 07:38
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: Whats wrong with this code?

You have a couple choices. If you believe that putting the 0.1 back to its old values will work, you might give that a try. Or, you can start debugging it with probes and the like. Determine if the joystick buttons get to the diagram and correspond to the button state. Determine if values are really being set on the motor controller block.

This will help to determine if it is just the SW, or possibly the electronics that needs debugging.

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays kavisiegel NI LabVIEW 17 16-02-2010 21:10
What is wrong with this part Adam Y. Inventor 11 10-04-2008 20:36
Something wrong with this picture sanddrag Chit-Chat 2 30-04-2006 12:41
What is wrong with this code???? It won't Compile and I don't know why? Please Help CrashZero Programming 23 26-03-2004 09:44
Whats wrong with this code? Morgoth Programming 4 19-01-2003 11:45


All times are GMT -5. The time now is 21:13.

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