Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Please Help With Pneumatic Programming (http://www.chiefdelphi.com/forums/showthread.php?t=154867)

WalnutsAndBolts 06-02-2017 21:34

Please Help With Pneumatic Programming
 
Hi,
I have been working for the last 3 days to program the solenoids on my teams robot. I have asked a few different times how to do this, but nothing seems to work. Would anyone be willing to share images of there Labview solenoid/pneumatic code? It would also be helpful if someone could help us work out this bump in the road, if we still get stuck.

Thank you all so far, and please help me get through my rookie year with my sanity:ahh: ,

Walnuts and Bolts Robotics Team

Hitchhiker 42 06-02-2017 21:46

Re: Please Help With Pneumatic Programming
 
1 Attachment(s)
The snippet attached should show the basics of using solenoids. If you have a single solenoid, you want to use the "On" and "Off" values of the enum constant, and if you have a double, use "Forward" and "Reverse".

The example will turn on a single solenoid on the press of button 0 (and turn it off when released). Button 1 controls the forward/reverse state of the double solenoid. If you want to toggle, then read through this thread.

Hess1113 07-02-2017 14:38

Re: Please Help With Pneumatic Programming
 
Use the solenoids to open in the begin.VI like how you would a motor
Then Hitchhiker had a good example as above but for the global variables you could use True or False, One and Zero, Or On and Off. If you have any questions just DM

Robomarfa 07-02-2017 14:52

Re: Please Help With Pneumatic Programming
 
Make sure you have programmed the CAN address of the pneumatics module to be unique. Use the RoboRio web viewer to see/change CAN addresses.


All times are GMT -5. The time now is 22:36.

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