Go to Post A lot of people forget this when posting, but your posts here on ChiefDelphi will more or less be here forever. Do you really want that post you just be made to be on the Internet forever?... Post wisely... - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 05-03-2009, 22:35
bobwrit's Avatar
bobwrit bobwrit is offline
//No Comment
AKA: ...
FRC #1977 (Loveland High Robotics)
Team Role: Alumni
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Somewhere
Posts: 298
bobwrit is just really nicebobwrit is just really nicebobwrit is just really nicebobwrit is just really nicebobwrit is just really nice
Spike --- Labview

I'm having trouble figuring out how to program control into a spike that has a motor attached to it. How is this done?
__________________

FRC Team 1977 Alumni

Has Attended:2008 Colorado regional
2009 Colorado Kickoff
2009 Colorado Regional
2010 Colorado Kickoff
2010 Colorado Regional




The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka!"(I found it!), but rather, "Hmm.... That's funny" ---Isaac Asimov
Chance favors the prepared mind ---Louis Pasteur
And you can tell me, that I can't make a diffrence because I'm just one, but one is all it takes to start it. And you can tell me, that I can't change the world because I'm too young, but I wont stand here and be your target. ---FM Static
Reply With Quote
  #2   Spotlight this post!  
Unread 06-03-2009, 20:24
Pausert Pausert is offline
Registered User
FRC #1727 (REX)
Team Role: Leadership
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Maryland
Posts: 69
Pausert is an unknown quantity at this point
Re: Spike --- Labview

Use the Relay pallet under Digital Output. Then place constants that would go to "Set Relay" in a case structure, one in the True case and one is the False case. Wire the constants to the node on "Set Relay" and the boolean node on the case structure to a button. If you don't want a button, wire some other boolean input in instead.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2010, 17:12
bigdylmccoy's Avatar
bigdylmccoy bigdylmccoy is offline
Registered User
FRC #3171
 
Join Date: Feb 2010
Location: Long Island
Posts: 1
bigdylmccoy is an unknown quantity at this point
Re: Spike --- Labview

Use the Relay pallet under Digital Output. Then place constants that would go to "Set Relay" in a case structure, one in the True case and one is the False case. Wire the constants to the node on "Set Relay" and the boolean node on the case structure to a button. If you don't want a button, wire some other boolean input in instead.
Already tried this and the spike relay is still giving us problems. We have 4 motors for our wheels and one more for our kicking mechanism. We seem to be having problems with coding our kicking mechanism. LabView keeps asking if we want to run it in Victor or Jaguar, which we don't, we want to run it through the Spike relay.
Please help.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2010, 19:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Spike --- Labview

Here's a generic example from last year.
You don't open a Motor when it gets used through a Spike. Motors are only if you use it with a Jaguar or Victor speed controller.

This year the opens get moved to Begin.vi and the Closes to Finish.vi.
The While forever loop is also not used in this year's program structure.

Some other examples over here.
Attached Thumbnails
Click image for larger version

Name:	RelayExample.jpg
Views:	914
Size:	95.7 KB
ID:	8478  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-02-2010 at 19:33.
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2011, 21:41
TEAM-3871 TEAM-3871 is offline
Registered User
FRC #3871
 
Join Date: Feb 2011
Location: US
Posts: 10
TEAM-3871 is an unknown quantity at this point
Re: Spike --- Labview

Quote:
Originally Posted by Mark McLeod View Post
Here's a generic example from last year.
You don't open a Motor when it gets used through a Spike. Motors are only if you use it with a Jaguar or Victor speed controller.

This year the opens get moved to Begin.vi and the Closes to Finish.vi.
The While forever loop is also not used in this year's program structure.

Some other examples over here.
Hey I am having the same problem i am using a smiler looking code the only difference is i am using 2 button and its not working any ideas?
Reply With Quote
  #6   Spotlight this post!  
Unread 16-02-2011, 22:58
Wolfgang Wolfgang is offline
Registered User
AKA: Mehmed
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Denver
Posts: 47
Wolfgang is an unknown quantity at this point
Re: Spike --- Labview

I am not entirely sure, but I believe you can program the spike through a DIO module using the Digital Output palette.
Reply With Quote
  #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
  #8   Spotlight this post!  
Unread 17-02-2011, 10:34
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Spike --- Labview

Quote:
Originally Posted by vhcook View Post
I'm attaching a picture of a random sample along those lines (pardon the excess white space - my machine is fighting me tonight).
The screenshot you attached has very low resolution and is very difficult to read.

I think this screenshot is similar to what you attached.


Reply With Quote
  #9   Spotlight this post!  
Unread 17-02-2011, 14:45
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 Ether View Post
The screenshot you attached has very low resolution and is very difficult to read.

I think this screenshot is similar to what you attached.

Sorry about that, I was using the wrong tool, with terrible results. Your screenshot is very similar to what I was trying to show, except I had Enums for Forward, Reverse, and Stop feeding into the selects, and the output went into a Relay Set VI.
__________________


Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
spike jfrank Programming 4 16-02-2008 13:48
Banebot 64 to 1 on Spike? falconmaster Motors 7 15-01-2007 22:12
Spike Connection Gal Longin Control System 4 12-01-2005 13:59
solenoid/spike greencactus3 OCCRA Q&A 1 11-09-2004 09:54
spike great_one411 Electrical 2 06-02-2003 09:10


All times are GMT -5. The time now is 10:42.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi