So, we are using two limit switches for our bridge tipper. Our tipper is powered by one CIM motor, controlled by a victor. In it’s normal, upright position one limit switch is being pressed, while the other remains open. When it is down, it’s the opposite. We have the switches wired on NO to DIOs 1 and 2 on the Digital Sidecar. In LabView, button 7 on our joystick is wired to a case structure as well as the two DIOs. We have another case structure inside of that case structure so the code is:
-If button 7 is not being pressed, motor value is 0.
-If button 7 is being pressed, run motor value at 1 until limit switch 2 is hit.
-If button 7 is released while tipper is hitting switch 2, run motor value at -1 until limit switch 1 is hit.
But when we go to test it, we push the button on the joystick (we tried pushing all the buttons to make sure we didn’t accidentally wire it to the wrong one) and nothing happens. I don’t understand where we went wrong. Also, the light on the Victor blinks orange all the time, one time it turned solid until we shut the bot off, but then started blinking again when we turned it back on.