LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Cylinder Through Solenoid Valve

Hi

 

I don't have too much experience in Labview and I'm trying to create pitch motion using a pneumatic system including an air compressor, a solenoid valve and a cylinder.

 

The compressor is made by PowerFist and is capable of storing 5 gallons of air under a rated pressure of 125psi and can deliver 2.5cfm (cubic foot per meter) at 90 psi. The compressed air is sent directly to the solenoid valve. It operates using an electrical motor operating from a standard 110V power outlet. The cylinder has a stoke length of 19.7” and a bore size of 1.6” capable of operating under 130psi.

 

The solenoid valve used is 5-way 3-position. This means that there are five different ways the air flows inside the solenoid and the solenoid can set in three positions depending on the movement of the mechanical core inside. When air is transferred into the valve the mechanical core moves directing the air to the appropriate ports of the solenoid. The two outputs of the solenoid are sent directly to the pneumatic cylinder where extension and collapsing movements can be performed. The solenoid works off of a 12V supply so I'm using Darlington pair transistor as the firing circuit.

 

The issue is that prior to connecting the cylinder, the solenoid seems to be working fine as I can hear the "clicking" sound. However, when I try to connect the cylinder, the air compressor causes the cylinder to collapse and expand once, but does not collapse again. I experience the same issue vice versa....so the cylinder expands and collapses only once, but doesn't expand again. My goal is to have the collapsing and expanding motions happen continuously, not only once. I would appreciate any advice as to how I can solve this problem.

 

I have attached an image showing the connection between the solenoid and cylinder, as well as my Labview file.

 

Thanks!

 

Elmira

Elmira
Download All
0 Kudos
Message 1 of 8
(4,055 Views)

Hi Elmira,

 

Your code currently writes [A,B]=[1,1] continuously. When you click the Right it outputs [1,0] and Left [0,1]. As your controls are set to Latch When released, when the Left and Right buttons are clicked it outputs [1,0] or [0,1] for 100ms then goes back to HOLD [1,1]. Is this how you intend? When you say it only does it once, do you mean each time you click the button? From your Word document it looks like you may want to change the mechanical action of your HOLD, Left, and Right controls to Switch When Released so it will stay Left when the button is clicked rather than returning (unless this is not what you want) then it will Hold Left when you click Left and Hold Right when you click Right.

 

If you would like it to continuously cycle through these states you will need to set up a State Machine, an example can be found here:

 

https://decibel.ni.com/content/docs/DOC-4594

 

If I misunderstood what you are trying to achieve please let me know.

 

DylanC

 

 

0 Kudos
Message 2 of 8
(4,022 Views)

try this....

0 Kudos
Message 3 of 8
(4,013 Views)

apok ,

I'm using LabView 2009.I'm not able to open your vi !!

Elmira
0 Kudos
Message 4 of 8
(3,999 Views)

DynlaC,

 

Thank you for your reply.

 

when I say it only does it once , I mean when I run the code and press Right it extends the cylinder (if it is in collapsing position initially) and when I click Left I hear the 'clicking' sound from the solenoid when it has to collapse the cylinder where it does not collapse it !!! 

You understood my problem perfectly . I want the program continuesly cycle through the states. meaning that for example , when I click Left it collapse the cylinder and when i click Right it extends it.

 

Thank you

 

Elmira
0 Kudos
Message 5 of 8
(3,989 Views)

there ya go...9.0ver

0 Kudos
Message 6 of 8
(3,982 Views)

Thank you apok

this model gives me 3.71 V is there any way I can get maximum voltage ( 5v )?

 

Thankyou

Elmira
0 Kudos
Message 7 of 8
(3,939 Views)

@Elmira wrote:

Thank you apok

this model gives me 3.71 V is there any way I can get maximum voltage ( 5v )?

 

Thankyou


most likely your solenoid is not ttl compatible...put a 4.7kohm pull up tied to the 5Vdc on the output of the open collector(DO) of the daq..

0 Kudos
Message 8 of 8
(3,928 Views)