OCCRA
Go to Post MAVERICKS, do ride horses...all while building robots. They also build horses. - Corey Balint [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Events   CD-Media   CD-Spy   FRC-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 01-04-2012, 08:48 PM
Wildcats1378 Wildcats1378 is offline
Registered User
no team
 
Join Date: Jan 2012
Rookie Year: 2011
Location: hawaii
Posts: 93
Wildcats1378 is an unknown quantity at this point
Labview solenoids...

Hello,
Our team is just trying to prepare for the upcoming season (everyone in robotics last year has graduated, so were stuck learning on our own). We have
Anaged to get most things working on the old robot (camera, driving, etc). But we are having some trouble with solenoids. We have gotten the air compressir working, but the solenoids are not. I cannot figure it out.

Basically, we opened the solenoids in begin, set the registry to solenoids 1/2, then in teleop, used solenoid get then set. We want to use a button so i put a button from the joystick and wired it into the splenoids get in the value section. Then we closed them in close.
They may nit be wired right, but weve double checked and all.

Also, the joystick open vi in begin has started blinking at us after we run the program. I honestly have no idea what it means, but we can't do anythig when it does that.

Any help would be greatly appreciated. Sorry for the bad punctuation, as i am typing using a phone. Thank you!
Reply With Quote
  #2   Spotlight this post!  
Unread 01-04-2012, 08:53 PM
plnyyanks's Avatar
plnyyanks plnyyanks is offline
I do stuff.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #1418 (Vae Victus)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Washington, DC
Posts: 719
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Labview solenoids...

Can you post a screenshot of your code? It's much easier to help you if I can see what you've written.
__________________
Phil Lopreiato
"It's a hardware problem"
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #3   Spotlight this post!  
Unread 01-04-2012, 09:06 PM
Wildcats1378 Wildcats1378 is offline
Registered User
no team
 
Join Date: Jan 2012
Rookie Year: 2011
Location: hawaii
Posts: 93
Wildcats1378 is an unknown quantity at this point
Re: Labview solenoids...

Okay, since we were lacking computers with internet, i took a picture with my phone. I will update it later when i get home.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-04-2012, 09:48 PM
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: Labview solenoids...

You could also print screen, paste in Paint, save as an image, and save it on a flash drive that you bring home.

Your joystick open VI is blinking? If I'm not wrong, this is supposed to mean that something is wrong with the VI and it needs to stop running. How are you running your code? Do you click the run button in Robot Main.vi with the robot connected to the computer over the network? Do you have the project window open? If not, the VI might try to run on your computer, instead of the robot. And the computer is not the cRIO, so things won't work the way the VIs are meant to.
That is what it initially sounds like, please describe more, thanks.
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
Reply With Quote
  #5   Spotlight this post!  
Unread 01-04-2012, 10:08 PM
Wildcats1378 Wildcats1378 is offline
Registered User
no team
 
Join Date: Jan 2012
Rookie Year: 2011
Location: hawaii
Posts: 93
Wildcats1378 is an unknown quantity at this point
Re: Labview solenoids...

Well, it's a bit strange really. When I run the program (through robot main), it normally works. Randomly, it has this problem (the flashing) and the joystick no longer works. The program will still download fine and the robot will recieve the code and I can enable it. So its definantly connected to the robot and sending the code there.



There is the code for Teleop.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-05-2012, 02:20 AM
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 924
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Labview solenoids...

A flashing VI usually means you have hit a breakpoint in your code. Make sure the VI is not highlighted red before you run your code. That means you have a breakpoint set.

If you wire the solenoid directly to the button, then make sure you are holding the button down when you are testing. Also you can look at the LEDs on the NI 9472 as you press the joystick buttons to tell if it may be an electrical issue. Also make sure there are no errors reported to your driver station.
Reply With Quote
  #7   Spotlight this post!  
Unread 01-05-2012, 05:19 PM
Wildcats1378 Wildcats1378 is offline
Registered User
no team
 
Join Date: Jan 2012
Rookie Year: 2011
Location: hawaii
Posts: 93
Wildcats1378 is an unknown quantity at this point
Re: Labview solenoids...

Okay, I've been working on it a little.

Turns out we had the solenoid adapter plugged in the wrong one. Haha. Massive fail. So I plugged it in the right one, and tried using the buttons. The leds on the 9472 light up, as well as the actual solenoid port. Buuuut the pistons don't work. If I hit the manuel release for the solenoid, it works, so air is running through the system. The button works, no electrical problems, or driverstation errors.

What could it possibly be?
Reply With Quote
  #8   Spotlight this post!  
Unread 01-05-2012, 05:33 PM
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,596
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Labview solenoids...

Measure the voltage at the solenoids and compare it what the solenoid's coil is expecting. It is possible that you either didn't power the module correctly, or are driving a 24V coil with 12V.
Reply With Quote
  #9   Spotlight this post!  
Unread 01-05-2012, 07:01 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,452
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 solenoids...

The power/ground to the solenoid could also be reversed and get a similar reaction. A simple test for that possibility is to reverse the connector at the solenoid module. Having it backwards doesn't harm the solenoid, and if it has an indicator light, then the light will work, but the solenoid won't move.

Another potential cause depends on the type of solenoid you are using.
Older plastic Festos had two conflicting wiring schemes.
What model is it?
__________________
The mind sees only what the mind is prepared to comprehend - Henri Bergson
358 Beta notes & results

Last edited by Mark McLeod : 01-05-2012 at 07:08 PM.
Reply With Quote
  #10   Spotlight this post!  
Unread 01-05-2012, 08:01 PM
Wildcats1378 Wildcats1378 is offline
Registered User
no team
 
Join Date: Jan 2012
Rookie Year: 2011
Location: hawaii
Posts: 93
Wildcats1378 is an unknown quantity at this point
Re: Labview solenoids...

Actually it works now. Turns out it was the wrong power cord. Thanks for the help everyone! Really appreciate it!
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 03:31 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