Go to Post Some of them look like phone numbers... LETS START CALLING THEM ALL! - akoscielski3 [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 01-02-2010, 17:54
pedro696 pedro696 is offline
Registered User
None #2564
 
Join Date: Feb 2010
Location: Puerto Rico
Posts: 17
pedro696 is an unknown quantity at this point
Labview help

[/size]

We have implemented a holonomic solution for our drive train. In the programing we have changed the begin vi to a 4 motor open. In the teleop.vi we have changed the false value to drive. When the program is uploaded without error, we change to the driver station using the classmate pc. There we get readings that eeverything is fine except the camera that were using. The pmws register movement but the robot itself does not. Any help would be greatly appreciated.

Thanks 2564
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2010, 00:43
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Labview help

Pedro - are you attempting to "Run" the code using the arrow in robot main.vi, or are you building then permanently deploying it to your robot?

In addition, you don't really want to be switching users. It's better to deploy the code then log off the developer account and log into the driver station account. Simply "switching users" leaves program running in the other account that will slow the computer down. I can't tell if that's what you're doing, so can you clarify?
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2010, 18:29
pedro696 pedro696 is offline
Registered User
None #2564
 
Join Date: Feb 2010
Location: Puerto Rico
Posts: 17
pedro696 is an unknown quantity at this point
Re: Labview help

I have tried to run it using the arrows but yeilded no results so we tried to run it using the driver user. What we have done is to replace the 2 motordrive vi on the begin vi with 4 motors so we can use the ref. on the teleop vi. On the teleop vi we tried to implement a holonomic solution. With the basic 2010 project it runs. as soon as we apply a chonge in 4 motors on begin and teleop it does nothing. I will try to paste a screenshot.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2010, 18:30
pedro696 pedro696 is offline
Registered User
None #2564
 
Join Date: Feb 2010
Location: Puerto Rico
Posts: 17
pedro696 is an unknown quantity at this point
Re: Labview help

heres a link to the screen shot
http://www.flickr.com/photos/21369155@N08/4326589916/
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2010, 18:30
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Labview help

Ok. So the fact that it works with the default project means you've got the hardware wired correctly so far as that goes.

Can you post your actual code? I suspect we'll find an error in it that is causing it to not work correctly.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-02-2010, 18:34
pedro696 pedro696 is offline
Registered User
None #2564
 
Join Date: Feb 2010
Location: Puerto Rico
Posts: 17
pedro696 is an unknown quantity at this point
Re: Labview help

ok im trying to upload a screenshot
http://www.flickr.com/photos/21369155@N08/4326589916/
we placed the code on the false in the teleop.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-02-2010, 18:57
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Labview help

Simply having 4 "Invalid"'s is a first mistake. You need to set those to what the PWM channel is.

Second - You placed this code in Teleop?

You need to put the "Open 4 motor" in Begin.vi, then set it to a Robot Drive refnum. Then, get thar refnum in Teleop.vi

You also need to not have loops inside of teleop, because Robot Main handles the loop for you

If the PWM's are being set but the robot is not moving, check wiring and the disabled switch. If next to "Disabled/Enabled" in the Driver Station it says "Watchdog Not Fed" then your code is stuck in an infinite loop or something else has happened.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
  #8   Spotlight this post!  
Unread 02-02-2010, 19:00
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Labview help

Pedro,

You should only be opening your motors once, in begin. You need to open them using the correct pwm connection #, and you need to assign them a name using the "setref" vi.

In teleop, you refer them to with the getref command.

Please look closely at the way the default framework opens and utilizes motors. That should help.

Likewise, you don't want to be closing the motors at the end of each loop. The close commands should be in your "finished" section.
Reply With Quote
  #9   Spotlight this post!  
Unread 03-02-2010, 14:16
pedro696 pedro696 is offline
Registered User
None #2564
 
Join Date: Feb 2010
Location: Puerto Rico
Posts: 17
pedro696 is an unknown quantity at this point
Re: Labview help

Thank you guys ill try it soon. Theyre invalid because i didnt know which pwm was each motor and whats inside the loop is what we placed in the false option on the teleop. Ill try it soon when I get to the workshop.
Reply With Quote
  #10   Spotlight this post!  
Unread 03-02-2010, 14:36
pedro696 pedro696 is offline
Registered User
None #2564
 
Join Date: Feb 2010
Location: Puerto Rico
Posts: 17
pedro696 is an unknown quantity at this point
Re: Labview help

this is what I placed in teleop:
http://www.flickr.com/photos/21369155@N08/4328590652/

this is what I set on begin:
http://www.flickr.com/photos/21369155@N08/4327857741/

I did not change the name of the setref so that I would not have to edit the rest of the code in the other vi's.
Reply With Quote
  #11   Spotlight this post!  
Unread 03-02-2010, 14:56
pedro696 pedro696 is offline
Registered User
None #2564
 
Join Date: Feb 2010
Location: Puerto Rico
Posts: 17
pedro696 is an unknown quantity at this point
Re: Labview help

One last last thing (yes I said last 2 times) we are using mecanum wheels

Also if anyone else cares to comment it would be appreciated because 2 people in 127 views, well; you get the idea
thanks
Reply With Quote
  #12   Spotlight this post!  
Unread 03-02-2010, 17:49
pedro696 pedro696 is offline
Registered User
None #2564
 
Join Date: Feb 2010
Location: Puerto Rico
Posts: 17
pedro696 is an unknown quantity at this point
Re: Labview help

the 4 motors worked. Does anyone know how to make a better holonomic; since this one is way too sensitive?
Reply With Quote
  #13   Spotlight this post!  
Unread 03-02-2010, 18:03
cooldude8181's Avatar
cooldude8181 cooldude8181 is offline
Registered User
AKA: Charlie Davies
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Oct 2008
Rookie Year: 2009
Location: Colorado
Posts: 39
cooldude8181 is an unknown quantity at this point
Re: Labview help

When my team is testing code, we just opened up the drivers station windows in the developer login.

it always works fine for us and you might want to try it.
Reply With Quote
  #14   Spotlight this post!  
Unread 06-02-2010, 16:14
pedro696 pedro696 is offline
Registered User
None #2564
 
Join Date: Feb 2010
Location: Puerto Rico
Posts: 17
pedro696 is an unknown quantity at this point
Re: Labview help

thanks thats what we did thank you all
Reply With Quote
  #15   Spotlight this post!  
Unread 06-02-2010, 19:34
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Labview help

Pedro, can you clarify on what you mean by two sensitive?

If you mean that you push a little, and the bot goes fast, then you have to ramp or scale your magnitude. You can do that a couple of ways.

I'll give you some hints: You could use a math box, and an equation of a line or parabola to calculate a new magnitude based on your input magnitude. Say, if your magnitude is .4, you can change it to .2. You'll need to different equations though, one that has very little slope, and another at the end of the first that has a high slope that when you push full magnitude you still get a full magnitude response.
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
Labview Help, Rookie Joraus NI LabVIEW 8 07-02-2009 17:08
Help with LabView daviamp NI LabVIEW 2 03-02-2009 19:55
Help on Labview beginners team877 NI LabVIEW 5 12-01-2009 22:45
labview semibeginner help? Gravitynerd NI LabVIEW 1 08-01-2009 00:28
help: cannot get the picture in the labVIEW program .. (was: need help!! quickly!) liad LabView and Data Acquisition 8 18-01-2006 12:20


All times are GMT -5. The time now is 22:57.

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