|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Help programming pneumatics
This is our teams first time using pneumatics. We have everything hooked up but are having issues with the programming part. We would like the piston to extend when button "A" is pressed and retract when button "A" is released. How would we achieve this. Thanks in advance!
|
|
#2
|
|||||
|
|||||
|
Re: Help programming pneumatics
What you want to do is Open a solenoid in Begin, selecting the PCM channel(s) it is connected to, and save its device reference with an appropriate name using the solenoid RefNum Set function. Then in Teleop, read the button value -- it will be a boolean. Use a RefNum Get to retrieve the device reference and pass it to the solenoid Set function. Use the boolean button value to select between Forward and Reverse (or Off, if it's a single solenoid instead of a double one).
I'd post snippets of LabVIEW code here if I had it installed on this computer. |
|
#3
|
|||
|
|||
|
Re: Help programming pneumatics
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|