Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Pneumatics and drive together (http://www.chiefdelphi.com/forums/showthread.php?t=82448)

AmandaMay 11-02-2010 22:51

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. :eek: Please help us

Mark McLeod 11-02-2010 23:57

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.

bladetech932 12-02-2010 00:02

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

AmandaMay 12-02-2010 13:20

Re: Pneumatics and drive together
 
1 Attachment(s)
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

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.

AmandaMay 12-02-2010 13:29

Re: Pneumatics and drive together
 
Your link doesn't work.

Mark McLeod 12-02-2010 13:31

Re: Pneumatics and drive together
 
Sorry, it's better now.

AmandaMay 12-02-2010 18:13

Re: Pneumatics and drive together
 
thank you. We'll let you know how it goes.

AmandaMay 13-02-2010 13:58

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.

AmandaMay 13-02-2010 14:02

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:

Mark McLeod 13-02-2010 14:07

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?


All times are GMT -5. The time now is 02:04.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi