Log in

View Full Version : Pneumatics and drive together


AmandaMay
11-02-2010, 22:51
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. :eek: Please help us

Mark McLeod
11-02-2010, 23:57
Post the vi's or post the one where you've tried to combine them and we'll help debug it.

bladetech932
12-02-2010, 00:02
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

AmandaMay
12-02-2010, 13:20
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.

Mark McLeod
12-02-2010, 13:26
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 (http://www.chiefdelphi.com/forums/showpost.php?p=907769&postcount=15) 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.

AmandaMay
12-02-2010, 13:29
Your link doesn't work.

Mark McLeod
12-02-2010, 13:31
Sorry, it's better now.

AmandaMay
12-02-2010, 18:13
thank you. We'll let you know how it goes.

AmandaMay
13-02-2010, 13:58
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.

AmandaMay
13-02-2010, 14:02
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:

Mark McLeod
13-02-2010, 14:07
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?