View Single Post
  #5   Spotlight this post!  
Unread 17-02-2010, 19:01
vidhur vidhur is offline
Registered User
FRC #2582
 
Join Date: Jan 2009
Location: lufkin
Posts: 2
vidhur is an unknown quantity at this point
Re: How do i program compressor

We also had many difficulties running the compressor example codes and our code. What worked for us in the code was to incorporate a teleop vi also.

In Begin:
Compressor open--->Compressor Start--->Compressor Refnum set

In Teleop:
Compressor Refnum Get---> Compressor Enabled

In Finish:
Compressor Refnum Get--->Compressor Stop--->Compressor Close

From my understanding you need to have the compressor enabled vi in order to run the compressor. Some teams open it in the begin vi before the Refnum set, but mine works fine in the teleop

If it still doesnt work, I have some tests to help you pinpoint the problem.