Go to Post For what it's worth, while they may or may not be legal as safety glasses, Steampunk goggles are perfectly legal as forehead protectors. - Nuttyman54 [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2009, 09:22
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Question LabView button for a double-acting cylinder

Good morning.

We've got a double-acting cylinder in our pneumatic system. In our test code, we have two separate buttons that electrify either end of the SMC double solenoid. So, when we press one button, the cylinder extends. The other button causes the cylinder to retract. So far so good.

We're trying to think of a way to program that all into one button. So that, assuming it's retracted at the start, pressing the button once would extend it. The next press would retract it. Etc etc etc.

Is there any way to use a toggle button feature to accomplish this? Or some sort of Boolean expression chain?
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2009, 11:13
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: LabView button for a double-acting cylinder



This code keeps track of the button value between loops, and checks if it's true and different. If it is, it goes to the true part of the case switch.

In the true part of the case switch is where you switch the state of solenoid .
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2009, 11:57
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Re: LabView button for a double-acting cylinder

OK...

So, because I don't have any other idea how to do it, I was going to wire (electrically) the two red/black sides of the two solenoids to two seperate connections. Either two of the "pneumatic bumper" relays or two Spike relays.

Where do I put those two connections, in this LabView code, and how does it differentiate which one to energize/fire?
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2009, 04:16
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: LabView button for a double-acting cylinder

You keep track between loops which one was the last one to fire. You can have something like the code I posted before keep inverting a boolean value, and depending on that value, power the solenoid (in a case statement).

Like, if value is true, power A and not B. If value is false, power B not A.

And then you use the button code to change the value back and forth between true and false.

It hard part it wrap your mind around is using a momentary button as a latching switch..
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to program a pneumatic cylinder in labview star_lancer NI LabVIEW 9 10-02-2012 19:18
Joystick Button Programming in Labview Help Needed domoarigato NI LabVIEW 11 28-01-2009 10:55
Get Button subVI for LabVIEW ShotgunNinja NI LabVIEW 1 18-01-2009 21:08
Reset Button for Vex RC's irishninja FIRST Tech Challenge 5 18-06-2006 15:56
double acting constantly has exaust air? Ben Lauer Pneumatics 14 17-02-2004 18:28


All times are GMT -5. The time now is 21:38.

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