03-17-2010 08:59 AM
Last evening I added a Motor 5 / PWM5 definition to add the joystick motor control example and the FRC driver station diagnostic
field complains of an error associated with this addition. I added this function similiarly to existing PWM3 and PWM4 definitions.
I have had similiar problems with an earlier build. I will attach a powerpoint with the two pieces of software I added.
Any help would be appreciated on telling me what I did wrong.
03-17-2010 09:52 AM
Powerpoint slides are not an ideal way to share LabVIEW code. If possible, could you either upload your VI directly, or use a PNG image (you can do this easily using mspaint)?
With all that said, it looks to me like the problem is that you close the reference in TeleOp, but you should be closing it in Finish. Your TeleOp executes once, then closes the motor reference. The next iteration of TeleOp tries to look up the Motor reference again, but you've already closed it so the reference is no longer valid.