View Single Post
  #9   Spotlight this post!  
Unread 29-01-2012, 17:10
NeatNit's Avatar
NeatNit NeatNit is offline
Alumni Programmer
FRC #1577 (Steampunk)
Team Role: Teacher
 
Join Date: Sep 2011
Rookie Year: 2011
Location: Israel
Posts: 60
NeatNit is an unknown quantity at this point
Re: COMPRESSOR PROGRAMMING HELP

Quote:
Originally Posted by cilginbilgin View Post
We got our compressor working by this code however our solenoids dont work. Any suggestions or recommendations??
It is generally bad practice to use Open inside teleop. Instead, use Open in Begin, then insert to a RefNum Registry Set and give it a name. In Teleop, use Refnum Registry Get. Then give it a command. See how the default code has the joystick and RobotDrive. All you have to do is use the same palette as what you're working with.

Try the Compressor With Cylinder example, see if it works. Don't forget to change the RT CompactRIO Target IP address by changing its properties.
Reply With Quote