|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: [need help] push button cylinder/game pad controller
ohh, thanks. i just added that and i have no errors now. thanks for the help! There is one more thing i'm trying to figure out. I don't know how to run the compressor in autonomous mode. Is that a complicated process or is it simple? i can't find any threads about that. I tried to do the same thing i did in teleop but it didn't work. you can see the teleop compressor code labeled GAS in the picture I posted.
Thanks again for all your help. I hope to learn as much as i can about labVIEW and programming before the next build season so the programming skill is not restricting to the robot's capabilities. You have helpedme alot! Cory S. |
|
#2
|
|||||
|
|||||
|
Re: [need help] push button cylinder/game pad controller
The compressor code belongs in Begin.vi, so that it's active all the time to support both Auto and Teleop.
Here's a link to an example of how you start it in Begin.vi: http://team358.org/files/programming...orExample2.jpg There are some other examples on that page you might find useful: http://team358.org/files/programming...2009-/LabVIEW/ |
|
#3
|
|||
|
|||
|
Re: [need help] push button cylinder/game pad controller
oh, wow. I never knew you could do that! Thank you very much!
Cory S. |
|
#4
|
|||
|
|||
|
Re: [need help] push button cylinder/game pad controller
i just looked at my code. it is the same except i had compressor code in teleop.vi and i did not have anything in finish.vi. if i delete the code in teleop and add the finish code it will then run all the time? Why wouldn't it run in autonomous as-is though?
|
|
#5
|
|||||
|
|||||
|
Re: [need help] push button cylinder/game pad controller
I can't see how the compressor is used in the Teleop photo you posted.
What's shown is nothing at all, but I can't see what's in the other Teleop cases. It's probably something you don't realize is even happening. The Finish.vi part won't affect compressor operation. That's only when the program shuts down. Last edited by Mark McLeod : 18-07-2010 at 10:14. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Normal IO Push Button on the Digital Sidecar | DaSavageJ | Electrical | 4 | 07-02-2010 17:43 |
| Driver Station Push Button | coolperson987 | General Forum | 6 | 12-03-2009 22:17 |
| Automation Direct Push Button | MPG | Electrical | 2 | 19-02-2009 22:56 |
| Push Button System | Rob2713g | Programming | 5 | 08-08-2006 21:20 |
| push-button switch on robot | Conan | Electrical | 4 | 10-02-2006 22:03 |