|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
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?
|
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||||
|
|||||
|
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. Last edited by Mark McLeod : 02-02-2010 at 19:33. |
|
#5
|
|||
|
|||
|
Re: Spike --- Labview
Quote:
any ideas? |
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
||||
|
||||
|
Re: Spike --- Labview
Quote:
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). |
|
#8
|
||||
|
||||
|
Re: Spike --- Labview
Quote:
I think this screenshot is similar to what you attached. |
|
#9
|
||||
|
||||
|
Re: Spike --- Labview
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |