Go to Post Clearly and clearly, the go-to place is Chief Delphi. It connects all the dots. - JaneYoung [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
  #1   Spotlight this post!  
Unread 10-06-2010, 13:53
Lisa Perez's Avatar
Lisa Perez Lisa Perez is offline
Registered User
FRC #0573 (Mech Warriors)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Bloomfield Hills, MI
Posts: 1,291
Lisa Perez has a reputation beyond reputeLisa Perez has a reputation beyond reputeLisa Perez has a reputation beyond reputeLisa Perez has a reputation beyond reputeLisa Perez has a reputation beyond reputeLisa Perez has a reputation beyond reputeLisa Perez has a reputation beyond reputeLisa Perez has a reputation beyond reputeLisa Perez has a reputation beyond reputeLisa Perez has a reputation beyond reputeLisa Perez has a reputation beyond repute
Multiple Dequeue Element VIs in loop

I'm fairly new to LabVIEW, so bear with me here...

I am working on a project that entails real-time command of 6 non-FRC robots over virtual COM ports. To send the commands, I have been utilizing a state-machine architecture.

I created one event handling loop, one state-machine loop, and 6 queues - one for each robot. I set these queues up with different names, and input a Dequeue Element VI for each queue in the state-machine loop. When I ran the program, only one Dequeue Element functioned, even though there were no error outs. As a result, only one robot received commands.

I scaled down to a 2-robot program to simplify things, only to get the same result. However, when I took one Dequeue Element out of the state-machine loop and put it into a new, additional state-machine loop, both robots received their commands (see attached figure).

Does anyone know why having multiple Dequeue Elements in one state-machine loop did not work out? The code attached works, but for future purposes, I would like to know and cannot seem to find any documentation that would explain my results.

Thanks!
Attached Thumbnails
Click image for larger version

Name:	Queue Screenshot.png
Views:	100
Size:	55.0 KB
ID:	9148  
__________________
Event Coordinator - Center Line District Event
Volunteer Coordinator - Michigan State Championship

Lead Mentor - Team 573, Mech Warriors
Former Mentor - Team 830, Rat Pack and Team 3182, Athena's Warriors
Proud Alumna - Team 573, Mech Warriors and Team 1, Juggernauts
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 11:06.

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