We are succesfully using two PCMs, with Java.
Quote:
Originally Posted by alambert14
However, when I upload our code to the roboRIO, and enable the robot, it says
Unhandled exception: edu.wpi.first.wpilibj.util.AllocationException: Solenoid channel 0 on module 1 is already allocated at [edu.wpi.first.wpilibj.Solenoid.initSolenoid(Soleno id.java:41)...
I have not allocated that channel anywhere in the code, and it gives the same error no matter what module ID I use or channel number.
|
If you keep reading through the trace-back from the exception, it will show what line of your code it thinks is re-allocating channel 0 on module 1. It's possible it's somewhere in your code that you forgot about.