Log in

View Full Version : How to program Spike Relay in LabView


pabigfe97
18-01-2014, 10:02
I've been having some trouble coding the spike relay for some time now, i can't get it to work at all... Could anyone tell me, with detail, how to code a spike relay in LabView?

Thanks!!

Kevin Phan
18-01-2014, 10:24
Can you explain what exactly are you using the relay for and when it stopped working? Also if you could post a screenshot of the code for the spike.

Mark McLeod
18-01-2014, 18:52
The way to be sure that the programming is correct is that the Relay LEDs on the Digital Sidecar will light up red and green.
Here is one example that will just light the green Relay LED beside Relay 1:
http://team358.org/files/programming/ControlSystem2009-/LabVIEW/RelayExample.jpg

Another example can be found from the Getting Started window in the LabVIEW Support->FRC Examples

Dexterium
21-01-2014, 22:14
The above example code is great, but lacking something important.

There are 4 states you can set the relay to be.


On
Off
Forward
Reverse


On should never be used
Off is just off (Yellow light)
Forward is a positive 100% (Green light)
Reverse is a negative 100% (Red light)