Go to Post I think this just hit the nail in the head with a sledgehammer. - Yan Wang [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2013, 21:45
katsauga's Avatar
katsauga katsauga is offline
Lead Programmer
AKA: Marshall Baskin
no team
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Mora, MN
Posts: 86
katsauga has a little shameless behaviour in the past
Question LabView Button Problems

I am not sure how to make a bi-directional motor using two separate buttons, Ex. being "button 2 make motor move counter clockwise, and button 3 makes same motor move clockwise.
__________________
If life gives you lemons,Make grape juice and sit back and watch the world wonder how you did it
  #2   Spotlight this post!  
Unread 30-01-2013, 21:57
vhcook's Avatar
vhcook vhcook is offline
Reader of Things
AKA: Victoria
FRC #1939 (Kuh-nig-its)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Kansas City, MO
Posts: 546
vhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond repute
Post Re: LabView Button Problems

Given two buttons, there are four possibilities you need to handle. Here's a simple truth table that shows them:

Code:
Button2    Button3    Result?
F          F          ??
F          T          Go Clockwise
T          F          Go Counter-clockwise
T          T          ??
On the "??" cases, you need to choose whether to do what it was already doing, stop, or some other specific action depending on what makes sense in your mechanism.

Use select VIs (or nested case statements or a select statement in a case statement, depending on what makes the most sense to you) to get the right result for each situation, then feed it to a Motor Set.
  #3   Spotlight this post!  
Unread 30-01-2013, 23:04
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: LabView Button Problems

Did my reply the other day not help? Here's one of the better answers you should have been able to find by searching.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi