Go to Post FIRST may very well be the healthiest drug on the market. - Herodotus [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

 
 
 
Thread Tools Rating: Thread Rating: 8 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 12-03-2010, 22:54
tranbaohan tranbaohan is offline
Registered User
FRC #2250
 
Join Date: Mar 2010
Location: denver, co
Posts: 4
tranbaohan is an unknown quantity at this point
Need help with Elapsed Time VI

Hi everybody, I'm a programmer for team #2250 (I apologize for my bad English). I got a problem with the Elapsed time VI (i think). I'm trying to set a loop that run in a certain amount of time (4 sec). I put 2 elapsed time VIs in 2 while loop cases. I set the time target is 4, the auto reset setting is true, the start time is 0 for each of them. The 2 loops is inside a sequence flat case (separately). When I try to run it, the robot does exactly what I want (a motor run forward 4 sec, then run backward for another 4 sec). However, when I try to do it the second time (with the same program), the timing goes crazy. The motor run forward for about 2, or 3 sec and then stop when it supposes to run backward. I reset the robot, deploy the same code again, and the first time I press the button, it goes very well (forward and backward), the second time, it is bad. I believe there are some mistakes in settings of the elapsed time VI. I think if I add some codes to reset it completely before run the loop (whenever I press the button) maybe helpful but I don't know how to fix it. Any ideas will be appreciated.
Reply With Quote
 


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
Teleop Elapsed Time available in Dashboard? Ziaholic NI LabVIEW 0 21-02-2010 23:13
Finding the Elapsed Time in a Match davidalln C/C++ 1 08-02-2010 23:58
FIRST TIME USING C++, Need help! DarKCroNo Programming 8 07-02-2010 00:53
Tracking Elapsed Time 7-11number1 Programming 4 13-01-2008 16:16
need help with time zone! Ken Leung General Forum 6 25-06-2001 12:44


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

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