FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does Motor 5 label conflict exist?

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.

0 Kudos
Message 1 of 2
(4,626 Views)

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

h This isn't very dCan you provide the exact text of the error message?  In the Powerpoint file you simply wrote "Diagnostic message completed about Set message not being Defined (Begin.vi)."   This isn't very descriptive.

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.

0 Kudos
Message 2 of 2
(2,552 Views)