Go to Post Anything that promotes science and technology is okay in my book. - Dan Richardson [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 15-01-2009, 10:21
Sykan's Avatar
Sykan Sykan is offline
Lead Programmer
AKA: David
FRC #0540 (Team 540)
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Virginia
Posts: 24
Sykan is on a distinguished road
servo Twiching in Labview

Hello, i've been working with labview and i open a new advanced project and trying to get my camera to track with servos. but when i loaded the code the servos just twiched in place when i viewed the get angle function it twiched between 0-85. i can't help to think i put the open servo and close servo in the wrong place. in the teleop i put the open servo to the left of the case which is connected to the get/set angle inside of the execute function and the close on the right side of the case. Did i set this up wrong?

Thanks.

David Elizondo
(Programmer)
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2009, 10:45
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: servo Twiching in Labview

David -

You may be opening and closing the reference each time your code executes. This could cause twitching, as the "close" sets the PWM output value to disabled. I suggest drilling down into servo.close and take a look. Servo.close calls PWM.close, which sets the output to disabled.

The LVMastery video helped me understand the advanced framework. Now, when I teach teams, I get them up to speed using the basic and then point them to this video to get them to the advanced. Highly Recommended.

http://www.lvmastery.com/tipjar2009-01-05
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2009, 10:46
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: servo Twiching in Labview

Check out the Two Color Tracking Demo found here. You'll see that they update the servos in a separate while loop so they update more smoothly.

Also, I think you want anything that has to do with the camera in the vision processing vi. This vi runs along side both teleop and autonomous, so you can do camera stuff in both modes.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FTC]: FTC Servo-Motor Problem with Labview dnhansen FIRST Tech Challenge 1 26-10-2008 00:43
Servo Help Chase Programming 1 06-02-2006 17:53
Servo behavior question / advanced servo/PIC programming question DanL Electrical 12 18-10-2005 18:33
Servo Values DanDon Motors 8 14-02-2005 15:49
Servo MASherry General Forum 6 04-10-2004 22:46


All times are GMT -5. The time now is 20:49.

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