|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Need help with programming double solenoids
Hello, I am new to Labview programming and I was trying to program a double solenoid using an example code. Their code is from 2011 and I ran into trouble with wiring it to the "boxes" the attachments are my code and the sample code i used. I also cannot find how to get the joystick "box" etiher
|
|
#2
|
|||||
|
|||||
|
Re: Need help with programming double solenoids
Use this example updated for 2015 instead.
If you save the example picture, then drag and drop in on your block diagram it will generate the code. |
|
#3
|
||||
|
||||
|
Re: Need help with programming double solenoids
To get a joystick value now you'll need to use the Index Array function rather than Unbundling by Name, like so
![]() |
|
#4
|
|||
|
|||
|
Re: Need help with programming double solenoids
Thanks! but how do I set what button is forward and which is reverse
|
|
#5
|
|||||
|
|||||
|
Re: Need help with programming double solenoids
Use the "Sticky Solenoid Example" on the page Mark pointed to. The integers connected to the Index Array function select which button values come out of the function. It's a zero-based array, so "1" is actually the second button.
|
|
#6
|
|||
|
|||
|
Re: Need help with programming double solenoids
Alright I am very close I have a xbox controller and I want it so Y is up and A is down. here is what i got. Even trying all buttons it doesn't work
|
|
#7
|
|||||
|
|||||
|
Re: Need help with programming double solenoids
The enums in Teleop are incorrect for Solenoid Set. That's why they have red dots.
Get a correct Solenoid Set Enum by
|
|
#8
|
|||
|
|||
|
Re: Need help with programming double solenoids
Alright this worked! Now when i push a button my air cylinder goes all the way up or all the way down. Is there any way to have an in-between..I attempted to code the right stick on the xbox controller but said there were two different data types
|
|
#9
|
|||||
|
|||||
|
Re: Need help with programming double solenoids
Simple answer: no. Pneumatic solenoid valves are two-state devices. There is no middle ground.
Complicated answer: with sufficient analysis and design, one can devise a way to use multiple solenoid valves and flow restrictors to cause a pneumatic cylinder to retract or extend an arbitrary amount. It will move in a spring-like fashion due to external forces, so some sort of feedback on its actual position would be helpful. |
|
#10
|
|||
|
|||
|
Re: Need help with programming double solenoids
When i click the buuton it is one-and-done.We want the button while pressed to flow and when released no flow anyway for this?
|
|
#11
|
|||||
|
|||||
|
Re: Need help with programming double solenoids
Do you mean like this example?
The solenoid here is Forward only as long as the button is held. ![]() |
|
#12
|
|||
|
|||
|
Re: Need help with programming double solenoids
So is there a way to lift a joystick to lift the cylinders some and then let go and it will hold that pressure until i move to joystick again?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|