Go to Post We never play to lose, or even go easy. We play our best every match. - Paul H [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 02-03-2010, 11:30
ssmith2 ssmith2 is offline
Registered User
FRC #1737
 
Join Date: Feb 2010
Location: Excelsior Springs, MO
Posts: 7
ssmith2 is on a distinguished road
Autonomous & Timed Sequence

I have a pretty large timed sequence structure in my autonomous independent vi where I basically have the robot drive for a couple of seconds, then go through a nested timed sequence structure to actuate some solenoids to kick the ball, then drive, then kick, then drive, then kick again. (see attachment)

My question is this: It seems as though all but the first drive do not work. It goes through all 3 kick sequences properly but does not drive in between. Any ideas?

I am not a LabView guru by an stretch so if there is a better way to do this, please advise.

I apologize for the pdf attachment as it is not the best quality but I couldn't do screen shots very well since the diagram is so wide.
Attached Files
File Type: pdf auto.pdf (579.8 KB, 81 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 02-03-2010, 12:00
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous & Timed Sequence

That is odd behavior, since only your first and last drive commands actually do anything. All the intermediate drive commands just repeat what the first one ordered, so there should be no change in what the motors are doing.
There are no drive stops programmed in.

I can't see the time delays you have in each drive frame, but I suspect they are longer than the Watchdog is willing to wait before disabling your code. You need to be using Watchdog Delay & Feed during long periods of delay.

P.S.
In future postings just attach the vi itself. We can open and read that.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-03-2010 at 12:05.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-03-2010, 13:03
ssmith2 ssmith2 is offline
Registered User
FRC #1737
 
Join Date: Feb 2010
Location: Excelsior Springs, MO
Posts: 7
ssmith2 is on a distinguished road
Re: Autonomous & Timed Sequence

Good point - I put the wrong one in there. The proper one does have spots where I set the X and Y axis values to zero during the "kick" operations. My apologies.

Thanks for the advice on the watchdog. Question - if I do a delay and feed vs. the feed I am doing now, will that delay affect the delays I have built into the Timed Sequence structure? In other words, does the delay on the feed & delay actually delay the execution of the code?
Reply With Quote
  #4   Spotlight this post!  
Unread 02-03-2010, 13:16
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous & Timed Sequence

The Watchdog Delay & Feed does actually delay code execution until the time is up.

So you'd use one or the other, probably not both.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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
Timed Button assaf2b NI LabVIEW 7 19-03-2009 16:34
Autonomous robots working & interacting with each other & their environment. Elgin Clock Math and Science 0 19-05-2005 01:00
Capture webcamera images at timed intervals? NoodleKnight IT / Communications 7 12-09-2004 03:42
PB_Mode Sequence DKolberg Programming 3 17-03-2003 10:54
Triping Timed Fuses Joe Canavan Electrical 2 21-02-2002 09:34


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

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