Go to Post I think its great that some teams are 100% student built; but I would also hope that 100% of their students are mentor advised. - =Martin=Taylor= [more]
Home
Go Back   Chief Delphi > Technical > Pneumatics
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 09-02-2011, 22:25
implosionprez's Avatar
implosionprez implosionprez is offline
Registered User
AKA: Ty
FRC #2484 (Team Implosion)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Woods Cross, Utah
Posts: 74
implosionprez is an unknown quantity at this point
Solenoid Breakout Module Programming

Our team has a solenoid breakout in port 8 of the cRio, and port 8 is the default port while programming the solenoids (c++). We then plugged another solenoid breakout module into port 7 of the cRio, but we can't figure out how to program the solenoid breakout in port 7, since port 8 is the default. Can anyone give us instructions to program, so we can have both solenoid breakouts (cRio ports 7 & 8) working? Thanks!
__________________
  #2   Spotlight this post!  
Unread 09-02-2011, 22:41
Garten Haeska's Avatar
Garten Haeska Garten Haeska is offline
Registered User
AKA: Garty
FRC #2861 (Infinity's End)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Lake City, MN
Posts: 219
Garten Haeska has a spectacular aura aboutGarten Haeska has a spectacular aura about
Re: Solenoid Breakout Module Programming

i dont have my code right now but i belive its something like

mySolenoid = extend(1);
mySolenoid = retract(2);
  #3   Spotlight this post!  
Unread 09-02-2011, 22:46
implosionprez's Avatar
implosionprez implosionprez is offline
Registered User
AKA: Ty
FRC #2484 (Team Implosion)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Woods Cross, Utah
Posts: 74
implosionprez is an unknown quantity at this point
Re: Solenoid Breakout Module Programming

What we can't figure out is how to program through port 7 of the cRio, instead of port 8 of the cRio.
__________________
  #4   Spotlight this post!  
Unread 09-02-2011, 22:58
justbuchanan justbuchanan is offline
Registered User
FRC #3344
 
Join Date: Jan 2011
Location: Peachtree City, GA
Posts: 2
justbuchanan is an unknown quantity at this point
Re: Solenoid Breakout Module Programming

There are two constructors for the solenoid class:

Solenoid(UINT32 channel);
Solenoid(UINT32 slot, UINT32 channel);

To use a non-default cRIO port, you must use the second constructor. The slot tells the solenoid which port the breakout is in the cRIO.

example:
Solenoid *mySolenoid = new Solenoid(7, 1);
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 11:26.

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