Go to Post Success is making a difference. - SlamminSammy [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 06-02-2013, 22:19
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
pneumatics help

ok so we have bean having problems with our code for our pneumatics, we have bean trying to set the coding in labview to have 3 solenoids to push out if we press and hold button 1,2, and3 on our log-stick controller. Thx for reading and any advice and pics of examples would help.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2013, 23:23
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: 9,112
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
Re: pneumatics help

Lots of LabVIEW examples are already right there for you to look at. When you launch LabVIEW, click the "Support" tab on the "FRC 2013 Getting Started" window. Then click the "Find FRC Examples..." choice. You'll find pneumatic sample code in the Pneumatics folder under FRC Robotics.

"Tutorial 7—Integrating Examples into Robot Code" tells you how to use the examples in your own program.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2013, 23:28
dsherw00d dsherw00d is offline
Registered User
FRC #0378
 
Join Date: Jan 2012
Location: Newfane NY
Posts: 44
dsherw00d is a jewel in the roughdsherw00d is a jewel in the roughdsherw00d is a jewel in the rough
Re: pneumatics help

As mentioned, there is an example in "help->find examples->pneumatics" The best one is probably "Solenoid with Compressor". Basically, for the Solenoid Set vi, you would use the joystick button for input.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2013, 23:50
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: pneumatics help

thx for the help I was able to get one working but for some reason the 2nd and 3rd arent
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2013, 00:06
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: 9,112
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
Re: pneumatics help

Show us the code that isn't doing what you want, and we'll probably be able to help you make it behave.
Reply With Quote
  #6   Spotlight this post!  
Unread 09-02-2013, 17:47
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: pneumatics help

I have 2 different versions that I have been trying. One is the separate vi and the other is the one with the begin, teleop (the compressor is in periodic tasks) and finish.

The first 2 are the separate vi and the other 3 are the begin teleop and finish.
Attached Thumbnails
Click image for larger version

Name:	solenoid 1.1.jpg
Views:	11
Size:	233.5 KB
ID:	13890  Click image for larger version

Name:	solenoid 1.2.jpg
Views:	21
Size:	196.3 KB
ID:	13891  Click image for larger version

Name:	solenoid 2.1.jpg
Views:	20
Size:	128.2 KB
ID:	13892  Click image for larger version

Name:	solenoid 2.2.jpg
Views:	25
Size:	148.0 KB
ID:	13893  Click image for larger version

Name:	solenoid 2.3.jpg
Views:	19
Size:	121.3 KB
ID:	13894  

Reply With Quote
  #7   Spotlight this post!  
Unread 10-02-2013, 16:41
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: 9,112
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
Re: pneumatics help

Don't spend any more time on the "separate vi" one. It's not going to be useful in your actual robot code.

What kind of solenoid valves are you using?

You say "Solenoid 1" works, but "Solenoid 2" and "Solenoid 3" do not? The code seems fine to me. The only thing special about 2 and 3 in your Teleop vi is that they are controlled by the second joystick. Is that joystick configured properly in the Driver Station's Setup tab? Click a button on it and verify that the second line in the joystick list reacts.

Do you see the appropriate LEDs on the NI 9472 module lighting up when you press a joystick button?

Is there something wired differently on the two solenoid valves that don't work? If you swap the connectors between outputs 4 and 5 on the Solenoid Breakout, does the problem follow the output pins, or does it stay with the physical solenoid valve?

Where does the power input to the Solenoid Breakout come from? If it's wired to a 12v branch from the Power Distribution Board, do all of your solenoid valves have 12v coils? It's possible that your first one is a 12v solenoid, but the other two are 24v solenoids.
Reply With Quote
  #8   Spotlight this post!  
Unread 10-02-2013, 17:47
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: pneumatics help

We tried out on taking the working around on the other plugs and we found out that it works so it must be a wire problee.Thx for all the help, if we fined any more problems with it ill post here again
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


All times are GMT -5. The time now is 12:02.

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