Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   solenoid button help (http://www.chiefdelphi.com/forums/showthread.php?t=125257)

Team3993Tom 25-01-2014 22:02

solenoid button help
 
4 Attachment(s)
Ok so our plan is to have a few different types of buttons for our solenoids. For some reason our code inst working and any advise would be appreciated. (the last one is the toggle.vi that is in our teleop)

Mark McLeod 25-01-2014 22:24

Re: solenoid button help
 
Are the LED indicators on the cRIO solenoid module turning on?

These are Single solenoids you have defined.
Single Solenoids don't go "Reverse"

Team3993Tom 25-01-2014 22:25

Re: solenoid button help
 
Quote:

Originally Posted by Mark McLeod (Post 1332439)
Are the LED indicators on the cRIO solenoid module turning on?

yeah they stay lit green but when I click the button it dost change.

Mark McLeod 25-01-2014 22:34

Re: solenoid button help
 
Single solenoids are true/false devices.
They are either "On" or "Off"

Double solenoids would use "Forward" and "Reverse"

Team3993Tom 25-01-2014 22:41

Re: solenoid button help
 
Quote:

Originally Posted by Mark McLeod (Post 1332447)
Single solenoids are true/false devices.
They are either "On" or "Off"

Double solenoids would use "Forward" and "Reverse"

Is there a way to do it with a single?

Joe Ross 25-01-2014 22:49

Re: solenoid button help
 
Quote:

Originally Posted by Team3993Tom (Post 1332453)
Is there a way to do it with a single?

Please explain what you mean by forward and reverse. If you mean two states, a single solenoid also has two states.

Mark McLeod 25-01-2014 22:57

Re: solenoid button help
 
Just change where you use "Forward" to "On" instead
and change "Reverse" to "Off"

Team3993Tom 25-01-2014 23:01

Re: solenoid button help
 
Quote:

Originally Posted by Joe Ross (Post 1332461)
Please explain what you mean by forward and reverse. If you mean two states, a single solenoid also has two states.

I'm trying to have a cylinder push out and come back by using buttons on my controller. I was able to get the toggle to work by switching it to on and off instead of forward and reverse, but for some reason the two button is not working even though I did the same thing.

Mark McLeod 25-01-2014 23:05

Re: solenoid button help
 
When you continue to hold both buttons 3&4 down at the same time the solenoid module LEDs aren't changing?

Team3993Tom 25-01-2014 23:12

Re: solenoid button help
 
Quote:

Originally Posted by Mark McLeod (Post 1332469)
When you continue to hold both buttons 3&4 down at the same time the solenoid module LEDs aren't changing?

ok it is working now but sadly it wasn't what I was hopping it would be. The idea was to make it go out if I press button 3 and stay in that position, but then go back in when I press number 4.

Qbot2640 25-01-2014 23:21

Re: solenoid button help
 
Disclaimer - I'm not a programmer - but I understand the solenoid:

A solenoid has a normally open and a normally closed condition. If your steady state condition would be the closed (rod inside cylinder) then hitting the momentary button on the controller sends the command to activate and change that state - but when you let go, it will go back to steady state.

You could do a number of things to get what you want - use a joystick or switch on the controller rather than a momentary button - so it "stays" in the activated state - or you could program that the button changes the condition from off to on. Push once for out, push again for back in. Probably a bunch more programming options - like I said, that isn't my specialty.

Mark McLeod 25-01-2014 23:22

Re: solenoid button help
 
Here are two approaches:

1) Incorporate a feedback node to remember what your last choice was.

2) Embed the solenoid Set into two Cases, one for each button, so that it only gets Set when a button is pushed. The False Cases would be empty.

Team3993Tom 25-01-2014 23:31

Re: solenoid button help
 
Quote:

Originally Posted by Mark McLeod (Post 1332479)
Here are two approaches:

1) Incorporate a feedback node to remember what your last choice was.

2) Embed the solenoid Set into two Cases, one for each button, so that it only gets Set when a button is pushed. The False Cases would be empty.

where is the feedback node?

Mark McLeod 25-01-2014 23:33

Re: solenoid button help
 
Programming -> Structures

Team3993Tom 25-01-2014 23:48

Re: solenoid button help
 
Quote:

Originally Posted by Mark McLeod (Post 1332491)
Programming -> Structures

Would the feedback be inside the case, connecting button to feedback then case, or case to feedback to set?

(by the way thank you for putting up with my stupid questions)


All times are GMT -5. The time now is 09:42.

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