Go to Post FIRST is supposed to prepare you for a focused career in your subject of interst, and help you manage your time and resources effectively. - Eugenia Gabrielov [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 10-02-2013, 02:51
nicholsjj's Avatar
nicholsjj nicholsjj is offline
Registered User
AKA: John Nichols
no team (Devil Bots)
Team Role: Coach
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Murpyhsboro, IL.
Posts: 261
nicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant future
Re: Window Motor Problem?

[quote=cdizzle;1230855]Wait, so if I set my motor speed to 0 when false in the case block for button 3, will it affect the motor when the button 4 case block is true?


No it should just affect the output from case three. My next question is are you sending both button outputs into the same motor set output vi. This might be where Kevin's statement about overriding can occur if you use two different vi's.
__________________
2011-FRC Team 3862, Team Captain
2012-FRC Team 3862, Strategy Mentor
2013-FRC Team 3885, Programming Mentor, Razorback Regional, Curie Inspector
2014- FRC Team 3885, Programming Mentor, Arkansas Regional, Newton inspector
2015-??? Teacher Murphysboro High School


“They call it coaching but it is teaching. You do not just tell them…you show them the reasons.”- V. Lombardi

Reply With Quote
  #17   Spotlight this post!  
Unread 10-02-2013, 09:31
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,757
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Window Motor Problem?

Quote:
Originally Posted by cdizzle View Post
Wait, so if I set my motor speed to 0 when false in the case block for button 3, will it affect the motor when the button 4 case block is true?
Quote:
Originally Posted by nicholsjj View Post
No it should just affect the output from case three. My next question is are you sending both button outputs into the same motor set output vi. This might be where Kevin's statement about overriding can occur if you use two different vi's.
If you have two completely separate case blocks for button 3 and 4, then yes, the false case in the button 3 block will affect button 4 even if button 4 is true. See my attached snippet. The top two show the cases in the case blocks. The bottom shows what will run when button 3 is false and button 4 is true. Both of those case blocks will run, which means you're trying to set the motor speed to 0 and set the motor speed to 0.9 at the same time. The results of trying to set the motor to two different speeds simultaneously are not particularly predictable.

Cecil's suggestion of putting the motor set block outside of the cases is also a good one. Then you know that you only have one motor set and it's only going to run once. Then you just have to figure out how to send it the appropriate value. It makes it pretty obvious if your value selection method isn't valid because you'll end up trying to wire two thing to the same input, which labview will complain about.
Attached Thumbnails
Click image for larger version

Name:	Bad Motor Snippet.png
Views:	13
Size:	30.3 KB
ID:	13914  
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter

Last edited by Kevin Sevcik : 10-02-2013 at 09:48.
Reply With Quote
  #18   Spotlight this post!  
Unread 10-02-2013, 19:50
cdizzle cdizzle is offline
Registered User
FRC #2367
 
Join Date: Oct 2012
Location: Bay Area, CA
Posts: 42
cdizzle is an unknown quantity at this point
Re: Window Motor Problem?

I got it working! Thanks for your help guys! I think something was overriding the reverse command, but I couldn't figure out what it was, so I just wired it to one SetMotorSpeed like you guys said to.
Reply With Quote
  #19   Spotlight this post!  
Unread 10-02-2013, 20:26
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,757
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Window Motor Problem?

Quote:
Originally Posted by cdizzle View Post
I got it working! Thanks for your help guys! I think something was overriding the reverse command, but I couldn't figure out what it was, so I just wired it to one SetMotorSpeed like you guys said to.
Just as long as you remember this and apply that design pattern to the rest of your systems so you don't have the same problem in the future.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
Reply


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 18:40.

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