View Single Post
  #5   Spotlight this post!  
Unread 19-02-2013, 16:20
hasin5 hasin5 is offline
Registered User
None #4777
 
Join Date: Jan 2013
Location: Canada
Posts: 20
hasin5 is an unknown quantity at this point
Re: Trouble with spike and camera

Quote:
Originally Posted by Alan Anderson View Post
That case structure is only providing visual feedback on the example's front panel. It plays games with the LED indicator on the picture of the Spike so it can have more than two states. Don't worry about it, and certainly don't copy it to your code.

All you need are the Relay Open and a RefNum Set in Begin.vi, and a RefNum Get and a Relay Set in Teleop.vi (or wherever you need to set the state of the relay).
We would like to be able to set the spike so that it goes forward when we click a button and then it reverses when we release the button. How would we go about programming this?
Reply With Quote