OCCRA
Go to Post We're basically using a two step process: 1. Smoke 2. Mirrors - Tom Bottiglieri [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 02-12-2009, 06:11 PM
Brandon_L's Avatar
Brandon_L Brandon_L is offline
Endangered Whale Conservation Prog.
AKA: Brandon Liatys
FRC #2495 (Hamilton West Robotics)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Hamilton, NJ
Posts: 1,084
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Programming Double Solenoid?

We've attached a picture of our labview code. Its a different loop from the main robot loop.


Here are the problems we're having:
-We're getting the light on the cRIO to go on but the solenoid doesn't activate
-We've searched through other topics and tried different things and nothing seems to work.
-When we look inside the solenoid set subVI while running the code the channel would switch between 7 and 10 rapidly....there is no 10 on the solenoid module, it only goes up to 8!!

Any help appreciated!
Attached Thumbnails
Click image for larger version

Name:	labveiw.JPG
Views:	153
Size:	46.4 KB
ID:	7416  
__________________
"Success consists of going from failure to failure without loss of enthusiasm." - Winston Churchill
2007-2014: FRC2495 - Hamilton West Robotics
2012-2013: FRC3929 - Atomic Dragons
2013-2014: MAR Volunteer
2014 Offseason Schedule: Monty Madness, H.E.R.E., MidKnight Mayhem, Brunswick Eruption, Duel on the Delaware
Reply With Quote
  #2   Spotlight this post!  
Unread 02-12-2009, 06:37 PM
Greg McKaskle Greg McKaskle is offline
Registered User
no team (Team NI)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 3,925
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Programming Double Solenoid?

For safety reasons, the FPGA image that controls the I/O will not do much without the DS communication and the ability to disable the robot from there. So building quick VIs like yours that do WPI I/O will not work like they would in a normal NI system. I believe that if you drop the Start Communication VI in parallel that stuff will work.

I can't explain why you are seeing funny values for the solenoid.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 02-12-2009, 07:22 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 7,838
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Programming Double Solenoid?

It may not be the problem here, but you should get in the habit of using the enumerated types for the input ports rather then numerical constants. You should try to avoid the red coercion dots, unless you really mean it.

The easiest way to do this is to always right click on the input terminal and select create constant.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-12-2009, 10:45 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,809
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: Programming Double Solenoid?

Quote:
Originally Posted by Brandon_L View Post
-We're getting the light on the cRIO to go on but the solenoid doesn't activate
What light are you referring to?
Reply With Quote
  #5   Spotlight this post!  
Unread 02-13-2009, 06:30 AM
Brandon_L's Avatar
Brandon_L Brandon_L is offline
Endangered Whale Conservation Prog.
AKA: Brandon Liatys
FRC #2495 (Hamilton West Robotics)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Hamilton, NJ
Posts: 1,084
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: Programming Double Solenoid?

Quote:
Originally Posted by Greg McKaskle View Post
For safety reasons, the FPGA image that controls the I/O will not do much without the DS communication and the ability to disable the robot from there. So building quick VIs like yours that do WPI I/O will not work like they would in a normal NI system. I believe that if you drop the Start Communication VI in parallel that stuff will work.

I can't explain why you are seeing funny values for the solenoid.

Greg McKaskle
We've been hearing like thousands of people saying that but what is the DS communication?
__________________
"Success consists of going from failure to failure without loss of enthusiasm." - Winston Churchill
2007-2014: FRC2495 - Hamilton West Robotics
2012-2013: FRC3929 - Atomic Dragons
2013-2014: MAR Volunteer
2014 Offseason Schedule: Monty Madness, H.E.R.E., MidKnight Mayhem, Brunswick Eruption, Duel on the Delaware
Reply With Quote
  #6   Spotlight this post!  
Unread 02-13-2009, 08:10 AM
Greg McKaskle Greg McKaskle is offline
Registered User
no team (Team NI)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 3,925
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Programming Double Solenoid?

The DS communication contains the tele/auto and enable/disable bits, joystick values, digital and analog in values that the robot program is then able to operate on. More importantly, if the robot doesn't hear from the DS about ten times a second, the robot FPGA shuts down the outputs. This means that if someone unplugs and DS, unplugs a router, or if the robot goes out of range of the wireless, the robot will shutdown. If also means that the DS kill switch is always in the loop when doing outputs.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 02-13-2009, 12:09 PM
Brandon_L's Avatar
Brandon_L Brandon_L is offline
Endangered Whale Conservation Prog.
AKA: Brandon Liatys
FRC #2495 (Hamilton West Robotics)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Hamilton, NJ
Posts: 1,084
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: Programming Double Solenoid?

Ok so that explanes what it is, but where is it and how do we put it into our block diagram.
__________________
"Success consists of going from failure to failure without loss of enthusiasm." - Winston Churchill
2007-2014: FRC2495 - Hamilton West Robotics
2012-2013: FRC3929 - Atomic Dragons
2013-2014: MAR Volunteer
2014 Offseason Schedule: Monty Madness, H.E.R.E., MidKnight Mayhem, Brunswick Eruption, Duel on the Delaware
Reply With Quote
  #8   Spotlight this post!  
Unread 02-13-2009, 12:30 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,809
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: Programming Double Solenoid?

Quote:
Originally Posted by Brandon_L View Post
Ok so that explanes what it is, but where is it and how do we put it into our block diagram.
The Driver Station communication is already handled for you in both the Basic and Advanced templates. If you start with one of those, you shouldn't need to add it anywhere.

Greg's comment about needing it was directed at anyone who was trying to build a quick VI from scratch for testing something simple. You find the Start Communication VI in the Driver Station palette. You put it anywhere outside all loops.
Reply With Quote
  #9   Spotlight this post!  
Unread 02-13-2009, 04:32 PM
Brandon_L's Avatar
Brandon_L Brandon_L is offline
Endangered Whale Conservation Prog.
AKA: Brandon Liatys
FRC #2495 (Hamilton West Robotics)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Hamilton, NJ
Posts: 1,084
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: Programming Double Solenoid?

Alright, we found out the programming wasn't the problem. Its something with the cRIO. In the programming we went to channel 7 and 5 and on the actual relay pins were on 6 and 4 and it magically works. We thought that then if we did 2 in the programming then it would be 1 on the relays and we tested it, thinking it was programming channel -1= relay and that doesn't work... We're completely clueless. Has this happened to anyone else and if it did is there a chart as to what is what?
__________________
"Success consists of going from failure to failure without loss of enthusiasm." - Winston Churchill
2007-2014: FRC2495 - Hamilton West Robotics
2012-2013: FRC3929 - Atomic Dragons
2013-2014: MAR Volunteer
2014 Offseason Schedule: Monty Madness, H.E.R.E., MidKnight Mayhem, Brunswick Eruption, Duel on the Delaware

Last edited by Brandon_L : 02-13-2009 at 04:40 PM.
Reply With Quote
  #10   Spotlight this post!  
Unread 02-13-2009, 04:47 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 7,838
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Programming Double Solenoid?

Quote:
Originally Posted by Brandon_L View Post
Alright, we found out the programming wasn't the problem. Its something with the cRIO. In the programming we went to channel 7 and 5 and on the actual relay pins were on 6 and 4 and it magically works. We thought that then if we did 2 in the programming then it would be 1 on the relays and we tested it, thinking it was programming channel -1= relay and that doesn't work... We're completely clueless. Has this happened to anyone else and if it did is there a chart as to what is what?
I'm going to guess you didn't fix the type coercion that I mentioned above.
Reply With Quote
  #11   Spotlight this post!  
Unread 02-13-2009, 04:50 PM
Brandon_L's Avatar
Brandon_L Brandon_L is offline
Endangered Whale Conservation Prog.
AKA: Brandon Liatys
FRC #2495 (Hamilton West Robotics)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Hamilton, NJ
Posts: 1,084
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: Programming Double Solenoid?

There the right types, no red dots.
__________________
"Success consists of going from failure to failure without loss of enthusiasm." - Winston Churchill
2007-2014: FRC2495 - Hamilton West Robotics
2012-2013: FRC3929 - Atomic Dragons
2013-2014: MAR Volunteer
2014 Offseason Schedule: Monty Madness, H.E.R.E., MidKnight Mayhem, Brunswick Eruption, Duel on the Delaware
Reply With Quote
  #12   Spotlight this post!  
Unread 02-14-2009, 08:17 AM
Brandon_L's Avatar
Brandon_L Brandon_L is offline
Endangered Whale Conservation Prog.
AKA: Brandon Liatys
FRC #2495 (Hamilton West Robotics)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Hamilton, NJ
Posts: 1,084
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: Programming Double Solenoid?

Sorry to be a nudge and bump but we really need to get this done today.
__________________
"Success consists of going from failure to failure without loss of enthusiasm." - Winston Churchill
2007-2014: FRC2495 - Hamilton West Robotics
2012-2013: FRC3929 - Atomic Dragons
2013-2014: MAR Volunteer
2014 Offseason Schedule: Monty Madness, H.E.R.E., MidKnight Mayhem, Brunswick Eruption, Duel on the Delaware
Reply With Quote
  #13   Spotlight this post!  
Unread 02-14-2009, 08:43 AM
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Programming Double Solenoid?

Can you post the actual VI or VIs in question?

Do you still see the channel switching to 7 and 10 inside the Solenoid Set vi?
Reply With Quote
  #14   Spotlight this post!  
Unread 02-14-2009, 09:33 AM
SmithWest SmithWest is offline
Registered User
FRC #2495 (Hamilton West Robotics)
Team Role: Teacher
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Hamilton NJ
Posts: 9
SmithWest is an unknown quantity at this point
Re: Programming Double Solenoid?

I've been working with Brandon on this issue and we think we solved it today.

The solenoid channels we were feeding into our code didn't match the pin numbers on the solenoid breakout. Either we are doing something weird in the code that we are not aware of, or we missed documentation on this translation. We did some trial and error testing of which reference in the code activated which light on the cRIO 9472 and discovered this:

In Labview assigning channels 1 and 2 produced no result on the cRIO. 3 linked to pin 8, 4 to 7, 5 to 6, 6 to 5, and so on.

We now have joystick buttons operating all of our solenoids. Thanks to everyone who advised us on this problem. All suggestions helped us better understand this system.
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
double solenoid diodes? ay2b Pneumatics 3 01-30-2008 03:50 PM
Double Solenoid Wiring blindguyinanorg Pneumatics 7 10-09-2004 10:55 PM
Double Solenoid Wires Lord Nerdlinger Pneumatics 4 02-17-2004 06:54 PM
double solenoid gail OCCRA 0 10-11-2002 06:42 PM
Pneumatics: Double Solenoid archiver 2001 13 06-23-2002 10:57 PM


All times are GMT -5. The time now is 11:49 PM.

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