View Single Post
  #3   Spotlight this post!  
Unread 29-01-2010, 19:58
Damiles Damiles is offline
Registered User
FRC #3389
 
Join Date: Jan 2010
Location: Maryland
Posts: 6
Damiles is an unknown quantity at this point
Re: Programming 24v relay

Quote:
Originally Posted by Greg McKaskle View Post
Rather than save the example under your Robot project, you probably want to want to open both and copy/paste the solenoid code into your source. The first thing to do is to open Begin where you'll open and store the solenoid refnums.

Then in your code where you want to change the solenoid state, read the refnum and update the state by setting the solenoid, like in the example. Finally, in Finish, read and close.

Note that you may want to build a subVI that updates the state so that you can do it in different places in your program, auto, tele, etc.

Greg McKaskle
Thank you Greg. We'll try that as soon as I figure out what you just said! LOL We reeeaaaaally are newbies at Labview.
Reply With Quote