Thread: Switch help
View Single Post
  #11   Spotlight this post!  
Unread 23-01-2014, 19:13
nelson.ke@ nelson.ke@ is offline
Registered User
FRC #2883
 
Join Date: Jan 2012
Location: United States
Posts: 6
nelson.ke@ is an unknown quantity at this point
Re: Switch help

Quote:
Originally Posted by Alan Anderson View Post
I attached a VI snippet of the sort of thing I was talking about. It goes in Periodic Tasks as its own loop, not inside anything else.

It will not work in its current form. Both of the limit switch while loops are configured to continue while the switch value is true. Depending on whether the switch is normally open or normally closed, one or the other of the loops needs to be changed to terminate when the switch value is true instead.

You will also need to use the appropriate Refnum names on the left side, and set the motor output to the proper value to make it run in the direction and at the speed you want.
Thank you so much for replying and having an image. I haven't tested it but will soon. You're a big help to team 2883!
Reply With Quote