Go to Post Simply. Minimize. Reduce. It's a good engineering rule, and an even better management one. - Tom Line [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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: 190
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"?

 


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 22:43.

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