View Single Post
  #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