|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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? |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
|||
|
|||
|
Re: Labview help
heres a link to the screen shot
http://www.flickr.com/photos/21369155@N08/4326589916/ |
|
#5
|
||||
|
||||
|
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. |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||||
|
|||||
|
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. |
|
#8
|
||||
|
||||
|
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. |
|
#9
|
|||
|
|||
|
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.
|
|
#10
|
|||
|
|||
|
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. |
|
#11
|
|||
|
|||
|
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 |
|
#12
|
|||
|
|||
|
Re: Labview help
the 4 motors worked. Does anyone know how to make a better holonomic; since this one is way too sensitive?
|
|
#13
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |