Go to Post It's cool when good things happen to good people. :) - Rich Kressly [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-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 18-02-2013, 21:12
RoboCat2005 RoboCat2005 is offline
Registered User
AKA: Catlin Level
FRC #3659 (Mighty Patriots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2001
Location: Miami, FL
Posts: 35
RoboCat2005 is a name known to allRoboCat2005 is a name known to allRoboCat2005 is a name known to allRoboCat2005 is a name known to allRoboCat2005 is a name known to allRoboCat2005 is a name known to all
Solenoid Programming Help

Alright I have looked all through the threads and find where this problem has come up, and that it all gets solved in the code but no specifics on the fix.

Our situation is that the NI-9472 solenoid, in either slot 3 or 7 of the 8 slot cRio, none of the lights come on and when the code is ran an error code of solenoid module is not present.

We are using Java, We think the code is not right and are pretty sure we just dont have it wrote properly. Can anyone help us. This is our last thing we need to test before bagging. Thanks for any and all help.
__________________
FRC Team 3659 Mighty Patriots- Mentor/Drive Team Coach(2015-)
FRC Team 3345 Metal Jackets- Build Team Mentor (2012-2014)
FRC Team 2969 Hurricane Robotics - Lead Mentor/ Drive Team Coach (2011/2012 seasons)
FRC Team 399 Eagle Robotics - Student Alumni (2002-2005)


2011 Alamo Regional - Xerox Creativity Award(2969), Referee
2012 Alamo Regional - Quarter Finalist
2012 Lonestar Regional -Semi-Finalist
2012 Lonestar Regional -Xerox Creativity Award Winners
  #2   Spotlight this post!  
Unread 19-02-2013, 12:54
kylelanman's Avatar
kylelanman kylelanman is offline
Programming Mentor
AKA: Kyle
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Tremont Il
Posts: 189
kylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to all
Re: Solenoid Programming Help

You may be aware of this but the module number you feed in is relative to the number of Solenoid cards you have. It is not the slot number. We ran into this issue. We had a second Solenoid card in slot 4 and were getting the error. When trying to create a solenoid like this.

Code:
new Solenoid(4, 1);
In reality we had to use.

Code:
new Solenoid(2, 1);
*Note I don't have the code in front of me. It is possible the number is 0 based in which case it would 1 not 2.

Hope this helps.
__________________
"May the coms be with you"

Is this a "programming error" or a "programmer error"?

  #3   Spotlight this post!  
Unread 19-02-2013, 14:38
Iaquinto.Joe's Avatar
Iaquinto.Joe Iaquinto.Joe is offline
RPI 2018
AKA: Joe Iaquinto
FRC #0308 (The Monsters)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2011
Location: United States
Posts: 166
Iaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the roughIaquinto.Joe is a jewel in the rough
Re: Solenoid Programming Help

Have you tried reimaging your crio?
__________________
4 year 2011 - 2014 FRC team 308 member, Lead Programmer - C++ / LabVIEW

3 year 2011, 2013, 2014 OCCRA member, Co-Captain OCCRA team 308
  • OCCRA Engineering Excellence - Waterford Kettering 2013
  • Innovation in Control - 2011
  • Quality award- Northville 2012
  • Engineering Excellence- Howell 2014
  • Innovation in Controls- Livonia 2014
  #4   Spotlight this post!  
Unread 19-02-2013, 14:56
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: Solenoid Programming Help

Quote:
Originally Posted by kylelanman View Post
*snip*

*Note I don't have the code in front of me. It is possible the number is 0 based in which case it would 1 not 2.

Hope this helps.
You're correct, it indexes at 1. The second solenoid module is 2.
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


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

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