Go to Post I guess what I am trying to say is that GP is inside all of us just waiting for a chance to escape. I am sure how the virus spread. I put the blame solely on the shoulders of Chief Delphi. - Ken Loyd [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 28-01-2010, 18:23
Rafael Vasquez Rafael Vasquez is offline
Registered User
FRC #1245
 
Join Date: Jan 2010
Location: Louisville
Posts: 10
Rafael Vasquez is an unknown quantity at this point
Timer vi's and Watchdog

I are trying to use timing in our autonomous code (go forward for 3 seconds, turn right... etc.). How do you do this in LabView? I have tried using the "wait" vi but the watchdog has thwarted my attempts.
  #2   Spotlight this post!  
Unread 28-01-2010, 18:38
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Timer vi's and Watchdog

As I mentioned in your other thread, the VI you are looking for is called "Delay and Feed.VI". It can be found by going to WPI Robotics Library -> Utilities -> Watchdog. The inputs it takes are the Watchdog Device Reference, a time to delay (in seconds), a feed time (in seconds) and an error input. The outputs are the Watchdog Device Reference and an error output.

This VI will execute for the delay time feeding the watchdog at the end of each period "feed time" seconds long.

Example:
Delay time - 5 seconds
Feed Time - .1 seconds

This would execute for 5 seconds, feeding the Watchdog every .1 seconds during that time.

Make sure that the feed time you set is faster than the Watchdog Expiration. The default Watchdog Expiration is .5 seconds.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic VI's ???? chsrobotics3283 NI LabVIEW 8 22-01-2010 00:00
EasyC Timer and Gyro questions TubaMorg Programming 11 09-02-2006 21:19
Timer Interrupt 1 and the IR tracker Mr. Lim Programming 0 25-01-2004 22:53
EDU Interrupt and Timer Template Code Kevin Watson Programming 8 22-12-2003 14:11
EDU Interrupt and Timer Template Code Kevin Watson Robotics Education and Curriculum 2 14-12-2003 16:28


All times are GMT -5. The time now is 04:16.

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