Quote:
Originally Posted by Joe Ross
The compressor control loop should not be called in Begin. It should be called in periodic tasks, where it won't block anything. There is already an example of it in periodic tasks.
|
Where is this example? We had some issues with our compressor and were wondering if the compressor control loop is needed, because right now we don't have it anywhere.
We ran the the "Solenoid with Compressor Example.vi" and when we would enable the robot the compressor would turn on for less then half a second and then shut off. We could disable and the same behavior would repeat when we enabled. We verified that our all of our components where hooked up properly (we checked the spike, digital I/O port, compressor, etc). We got the following error message:
ERROR <Code> -44040 occurred at WPI_RelayCache.vi>>WPI_RelaySet.vi>>WPI_Compressor ControlLoop.vi>>Solenoid With Compressor Example.vi
<time>00:02:03 01/01/1970
FRC: The relay index is invalid.
We used Digital Module 1, Relay 2, DIO 2. The example shows the correct wiring on the front panel and we followed it exactly. In past years we have an no problems with the compressor, so this was particularly confusing.
So do we just need to add the new Compressor Control Loop vi?