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?
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: