Go to Post Its great for us as mentors to see students teaching other students and a robot being built from scratch without us. Maybe someday they won't need us at all!!! - DR3381 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-11-2010, 04:12 PM
3p1c w1n 3p1c w1n is offline
Registered User
FRC #1529
 
Join Date: Jan 2010
Location: Indianapiolis
Posts: 53
3p1c w1n is an unknown quantity at this point
Labview Solenoid Programming

The programmer for my team left last yeear so i've been trying to learn labview

My question is that the current robot calls for multiple push button solenoid's
I was wondering if someone could post how to do that and show some pictures that would be nice


What im looking for to sum up is


multiple push button digital output / solenoid
push button turns 1 motor
the magnetic digital input for the pneumatic
  #2   Spotlight this post!  
Unread 02-11-2010, 04:31 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 7,189
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Labview Solenoid Programming

I have an example here for a push button solenoid and the rest of the required pneumatic system.

Here is a relay example for when you have a motor driven by a Spike. This does forward and reverse, but you can change "reverse" to "off" if you like.

Did you want a motor example that uses a speed controller?

I don't know what "the magnetic digital input for the pneumatic" means...
__________________
"A child of five could understand this. Fetch me a child of five." - Groucho Marx
  #3   Spotlight this post!  
Unread 02-11-2010, 06:25 PM
ngould ngould is offline
Registered User
FRC #1572
 
Join Date: Feb 2010
Location: San Diego
Posts: 3
ngould is an unknown quantity at this point
Re: Labview Solenoid Programming

I'm really new to programming, so don't really know much... I'm trying to figure out how to use the Solenoid example code in the basic cRIO code. Is that the pictures that you posted, or is that something else?

Tasha
  #4   Spotlight this post!  
Unread 02-12-2010, 01:33 PM
3p1c w1n 3p1c w1n is offline
Registered User
FRC #1529
 
Join Date: Jan 2010
Location: Indianapiolis
Posts: 53
3p1c w1n is an unknown quantity at this point
Re: Labview Solenoid Programming

so for multiple solenoids would i use multiple solenoids would i put in multiple solenoids doing the same thing foe each

I would do the same thing for the Relay as I would for the solenoid correct



and pneumatic encoder i was speaking of is the MRS magnetic reed switch from BIMBA

The motor control will simply Raise 2 pistons so when they extend to reach the top of the tower
  #5   Spotlight this post!  
Unread 02-12-2010, 01:48 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 7,189
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Labview Solenoid Programming

Yes, just add more of the same solenoid code for each new solenoid you want to add.
Repeat the Relay code for more Relays (Spikes). The Relay is treated a little differently than the solenoid, because Relays have 4 possible inputs - Forward/Reverse/On/Off and you need to use a case statement block to set those properly.

The magnetic reed switch gets connected to one of the Digital Sidecar inputs labeled Digital I/O. The same place that the pressure switch got connected and to the same signal/ground(1) pins, no power.


The pictures I posted are just my example of how to setup the compressor and use solenoids with the 2010 LabVIEW framework.
__________________
"A child of five could understand this. Fetch me a child of five." - Groucho Marx
  #6   Spotlight this post!  
Unread 02-12-2010, 02:39 PM
3p1c w1n 3p1c w1n is offline
Registered User
FRC #1529
 
Join Date: Jan 2010
Location: Indianapiolis
Posts: 53
3p1c w1n is an unknown quantity at this point
Re: Labview Solenoid Programming

I have come across another problem

When I tried to put in 1 solenoid and 1 motor relay for the motor to lift the arm A popup that says my code is broken

I am not sure if these pictures uploaded with this post but on the chance they did it is a picture of my begin vi and the teleop vi

the begin vi I think is suPPosed to open a reference to a relay and solenoid
please look at it and tell me if I am on the right track?
Attached Files
File Type: doc Doc2.doc (156.4 KB, 95 views)

Last edited by 3p1c w1n : 02-12-2010 at 02:47 PM.
  #7   Spotlight this post!  
Unread 02-12-2010, 02:47 PM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 7,734
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Send a message via AIM to Alan Anderson
Re: Labview Solenoid Programming

Sorry, no picture came through.

If you try to run a broken vi, LabVIEW will give you a list of the places that are broken. Selecting from the list will take you directly to the broken spot in the block diagram.
  #8   Spotlight this post!  
Unread 02-12-2010, 02:53 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 7,189
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Labview Solenoid Programming

What I see looks correct and as it should be.

I see that the error is in teleop.vi, but I can't see where it is.
You can tell by the broken arrow button in the top left of the window header. (The Begin.vi has a nice error-free solid arrow.)
Double-click on the error in the popup window as Alan recommended and it will take you to the problem and highlight it.

What's in the False case for the Relay?
__________________
"A child of five could understand this. Fetch me a child of five." - Groucho Marx

Last edited by Mark McLeod : 02-12-2010 at 02:57 PM.
  #9   Spotlight this post!  
Unread 02-12-2010, 02:54 PM
3p1c w1n 3p1c w1n is offline
Registered User
FRC #1529
 
Join Date: Jan 2010
Location: Indianapiolis
Posts: 53
3p1c w1n is an unknown quantity at this point
Re: Labview Solenoid Programming

What would i need in the false because currently there is nothing
  #10   Spotlight this post!  
Unread 02-12-2010, 03:00 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 7,189
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Labview Solenoid Programming

Well, what happens is your motor will begin to run forward as soon as button 11 is pressed, but there is nothing to stop it.

Usually, in the False case you'd set the Relay to Off.
__________________
"A child of five could understand this. Fetch me a child of five." - Groucho Marx

Last edited by Mark McLeod : 02-12-2010 at 03:02 PM.
  #11   Spotlight this post!  
Unread 02-12-2010, 03:06 PM
3p1c w1n 3p1c w1n is offline
Registered User
FRC #1529
 
Join Date: Jan 2010
Location: Indianapiolis
Posts: 53
3p1c w1n is an unknown quantity at this point
Re: Labview Solenoid Programming

ok I set it to off when the case is false and error still pops up. I attached the error message.

Thanks for your help.
Attached Files
File Type: txt lol.txt (651 Bytes, 70 views)
  #12   Spotlight this post!  
Unread 02-12-2010, 03:14 PM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 7,734
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Send a message via AIM to Alan Anderson
Re: Labview Solenoid Programming

Quote:
Originally Posted by 3p1c w1n View Post
I attached the error message.
Don't try to build the broken project. Just click the "run" arrow and LabVIEW will be able to show you where it is broken.
  #13   Spotlight this post!  
Unread 02-12-2010, 04:29 PM
3p1c w1n 3p1c w1n is offline
Registered User
FRC #1529
 
Join Date: Jan 2010
Location: Indianapiolis
Posts: 53
3p1c w1n is an unknown quantity at this point
Re: Labview Solenoid Programming

Thanks for the help
I haven't gotten that stuff working yet but I did get the compressor running
Closed Thread


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
Programming Double Solenoid? Brandon_L NI LabVIEW 13 02-14-2009 09:33 AM
Solenoid Programming Issue. Dr. Manhattan Pneumatics 2 02-10-2009 04:42 PM
solenoid programming holty531 Programming 0 02-10-2008 03:17 PM
Programming a Solenoid Brigander Pneumatics 4 02-17-2007 01:06 PM
Solenoid Programming duckshepherd Pneumatics 1 02-17-2003 08:15 AM


All times are GMT -5. The time now is 03:26 AM.

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


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