View Single Post
  #7   Spotlight this post!  
Unread 16-02-2011, 23:31
vhcook's Avatar
vhcook vhcook is online now
Reader of Things
AKA: Victoria
FRC #1939 (Kuh-nig-its)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Kansas City, MO
Posts: 546
vhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond repute
Re: Spike --- Labview

Quote:
Originally Posted by Wolfgang View Post
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).
Attached Thumbnails
Click image for larger version

Name:	two-buttonRelayMotor.png
Views:	206
Size:	23.4 KB
ID:	10154  
__________________


Reply With Quote