View Single Post
  #2   Spotlight this post!  
Unread 16-02-2009, 15:44
Chaos in a Can Chaos in a Can is offline
Joel Spadin
FRC #1736 (Robot Casserole)
Team Role: Programmer
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Peoria, IL
Posts: 58
Chaos in a Can is an unknown quantity at this point
Send a message via MSN to Chaos in a Can
Re: Major compressor question

I'm not too sure about the solenoid example vi, but if you are using the advanced framework, the easiest way to set up the compressor is to put a Compressor Open.vi and then a Compressor Start.vi in Begin.vi.
If you add a CompressorDevRef to RobotData.ctl, you can then wire the CompressorDevRef of the compressor Open to the compressor Start and then into your RobotData in Begin.vi.
Then, place a Compressor Close.vi in your Finish.vi and wire the CompressorDevRef from RobotData into it.

If you are using the basic framework, place a Compressor Open.vi and a Compressor Start.vi to the left of the top while loop in Basic Robot Main.vi.
Place a Compressor Close.vi to the right of the loop (near Drive Close and Joystick Close).
Finally, wire the CompressorDevRef from Compressor Open to Compressor Start and wire the CompressorDevRef from Compressor Start through the while loop and out the other side to the Compressor Close.

You shouldn't have to to anything more than open the compressor and start it. It will handle itself if you open it with the correct pressure switch and relay channels.

Hope that helps!
__________________
2006 Xerox Creativity Award
2007 General Motors Industrial Design Award
2008 Judges' Award
2009 Chrysler Team Spirit Award

Reply With Quote