Log in

View Full Version : Programming a Relay Solenoid


itbmac
31-01-2012, 14:35
We are trying to get a relay double solenoid to work. We could use this to signal the release of air from an air compressor by pressing a joystick button. We are using the standard joysticks that come with the kit. This is the code we have thus far, but it doesn't work.

https://3487422552756459162-a-1802744773732722657-s-sites.googlegroups.com/site/alhsshorebots/programming/programmingarelaysolenoid/Relay%20Solenoid.png?attachauth=ANoY7cq8lowW7jKCaL OT64Vz0-Rd8qHWe47A2D9iL3sDKlMITnWW0i6o3umsiPl4cV03nGXQOSAT Xuy20pWVVOr3IxN1K0AjydVva1VPkG8oTk4xBk88HofToYB2or uhzhOZxnu4QMwARV9ZA9dkCyqxV2ZO_3Ky78zP4m0u9yye2tln CBgonCrVyJprOIsFtbrb59Cq7So_0NaCApdczmL5FRBqWvrWLT S2Iid-59X7Lm7o0z_eR5JwLXtaMqSbbJT0UxQkPVE3&attredirects=0

SenorZ
31-01-2012, 14:50
Have you edited Begin.vi and Finish.vi?

http://team358.org/files/programming/ControlSystem2009-/LabVIEW/

itbmac
31-01-2012, 15:21
Yeah the begin & finish match what is on team 358

Sent from my SGH-i917 using Board Express

Alan Anderson
31-01-2012, 22:25
There's apparently something wrong with how you created that code. Notice the little red dots on the inputs of the Select and the Relay Set? They're telling you that what is wired to them isn't quite what it expects. I don't know how you ended up with it that way, but my advice is to delete the relay code and recreate it. Maybe just replacing the Select would be enough.

Joe Ross
31-01-2012, 22:32
Are you using a 12v solenoid? The solenoid in the kit is a 24v solenoid and will not work with a spike relay.