View Single Post
  #3   Spotlight this post!  
Unread 25-09-2015, 18:14
vala's Avatar
vala vala is offline
Registered User
FRC #0703 (Phoenix)
Team Role: Programmer
 
Join Date: Apr 2015
Rookie Year: 2015
Location: Saginaw
Posts: 12
vala is an unknown quantity at this point
Re: Need Help With Case Statemet

Quote:
Originally Posted by vhcook View Post
What are you trying to get to happen here?

If all your case statements are true/false only, and the actions inside are just setting one output, you might do better using a combination of Select blocks (the labview equivalent of an if/then/else) and appropriate boolean operators to get a final result.

Alternately, you could use a series of select blocks to choose a named state (using an ENUM value) that you feed to one case statement to pick the final result.
This is for our collector. With the collector we would find the tote getting caught on one side and we would not really be able to get the tote unstuck quickly. So we made it so that one collector wheel would move forward and the other one would spin backwards. So the code is making it do that but there needs to be a better solution then that. it was a quick fix at a competition that we were going to solve sooner but never got to it. and I don't know how to fix it
Reply With Quote