View Single Post
  #2   Spotlight this post!  
Unread 31-01-2010, 01:03
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Solenoid Breakouts?

Quote:
Originally Posted by iTHOS=awesome View Post
Our electronics team has decided to use the solenoid (sp?) breakout on the cRio this year. My question is ... how do you define a solenoid (sp?) and control it in C++?
You use the (big surprise... spoiler alert...) Solenoid class. Pass the channel (and optionally the module slot) to the constructor. Then call Set to set the value. Probably the simplest class in the library.

I'm guessing you posted this before looking at the library. Or did you have a specific question that you forgot to include?
Reply With Quote