Chief Delphi

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

CrimsonSword 13-02-2016 13:02

Pneumatics Labview
 
We are using pneumatics on our robot and we are able to get the compressor working but we can not get the pressure switch to turn off the compressor. So how do do you program pressure switches in LabView? I have looked at some tutorials on how to do program a pressure switch but the VIs in my version of LabView do not have the same inputs. Does that have anything to do with the tutorials not being from this year?

We are using pneumatics to shift gears. I have no clue on how to do that as the team has never programmed a robot that could shift gears before this year. So how do you shift gears with pneumatics in LabView?

:rolleyes:

MrBasse 13-02-2016 13:15

Re: Pneumatics Labview
 
I generally try to stay as far away from programming as I can, but I'm fairly sure that the code is already present and you just have to wire the pressure switch properly for it to work.

For just shifting gears, do you really want the compressor on the robot? Seems a few storage tanks and an offboard compressor would get the job done there. Unless you plan on shifting a lot of times just to hear the cool noises it makes...

Alan Anderson 13-02-2016 13:30

Re: Pneumatics Labview
 
The Pneumatic Control Module (PCM) takes care of the compressor automatically. In LabVIEW, all you need to do is open a solenoid, and everything else is handled for you. Just connect the compressor power and the pressure switch to the labeled Weidmuller connectors on the PCM, and you'll be good to go.

For shifting gears with LabVIEW, you need to pipe pneumatic tubing to the right places, and you need to wire the solenoid valves to the right connectors on the PCM. Then you need to Open the solenoids appropriately, and you need to Set them appropriately when you want to shift gears. The programming depends on a couple of things. Are you using single solenoids (only one pair of wires) or double solenoids (a pair of wires at each end)? What physical control (gamepad or joystick button, computer keyboard, foot switch, etc.) are you using to command the gear?

CrimsonSword 13-02-2016 14:14

Re: Pneumatics Labview
 
Quote:

Originally Posted by Alan Anderson (Post 1539661)
The Pneumatic Control Module (PCM) takes care of the compressor automatically. In LabVIEW, all you need to do is open a solenoid, and everything else is handled for you. Just connect the compressor power and the pressure switch to the labeled Weidmuller connectors on the PCM, and you'll be good to go.

For shifting gears with LabVIEW, you need to pipe pneumatic tubing to the right places, and you need to wire the solenoid valves to the right connectors on the PCM. Then you need to Open the solenoids appropriately, and you need to Set them appropriately when you want to shift gears. The programming depends on a couple of things. Are you using single solenoids (only one pair of wires) or double solenoids (a pair of wires at each end)? What physical control (gamepad or joystick button, computer keyboard, foot switch, etc.) are you using to command the gear?

I am pretty sure we are using single solenoid with joystick button for commanding gears.

P.S. Block diagrams would be helpful

CrimsonSword 13-02-2016 14:17

Re: Pneumatics Labview
 
Could you provide block diagrams for solutions to both problems?

Alan Anderson 14-02-2016 18:36

Re: Pneumatics Labview
 
Is there anything specific you don't understand about the LabVIEW examples?

I think they should show you everything you need to know, but I'm coming from a position of knowledge so I might not recognize something that isn't explained adequately.

CrimsonSword 15-02-2016 11:18

Re: Pneumatics Labview
 
I haven't really found any labview examples for shifting gears so I would like to see how it is done. Just to make sure We are using a joystick button to control a single solenoid which will shift the gears. So can someone show me how to do this and provide the labview code.

Alan Anderson 15-02-2016 15:54

Re: Pneumatics Labview
 
How would you want it to work? There are a number of possibilities. My preference might not be the same as yours. Until you pin down the details, I'm reluctant to give you a specific solution.

So tell me a story. Imagine that it's working as desired. Describe what the driver does in order to shift gears, and explain what happens on the robot as a result. Make sure you detail the action that occurs when a button is pressed, and again when the button is released. If anything special takes place when the button is pressed and held, let us know that too. If the same button does different things at different times, make sure you explain why.

After I know in sufficient detail what you want it to do, I can help you learn exactly how to program the robot to do it.

bachster 15-02-2016 20:11

Re: Pneumatics Labview
 
Quote:

Originally Posted by MrBasse (Post 1539653)
I generally try to stay as far away from programming as I can, but I'm fairly sure that the code is already present and you just have to wire the pressure switch properly for it to work.

For just shifting gears, do you really want the compressor on the robot? Seems a few storage tanks and an offboard compressor would get the job done there. Unless you plan on shifting a lot of times just to hear the cool noises it makes...

Just a reminder to everyone who may read this: regardless of whether the compressor is on- or off-board the robot, it still needs to be controlled by the robot. See R78, R80, R85, R88. So the code and wiring to run the compressor is the same either way. :)


All times are GMT -5. The time now is 00:42.

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