Log in

View Full Version : pneumatics help


Team3993Tom
06-02-2013, 22:19
ok so we have bean having problems with our code for our pneumatics, we have bean trying to set the coding in labview to have 3 solenoids to push out if we press and hold button 1,2, and3 on our log-stick controller. Thx for reading and any advice and pics of examples would help.

Alan Anderson
06-02-2013, 23:23
Lots of LabVIEW examples are already right there for you to look at. When you launch LabVIEW, click the "Support" tab on the "FRC 2013 Getting Started" window. Then click the "Find FRC Examples..." choice. You'll find pneumatic sample code in the Pneumatics folder under FRC Robotics.

"Tutorial 7—Integrating Examples into Robot Code" tells you how to use the examples in your own program.

dsherw00d
06-02-2013, 23:28
As mentioned, there is an example in "help->find examples->pneumatics" The best one is probably "Solenoid with Compressor". Basically, for the Solenoid Set vi, you would use the joystick button for input.

Team3993Tom
08-02-2013, 23:50
thx for the help I was able to get one working but for some reason the 2nd and 3rd arent

Alan Anderson
09-02-2013, 00:06
Show us the code that isn't doing what you want, and we'll probably be able to help you make it behave.

Team3993Tom
09-02-2013, 17:47
I have 2 different versions that I have been trying. One is the separate vi and the other is the one with the begin, teleop (the compressor is in periodic tasks) and finish.

The first 2 are the separate vi and the other 3 are the begin teleop and finish.

Alan Anderson
10-02-2013, 16:41
Don't spend any more time on the "separate vi" one. It's not going to be useful in your actual robot code.

What kind of solenoid valves are you using?

You say "Solenoid 1" works, but "Solenoid 2" and "Solenoid 3" do not? The code seems fine to me. The only thing special about 2 and 3 in your Teleop vi is that they are controlled by the second joystick. Is that joystick configured properly in the Driver Station's Setup tab? Click a button on it and verify that the second line in the joystick list reacts.

Do you see the appropriate LEDs on the NI 9472 module lighting up when you press a joystick button?

Is there something wired differently on the two solenoid valves that don't work? If you swap the connectors between outputs 4 and 5 on the Solenoid Breakout, does the problem follow the output pins, or does it stay with the physical solenoid valve?

Where does the power input to the Solenoid Breakout come from? If it's wired to a 12v branch from the Power Distribution Board, do all of your solenoid valves have 12v coils? It's possible that your first one is a 12v solenoid, but the other two are 24v solenoids.

Team3993Tom
10-02-2013, 17:47
We tried out on taking the working around on the other plugs and we found out that it works so it must be a wire problee.Thx for all the help, if we fined any more problems with it ill post here again