Go to Post It's up to veteran teams and mentors to help keep the original spirit of FIRST alive. - It's up to us to make these boards exemplify the FIRST principals in every post. - Ben Mitchell [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #17   Spotlight this post!  
Unread 26-02-2012, 12:34
DeadlyJohny DeadlyJohny is offline
Registered User
FRC #3417
 
Join Date: Feb 2012
Location: Dallas, TX
Posts: 26
DeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to behold
Re: Our programmer left...

Quote:
Originally Posted by Alan Anderson View Post
The Solenoid Set function's value input expects an enumerated value of Off, On, Forward, or Reverse. Those are mapped to integers 0-3, respectively. If you provide a boolean input, a single solenoid is supposed treat a false as Off and a true as On. I don't know if it would work right for a double solenoid. It's likely that you'll see the solenoid engaged as both forward and reverse at the same time, leading to an indeterminate state when the button is released.

The typical way to control a double solenoid from a button is to use a case block controlled by the button boolean value. In the true case, set the solenoid Forward, and in the false case set it Reverse. You can also use a Select (found in the Comparison subpalette) to choose between a Forward and a Reverse constant to feed to the Solenoid Set value.
I get what your saying but is what I've done serve my purpose of pulling the trigger and releasing it causing the piston to fire and retract back?
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:41.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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