Go to Post it's much easier to build safety in to a system than to add it on a Thursday at a regional. - dtengineering [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 27-01-2014, 20:38
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Mecanum Implementation in LabView

Previous question resolved. New question: When we slide to the right, the voltage drops to below 9 volts and kills the robot. This only happens when we try to strafe/run diagonally right.
This was a problem on the Ultimate Ascent robot we built except it was to the left instead. We haven't figured out the problem for this yet.
Is it a coding problem?
Or a wiring problem?



Previous question resolved, new one now, the cRIO wipes the code every time we do a power cycle.
We've checked the little box during imaging for labview, and it doesn't keep the code.
In LabView, we are trying to invert the motors and it would give me the problem attached.

Last edited by xXhunter47Xx : 27-01-2014 at 23:20.
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2014, 22:12
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Mecanum Implementation in LabView

It looks like you attached a PWM enum type to the true/false type of the invert motor inputs.

You need to delete that data connection, then hover over the Invert input until you see the wire spool cursor, then right-click and choose Create->Constant.

It should create the correct T/F input.

It should look like this:
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2014, 22:49
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: Mecanum Implementation in LabView

Okay I got that on the program...
Now to redeploy to the robot.
Since we're on the topic of deploying code, the cRIO wipes the code every time we do a power cycle.
We've checked the little box during imaging for labview, and it doesn't keep the code.
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2014, 22:58
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Mecanum Implementation in LabView

Are you doing the explicit steps to compile and download the code to the robot?
On the Project Explorer window expand Build Specifications, then right-click on the entry under that for the pop-up menu:
  1. Build
  2. Run as startup
or are you using the Run arrow (Debug-only)?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2014, 23:00
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Mecanum Implementation in LabView

On the bottom of your Project Explorer, you will see "Build Specifications". Expand that, and you will see "FRC Robot Boot-Up Deployment". Right click on this and select "Build". This will build your project (it does not need an active connection to the robot to do this). Once this has completed, right click again and select "Run as Startup". When it has completed, it will ask you if you want to reboot the controller (select yes, it will reboot automatically). Your code should then be persistent on the controller.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2014, 23:19
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: Mecanum Implementation in LabView

Cool! Thanks guys.
Now onto the next problem... haha
When we slide to the right, the voltage drops to below 9 volts and kills the robot. This only happens when we try to strafe/run diagonally right.
This was a problem on the Ultimate Ascent robot we built except it was to the left instead. We haven't figured out the problem for this yet.
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2014, 23:23
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Mecanum Implementation in LabView

Define "kills the robot". Does it lose communication with the Driver Station?

Strafing will take much more power than simply going forward/backwards. Try using a fully charged battery and see if it clears up. If not, check your wiring. Remember that the 12 volt to 5 volt converter for the radio MUST be in the dedicated 12 volt port on the front of the Power Distribution Board and the cRIO MUST use the 24 volt port located in the same area.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2014, 23:48
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: Mecanum Implementation in LabView

The robot loses communication with the driver station and disables the teleop.
Well it can't be wiring, everything is wired correctly according to diagrams, and the battery was running at 12.4 volts with no load according to the driver station. When we strafe right it drops to nearly 9 volts. It doesn't happen when we strafe left or move in any other direction.
Reply With Quote
  #9   Spotlight this post!  
Unread 28-01-2014, 00:47
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,113
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: Mecanum Implementation in LabView

Quote:
Originally Posted by xXhunter47Xx View Post
The robot loses communication with the driver station and disables the teleop.
Well it can't be wiring, everything is wired correctly according to diagrams, and the battery was running at 12.4 volts with no load according to the driver station. When we strafe right it drops to nearly 9 volts. It doesn't happen when we strafe left or move in any other direction.
If you're ever losing communication, it can most certainly be a problem with the wiring. You say everything is wired correctly, but until you itemize every connection between the Power Distribution Board and the D-Link router we're not going to know whether what you think is correct is actually the way it needs to be done.
Reply With Quote
  #10   Spotlight this post!  
Unread 28-01-2014, 06:46
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: Mecanum Implementation in LabView

The good news is that your issue is repeatable.

So make it happen again and collect as much data as you can about it to answer these questions...

The devices almost all have LEDs and a boot sequence. Does the cRIO reboot? Does the radio reboot? Does the camera reboot?

Look at the Charts tab of the DS. How low did the yellow voltage plot go before the disconnect?

If the radio is the only device to reboot, trace wires and verify that it is connected through the regulator and the special 12V connector on the end of the PD near the cRIO. The link below, radio section shows images.

http://wpilib.screenstepslive.com/s/...control-system

If it is just the cRIO, then verify it is connected to its special boosted location on the PD.

If these seem correct, it may be informative to measure with a multimeter to verify the regulation features are working properly.

That is enough If ... then conjecture. Let us know the results of the test.

Greg McKaskle
Reply With Quote
  #11   Spotlight this post!  
Unread 29-01-2014, 12:44
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: Mecanum Implementation in LabView

We've noticed that one of the motors (specifically front right) gets hotter than the rest of the motors after a prolonged amount of use. There is one gearbox that binds slightly and wouldn't spin as well as the others, and that might be what the motor is attached to.
Would that be the problem?
Reply With Quote
  #12   Spotlight this post!  
Unread 29-01-2014, 23:06
BenGrapevine's Avatar
BenGrapevine BenGrapevine is offline
Head Programmer
AKA: Tony Simmering
FRC #2549 (Millerbots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Minneapolis, Minnesota
Posts: 46
BenGrapevine is an unknown quantity at this point
Re: Mecanum Implementation in LabView

I'm not at all a wiring person but I'm guessing something related to backflow on the CIM?
__________________
Millerbots Team 2549
orange and blue
Reply With Quote
  #13   Spotlight this post!  
Unread 29-01-2014, 23:29
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Mecanum Implementation in LabView

Quote:
Originally Posted by xXhunter47Xx View Post
We've noticed that one of the motors (specifically front right) gets hotter than the rest of the motors after a prolonged amount of use. There is one gearbox that binds slightly and wouldn't spin as well as the others, and that might be what the motor is attached to.
Would that be the problem?


On the gearbox that binds, open it up and check out the insides. On the gears inside the box, you will notice a small raised "flange" on one side of the gear right around the center. That little flange needs to go towards the case of the gearbox to keep it spaced away from the sides. When it is done right, all those flanges should be sitting right against the bearings in the case. Check to see if you don't have gears facing the wrong way, as this could cause too much friction and bind it up.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #14   Spotlight this post!  
Unread 30-01-2014, 12:39
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: Mecanum Implementation in LabView

Quote:
Originally Posted by Mark McLeod View Post
Are you doing the explicit steps to compile and download the code to the robot?
On the Project Explorer window expand Build Specifications, then right-click on the entry under that for the pop-up menu:
  1. Build
  2. Run as startup
or are you using the Run arrow (Debug-only)?
Quote:
Originally Posted by Cecil View Post
On the bottom of your Project Explorer, you will see "Build Specifications". Expand that, and you will see "FRC Robot Boot-Up Deployment". Right click on this and select "Build". This will build your project (it does not need an active connection to the robot to do this). Once this has completed, right click again and select "Run as Startup". When it has completed, it will ask you if you want to reboot the controller (select yes, it will reboot automatically). Your code should then be persistent on the controller.
Quote:
Originally Posted by BenGrapevine View Post
I'm not at all a wiring person but I'm guessing something related to backflow on the CIM?
Yeah I'm assuming that that's one of the problems because the code we uploaded was autogenerated by LabView. It can't have been a coding problem because that code wasn't modified.
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 20:54.

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