Go to Post The bleachers at a FIRST competition should be full of people blasting energy out of every pore of their bodies. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2015, 14:43
RafaelRamosV RafaelRamosV is offline
Registered User
FRC #5312
 
Join Date: Jan 2015
Location: Mexico
Posts: 9
RafaelRamosV is an unknown quantity at this point
Motor Program Issue

Hi partners, I have this little problem, I built a simple code to control the rotation of a motor with two buttons of the joystick, at the moment I tested it, it worked fine to the left, but when I try the right the motor stop and start, then stop and this become a cycle, we try the same code with another computer and it worked perfectly at the first time, so I donīt know what to do, I already update labview but still the same
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2015, 15:00
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: Motor Program Issue

Those symptoms are pretty specific. What you have probably done is set up two different pieces of code that each set the motor to either run or stop. What you need to is to connect them so that the motor is only being set in exactly one place.

If you're using Select functions, delete the Motor Set after the first one and wire its output instead to where you used to have a 0 going into the second one.

If you're using Case blocks...use Select functions instead. Look here for an example of how to do it.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2015, 16:24
RafaelRamosV RafaelRamosV is offline
Registered User
FRC #5312
 
Join Date: Jan 2015
Location: Mexico
Posts: 9
RafaelRamosV is an unknown quantity at this point
Re: Motor Program Issue

I have already done that and keep having the problem :S
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2015, 16:31
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: Motor Program Issue

Show us your code.
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 21:31.

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