|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Pneumatics and drive together
We have a teleop sub vi in the main code. The teleop is now just being used for drive, but we tried to put our pneumatics code inside it. We first tried putting it in the code, but then just the pneumatics would work and the drive would not. Then we put the pneumatics in as a new sub vi and put it in our code. We had a lot more errors. pneumatics works alone and drive works alone. Why won't they work in the same project? We don't know what to do.
Please help us |
|
#2
|
|||||
|
|||||
|
Re: Pneumatics and drive together
Post the vi's or post the one where you've tried to combine them and we'll help debug it.
|
|
#3
|
||||
|
||||
|
Re: Pneumatics and drive together
i can think of one thing that could be your problem if you are running the pneumatics on a relay
check the side car to make sure that the sidecars 5v,6v,and the one next to that are all lit if not all 3 are lit fix the connection till you have all 3 lit |
|
#4
|
|||
|
|||
|
Re: Pneumatics and drive together
Alright, we figured out that the problem was a watchdog error. The compressor watchdog is not being fed so the compressor only turns on and off and does not run continuously. How do we feed the watchdog without creating a while loop. We attached a picture of our code.
|
|
#5
|
|||||
|
|||||
|
Re: Pneumatics and drive together
That style is so last year
All your Open statements should be moved to Begin.vi where they really belong. What's happening is you are opening and closing all your devices 50 times a second by having them in Teleop.vi. Here's how the compressor and solenoids should be used. Starting the compressor this way actually spins off a task where it runs by itself as long as the robot is on without bothering anyone else. Last edited by Mark McLeod : 12-02-2010 at 13:31. |
|
#6
|
|||
|
|||
|
Re: Pneumatics and drive together
Your link doesn't work.
|
|
#7
|
|||||
|
|||||
|
Re: Pneumatics and drive together
Sorry, it's better now.
|
|
#8
|
|||
|
|||
|
Re: Pneumatics and drive together
thank you. We'll let you know how it goes.
Last edited by AmandaMay : 12-02-2010 at 18:30. |
|
#9
|
|||
|
|||
|
Re: Pneumatics and drive together
We are still having big problems, we used your code, but we have 2 solenoid valves on the same button. We are still having watchdog feed errors. Our compressor goes on and off.
|
|
#10
|
|||
|
|||
|
Re: Pneumatics and drive together
In our diagnostics, it says the refnum we are trying to get does not exist, and it says error <code>-44047 occured at solenoid. lvlib:
|
|
#11
|
|||||
|
|||||
|
Re: Pneumatics and drive together
That usually means that the name you typed in for the solenoid was mistyped.
I'd go to Begin.vi and copy the name of each device, then paste and wire it where you use it in Teleop.vi Is the compressor going on and off rapidly? Is there much pressure (by gauge reading) in the system when it's shutting off? Last edited by Mark McLeod : 13-02-2010 at 14:09. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: Team 624 2009 Final and Prototype Robot together. | RazorTip360 | Extra Discussion | 5 | 22-03-2009 21:56 |
| tying together FIRST, VEX, and FLL | sburro | General Forum | 10 | 08-02-2006 12:31 |
| do tracks and wheels together make a better robot? | gondorf | Rumor Mill | 31 | 16-01-2006 16:06 |
| BS2p and GSM modem together. | ice-egoz | Programming | 0 | 18-07-2004 23:47 |
| Putting two and two together... | Andy Grady | General Forum | 13 | 08-01-2004 18:29 |