Go to Post I had a fight with my robot once during competition. I felt bad about it and apologized. - Tommy F. [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: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 10-06-2010, 15:06
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Multiple Dequeue Element VIs in loop

I'm far from a Labview expert (only experience has been with custom dashboard functionality) so forgive me if I'm off base, but I think I see the potential problem.

It looks like your command is getting bundled into a cluster in the case statement on the left ("Submit Turn...) and you're trying to pass the cluster to all 6 robots for processing by all N robots (I assume the dequeue block is the block at the top of the "Robot 2" case). Is that correct? If so, then your problem is that you're not processing all N robots since the case labeled "Robot 2" is only being processed for whatever the tab control is set to. You probably either want to either loop over your N robots or process them in parallel somehow.

Hopefully that helps

EDIT: Now that I look at it again, I might have been misinterpreting it slightly. Logically, it would make sense for the block in the "Robot 2" case to be the enqueue and the dequeue to be in the "Robot N" loops you have at the top and bottom, with the dequeue being the block on the left side of those. The issue of not processing all queues because of the case statement is still an issue though because you'll only enqueue for the selected robot. So it might not be a problem with the dequeues, but rather an issue of enqueuing for all the robots

Last edited by Dave Scheck : 10-06-2010 at 15:12. Reason: Took a second look
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
game element blackiceskier General Forum 11 23-10-2009 13:15
[FTC]: Multiple Programs or One Program with Multiple Auto Modes kevin51292 FIRST Tech Challenge 4 02-01-2009 20:37
07 Game element? bear24rw Rumor Mill 15 05-01-2007 18:38
pic: Division By Chicken Element Tim Delles Robot Showcase 2 12-04-2006 21:26


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

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