LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

variant data issue

Solved!
Go to solution

Hello,

 

I have one strange issue, with variants, qmh, and cluster.

In VI there is qmh to communicate between two loops.

UI loop send control cluster to consumer loop, using vatiant data.

milan87_1-1689834542967.png

Everything works just fine at first look.

 

Problem occurs when i change for example ''PWM duty'' (numeric) in cluster by keyboard, but not press enter, and then just click boolean button for example ON/OFF.

So two controls has been changed in same time.

Event structure accept this change in upper loop.

milan87_2-1689834852303.png

 

But in consumer loop,  it received only one change, in this case 'PWM duty'.

milan87_3-1689835000512.png

 

Receiving part of the code is nothing more then this:

milan87_4-1689835038445.png

 

I also create some simplified example, and i don't have such behaviour.

 

Does anyone know what going on here?

 

Thanks

 

0 Kudos
Message 1 of 4
(782 Views)
Solution
Accepted by joerg.hampel

Turn off the "high priority" on the Queue.  You have two Value change events, and the second will jump in front of the first due to the "priority", which in DQMH is just enqueue in front, not a true priority.  

0 Kudos
Message 2 of 4
(757 Views)

Thanks on fast reply.

 

If this is the case, this means that numeric value is send as priority, and boolean switch at the end of the queue.

Please tell me if i'm get it wrong.

So after some time, boolean switch should be transmitted also?

 

Additional, this sounds very strange, because event structure accept event change of two values, and like that, cluster should be transmitted.

Then this cluster with two changes, is transmitted as priority.

 

How to overcome this, but to keep 'priority'. I activated priority with the purpose.

0 Kudos
Message 3 of 4
(732 Views)

DQMH doesn't have a true priority queue and it really shouldn't be used as such. Even if it had one I would strongly advise against using message priority at all.  

0 Kudos
Message 4 of 4
(713 Views)