![]() |
Double Solenoid Problem
I'm having an issue with a solenoid being always "on". I have it set to a "select" where true goes forward and false is reverse. The problem is the red light on the pneumatic breakout is always on. I'm wondering where to put the "off" switch for a solenoid if anyone could help.
|
Re: Double Solenoid Problem
The pneumatic breakout is so last year. Is that really what you mean?
Show us the code you're using. There might be a simple change that will make it do what you want. |
Re: Double Solenoid Problem
1 Attachment(s)
|
Re: Double Solenoid Problem
That poses many more questions than it answers.
What vi is that code in? Where is the refnum connected to the Solenoid Set coming from? How are you controlling the Shift button? Where is the associated Solenoid Open, and what is connected to it? If you have opened it as a single solenoid, the "Reverse" value does not make sense. |
Re: Double Solenoid Problem
Sorry if I'm of little help but we just switched to Labview this year.
The VI for the code is an edited Tank Drive example written for a 6 CIM tank with ball shifters and a compressor. I'm not sure what a "refnum" is, could you elaborate please? We are controlling the "shift" via the front panel as of now while the robot is enabled. This will obviously change as the season progresses. The solenoid open is outside of the loop and is set for a double solenoid. The other issue that we are running into is that after a few minutes of driving and shifting, the robot will cycle power and we will loose connection. We have checked for loose connections, and there are none. My only two theories are that if the CKD is constantly engaged, the power cycles or, if the gearboxes half shift, the motors draw too much voltage cause the robot to reboot. If you have any thoughts, please let me know. Thanks in advance. |
Re: Double Solenoid Problem
Quote:
1) open up that code that you took a picture of, maximize the frame. 2) search for windows snipping tool, run it, and take a "snip" of the ENTIRE screen. 3) save and upload that image It really does help if we can see all of the code. Things I noticed: You have compressor code. You can let the Pneumatics Control Module handle compressor stuff. You don't really need it. Also a solenoid is perfectly happy to run in teleop, there is no need to run it in it's own .vi that yo may have integrated. It will function in periodic tasks if you have a subsystem that you want to use in auto and teleop. |
Re: Double Solenoid Problem
Quote:
Quote:
In the typical robotRIO project, all of the Opens are done in Begin.vi, and all of the RefNum values are saved using the RefNum Registry using RefNum Set functions. In Teleop.vi, and in every other place needing to use them, the RefNum values are retrieved from the Registry using RefNum Get functions. Quote:
Quote:
|
Re: Double Solenoid Problem
Quote:
Quote:
|
Re: Double Solenoid Problem
Quote:
|
Re: Double Solenoid Problem
It was the main breaker, sorry, I misspoke.
|
| All times are GMT -5. The time now is 08:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi