Go to Post IRI: it's FIRSTmas in July! - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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-2010, 23:20
Robopanda6 Robopanda6 is offline
Registered User
FRC #2477
 
Join Date: Jan 2009
Location: Waipahu,HI
Posts: 18
Robopanda6 is an unknown quantity at this point
Relay

Whenever we try to activate our Relay with a button it tells me "Module in Slot 2 is not a Solenoid Module. Can someone please give a sample relay code? I would be very thankful.
__________________
"They say the struggle only sweetens the success"...I guess that's why I stayed in Robotics.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2010, 23:50
R.C.'s Avatar
R.C. R.C. is offline
2017... Oooh Kill em, Swerve!
AKA: Owner, WestCoast Products
FRC #1323 (MadTown Robotics)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Madera, CA
Posts: 2,175
R.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond repute
Re: Relay

Quote:
Originally Posted by Robopanda6 View Post
Whenever we try to activate our Relay with a button it tells me "Module in Slot 2 is not a Solenoid Module. Can someone please give a sample relay code? I would be very thankful.
Well do you have the solenoid breakout/module in slot 2? I do believe its suppose to be in Slot 8.

Can anyone confirm this?

-RC
__________________
R.C.
Owner, WestCoast Products || Twitter
MadTown Robotics Team 1323
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2010, 00:04
Robopanda6 Robopanda6 is offline
Registered User
FRC #2477
 
Join Date: Jan 2009
Location: Waipahu,HI
Posts: 18
Robopanda6 is an unknown quantity at this point
Re: Relay

Well we had it in Slot 8 and yes it is supposed to be there BUT whenever I try to run the button for the Spike Relay the output is telling me "Module in slot 2 is not a solenoid. Isn't that strange?
__________________
"They say the struggle only sweetens the success"...I guess that's why I stayed in Robotics.
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2010, 00:10
R.C.'s Avatar
R.C. R.C. is offline
2017... Oooh Kill em, Swerve!
AKA: Owner, WestCoast Products
FRC #1323 (MadTown Robotics)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Madera, CA
Posts: 2,175
R.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond repute
Re: Relay

Yes it is strange, but then again I'm not a programmer. Someone with some programming skills should chime in for your problem soon.

-RC
__________________
R.C.
Owner, WestCoast Products || Twitter
MadTown Robotics Team 1323
Reply With Quote
  #5   Spotlight this post!  
Unread 07-02-2010, 00:11
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: Relay

Quote:
Originally Posted by R.C. View Post
Well do you have the solenoid breakout/module in slot 2? I do believe its suppose to be in Slot 8.

Can anyone confirm this?

-RC
The solenoid module can be used in slot 7 or slot 8. The default is slot 8.

Quote:
Originally Posted by Robopanda6 View Post
Well we had it in Slot 8 and yes it is supposed to be there BUT whenever I try to run the button for the Spike Relay the output is telling me "Module in slot 2 is not a solenoid. Isn't that strange?
If you're trying to control a Spike, you should be using the Relay class, not the Solenoid class. Note that the Spike should be connected to the relay ports on the Digital Sidecar, not the Solenoid breakout board.
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
Reply With Quote
  #6   Spotlight this post!  
Unread 07-02-2010, 01:08
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Relay

also you could Creating it wrong...

This Correct
Solenoid S1 = Solenoid(1); //Port 1 / Module 8

This Correct
Solenoid S1 = Solenoid(8,1); //Port 1 / Module 8

Incorrect because slot 2 is not valid for the solenoid module
Solenoid S1 = Solenoid(2,1); //Port 1 / Module 2
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
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
C++ Relay Code? Happyisgood C/C++ 10 16-07-2009 14:54
Programming a relay in C++ Kage C/C++ 2 10-01-2009 17:51
Relay Commands Matt Krass Programming 6 18-02-2006 23:03
Relay Assignments MulletFish Programming 9 27-01-2005 14:15


All times are GMT -5. The time now is 09:39.

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