View Single Post
  #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);