program compressor in labview

We are working on our compressor and program it in labview.

We put the
Compsr Open, CompsrRefNum Registry Set and Compsr Start in Begin.vi.
In periodic.vi, removed the disabled structure.
In finish.vi, add CompsrRefNum Registry Set, Compsr Stop and Compsr Close.

I’m not sure do we need to use “Compsr Enabled” module as in labview examples for compressor? If yes, where should we use it?







The Enable isn’t necessary.

Did you update the name for the Compressor used in Periodic Tasks?

You don’t need Enable unless you are trying to bypass the spike relay.

As a word of warning there have been many teams, including my own, who have had issues with the default ControlLoop VI not working. In the driver station it returns an error of invalid relay index. If you are not working with an unbagged robot you might have trouble shoot this issue at the competition. :eek:

Bookmark these two links to help you later.
http://www.chiefdelphi.com/forums/showthread.php?t=100400&highlight=compressor+loop

and the one we needed to right custom code: