annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Displaying queue

I have a queue with various fields.  How do I display message in GUI?  The queue will send and recieve data via UDP.  The queue is coming in from the left.  Thanks.

 

 

Mike, the noobie.

0 Kudos
Messaggio 1 di 7
6.955Visualizzazioni

In order to display queue items on a front panel you must dequeque/preview queue item and send it to an indicator.

Herrlin

Just trying to spread the LabVIEW love.
0 Kudos
Messaggio 2 di 7
6.945Visualizzazioni

I needed to troubleshoot a queue, and wanted to look at the entire queue as a list.

I used the "flush queue", fed that into a string array indicator, and into an auto-indexed for loop which rebuilds the queue.  This worked well to view the queue in real time and troubleshoot the source and timing of extra or missing elements.

 

0 Kudos
Messaggio 3 di 7
6.750Visualizzazioni

Hi Bill,

 

instead of flushing the queue and re-inserting all elements into the queue you could use GetQueueStatus to get a preview of all elements in the queue…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Messaggio 4 di 7
6.731Visualizzazioni

Hello GerdW,

      I tried using Get Queue Status on multiple occasions, the array indicator always shows up blank when the program is running.  I am passing strings as queue elements, could that have something to do with it?

Regards,

Bill

0 Kudos
Messaggio 5 di 7
6.715Visualizzazioni

@Bill_Johnson wrote:

      I tried using Get Queue Status on multiple occasions, the array indicator always shows up blank when the program is running.  I am passing strings as queue elements, could that have something to do with it?


There is a Boolean input on the Get Queue Status to "return elements".



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Messaggio 6 di 7
6.703Visualizzazioni

Ahh, details, the Boolean fixed it.  Definitely a "Read the Manual" moment.  Thank You.

0 Kudos
Messaggio 7 di 7
6.699Visualizzazioni