Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Relay (http://www.chiefdelphi.com/forums/showthread.php?t=82089)

Robopanda6 06-02-2010 23:20

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.

R.C. 06-02-2010 23:50

Re: Relay
 
Quote:

Originally Posted by Robopanda6 (Post 914890)
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

Robopanda6 07-02-2010 00:04

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?

R.C. 07-02-2010 00:10

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

MattD 07-02-2010 00:11

Re: Relay
 
Quote:

Originally Posted by R.C. (Post 914900)
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 (Post 914910)
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.

Kingofl337 07-02-2010 01:08

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


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi