Quote:
Originally Posted by Wolfgang
I am not entirely sure, but I believe you can program the spike through a DIO module using the Digital Output palette.
|
No, you definitely want to program it using the Relay VIs, as mentioned earlier. Using those VIs, you can set the relay to Forward, Reverse, or Off, rather than the -1 to 1 range you'd use for a Jaguar or Victor under PWM control. (Technically also there is also an On setting, although I'm not entirely clear what effect that would have on a motor and am disinclined to test it. I think it connects both outputs to power, which probably isn't going to do anything good.)
The page Mark linked to has some lovely examples.
TEAM-3871, can you explain a little further what you are doing with the two buttons? If you're just trying to have it go forward when button1 is pushed, reverse when button2 is pushed, and off when neither is pushed, you should be able to get there using either nested Cases or a couple of Select VIs. I'm attaching a picture of a random sample along those lines (pardon the excess white space - my machine is fighting me tonight).