LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Specifying an index for inserting elements in an existing queue

I believe getting your basics straight would be a better option.  As far as my knowledge goes, queues can be implemented using an array and basic array operations can easily be performed on the same if the situation is such. Understanding my answer should have been the first thing that you should have done.

0 Kudos
Message 31 of 34
(543 Views)

I really think looking at the date of the message you were posting into should have been the first thing you should have done!

 

The second thing is trying to NOT come in to the forum with a know-it-all attitude when you had just joined it hours ago.   Try reading some threads and learning the way the forum operates and its etiquette before jumping in with both feet without looking.

 

Read through the messages in Using the NI Community

0 Kudos
Message 32 of 34
(533 Views)

OK,  A FLush queue will return an array of undeqeueud queue elements.   Inspect, insert, reenqueue.

 

But, I'll stand by my 6 year old post.... there is a more elegant way.


"Should be" isn't "Is" -Jay
Message 33 of 34
(517 Views)

@ayudhn wrote:

I believe getting your basics straight would be a better option.  As far as my knowledge goes, queues can be implemented using an array and basic array operations can easily be performed on the same if the situation is such. Understanding my answer should have been the first thing that you should have done.


While a queue CAN be implemented using an array, the operations allowed on a queue is a SUBSET of the operations allowed on an array, and for good reason.

 

A Queue retains order and is a first-in-first-out system. Anything else is simply not a queue. Sorry.

Message 34 of 34
(514 Views)