![]() |
Need help with programming pneumatics
2 Attachment(s)
I have a relatively basic understanding of LabView. I've done the gist of our programming the past several years, and we've avoided using pneumatics since I didn't know how to program them. Now we need them so it's time to learn.
With what I have the compressor just runs indefinitely and pushes our arm out indefinitely. I tried copying some other folks' code to get some results, but it seems like I have our joystick programmed a little differently. I use Get instead of Get Values and break it out so I can program specific buttons/axis to specific actions. I've attached what I have in LabView and would really appreciate some help with our issues. |
Re: Need help with programming pneumatics
Solenoid Sets don't take a floating point number.
Here's an example ![]() |
Re: Need help with programming pneumatics
Single acting solenoids are controlled with "On" and "Off". When turned on the solenoid opens one way, and when turned off (or the power is cut) they default back the other way.
Double acting solenoids have to be driven in both directions. "Forward" and "Reverse". To some extent "On" and "Forward" do the same thing. But "Off" will not drive a double acting solenoid back. The "On", "Off", "Forward", and "Reverse" settings are from an enumerated list. "Off" = 0 "On" = 1 "Forward" = 2 "Reverse" = 3 The code you started with (sending 0 and 1) would have worked for a single acting solenoid. The reason why the arm was pushed out indefinitely was the "On" or 1 command drove it forward, and it needed a "Reverse" or 3 command not an "Off"/0 command to reverse the direction. PS. It looks like you are using old code for the joystick portion as well. "Joystick Get" has been replaced with "Joystick Get Values" and is now unpacked by indexing the array instead of unbundling by name. |
Re: Need help with programming pneumatics
Quote:
|
Re: Need help with programming pneumatics
Quote:
Pretty much, to check if a double solenoid is getting the correct signals from the user code, watch the LEDs on the PCM. For a Double Solenoid you should see:
If the PCM LEDs are operating incorrectly, then the use code is incorrect. If the PCM LEDs are working as expected, then you might have the wrong voltage selected on the PCM (12 vs 24v), or there might not be >20psi at the solenoid pressure input. |
Re: Need help with programming pneumatics
Also, if it helps, you can do a self-test in the roboRIO web-based configuration page. It will also tell you the enabled states of the solenoids (mirrors what the eight solenoid LEDs report on the PCM).
Self-Test button can be found here... http://wpilib.screenstepslive.com/s/...ribution-panel |
| All times are GMT -5. The time now is 10:19. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi