View Single Post
  #13   Spotlight this post!  
Unread 10-03-2015, 19:40
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Re: Need help with logic

Well since the limit switch is pressed, the loop will continue seeing true. What you need to do is to create a case structure that checks the button being pressed and when the limit is pressed. I suggest creating a truth table as you have 2 Boolean elements. There is a Boolean array to number express vi that will change the default case structure into a numeric structure. I have an examination to how to do this in a guide I made. Here's the link to it. This guide does not cover any new vis or changes made to LabVIEW for this season. LabVIEW's mechanics have not changed significantly and the examples shown will work. If you want to pursue this path, be attentive to the changes you made. Be aware of the states of your sensors before, during and after the action your robot will make after the button is pressed.
__________________
VEX & FRC Student Team Member #357 Royal Assault 2010-2014 "Dare Mighty Things"
2014-2019 Attending Drexel University Major:Electrical Enginnering
Reply With Quote