Window motor moves only one way

I have hooked up a spike relay to a window motor. The spike relay is set up right electrically. In begin.vi I have set up an OPEN with a BOTH DIRECTIONS hooked up with the proper relay number.

In teleop I cannot get it to move the other way. I have included my teleop. I have tried changing buttons, changing which ones are FORWARD REVERSE and ON in my trying. I even tried typing in code that was identical to the robot last year that had the same window motor moving both ways. All with no luck.

Teleop.vi (37.9 KB)


Teleop.vi (37.9 KB)

You can give the Relay conflicting demands.
You tell it to go Forward and Reverse at the same time.
Maybe do something like the attached to avoid that issue.

You also created your input values incorrectly.
That’s what the red dot means.
Delete one and replace it by positioning the cursor over the input node, right-click and choose Create -> Constant.
You’ll get the same (looking) thing without the red dot. The problem that red dot introduces is that the enumerated word may not always mean what you think it should mean.

What colors do the Relay LEDs turn for Forward/Reverse/Off?

CascadeRelay.png


CascadeRelay.png

I got rid of all the dots and it still didn’t work. It turns out that it was a faulty PWM cord that would only send the reverse and not forward. (One of those brand new orange PWMs too. Go figure.)