Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Spike --- Labview (http://www.chiefdelphi.com/forums/showthread.php?t=75533)

bobwrit 05-03-2009 22:35

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?

Pausert 06-03-2009 20:24

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.

bigdylmccoy 02-02-2010 17:12

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.

Mark McLeod 02-02-2010 19:29

Re: Spike --- Labview
 
1 Attachment(s)
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.

TEAM-3871 16-02-2011 21:41

Re: Spike --- Labview
 
Quote:

Originally Posted by Mark McLeod (Post 912103)
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 :confused: any ideas?

Wolfgang 16-02-2011 22:58

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.

vhcook 16-02-2011 23:31

Re: Spike --- Labview
 
1 Attachment(s)
Quote:

Originally Posted by Wolfgang (Post 1024817)
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).

Ether 17-02-2011 10:34

Re: Spike --- Labview
 
Quote:

Originally Posted by vhcook (Post 1024841)
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.



vhcook 17-02-2011 14:45

Re: Spike --- Labview
 
Quote:

Originally Posted by Ether (Post 1025060)
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.


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

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