![]() |
Pneumatics Code Help?? - Errors??
Hello CD,
I am trying to get our Pneumatic Gear Shifting Code to work, but every time I deploy to the CRIO, I get this output. Code:
init: |
Re: Pneumatics Code Help?? - Errors??
Is the SOlenoid module in the correct slot? IIRC it must be in slot 3, even on the 8 slot cRIOs running 2012 firmware.
|
Re: Pneumatics Code Help?? - Errors??
Quote:
|
Re: Pneumatics Code Help?? - Errors??
Quote:
|
Re: Pneumatics Code Help?? - Errors??
Quote:
|
Re: Pneumatics Code Help?? - Errors??
The error that you're getting has to do with your code. You are initializing the object on that port more than once. Try and find where you initialize the object for the solenoid and find out why that code is being run more than once. (If you're not familiar with instances in java, I'd suggest you look into it - quick summary - 'objectName = new Object()' is the initialization of the object)
Once you find it, I'd suggest using singleton instances of all physical components of your robot. Works much better and prevents errors like this. Example of singleton instance : Code:
RobotDrive driveInstance |
| All times are GMT -5. The time now is 09:14. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi