View Single Post
  #2   Spotlight this post!  
Unread 19-02-2010, 18:31
oddjob oddjob is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Earth
Posts: 118
oddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to behold
Re: Pneumatics Code Questions

The solenoid module goes into slot 8 on the cRIO by default. If you have a second solenoid module, put that into slot 7. Every solenoid connected to one module has to operate on the same voltage e.g. all 12V or all 24V.

Code:
  Solenoid *m_solenoid_1;

...


  m_solenoid_1 = new Solenoid(1);
That code assumes the solenoid module is in slot 8. You only need to two argument version if you are also using slot 7.
Reply With Quote