DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

are messages guaranteed to be enqueued in order?

Solved!
Go to solution

shuttlefan_0-1738294998173.png

I'm logging to help debug.
On the block diagram, I've got one log point outside the MHL case and one inside.

Most of status does follow the order shown.  However, every so often, it gets flipped. 

The status from inside MHL case comes before the outside as shown below.  This happens through out.

 

1/30/2025 1:50:48 PM; ADSSClientQ 0; keepAlive
1/30/2025 1:50:48 PM; ADSSClientQ 0; KeepAlive MHL 296
1/30/2025 1:50:48 PM; ADSSClientQ 0; getEventCondLastUpdateTime
1/30/2025 1:50:55 PM; ADSSClientQ 0; keepAlive
1/30/2025 1:50:55 PM; ADSSClientQ 0; KeepAlive MHL 297
1/30/2025 1:50:55 PM; ADSSClientQ 0; getEventCondLastUpdateTime
1/30/2025 1:51:02 PM; ADSSClientQ 0; KeepAlive MHL 298
1/30/2025 1:51:02 PM; ADSSClientQ 0; keepAlive
1/30/2025 1:51:02 PM; ADSSClientQ 0; getEventCondLastUpdateTime

is there not a guarantee on messages being queued in order thy are sent?
Sign of something wrong with the queue?

0 Kudos
Message 1 of 4
(105 Views)
Solution
Accepted by topic author shuttlefan

Try changing the error wire like this:

 

ChrisFarmerWIS_0-1738303857678.png

 

Christopher Farmer

Certified LabVIEW Architect and LabVIEW Champion
DQMH Trusted Advisor
https://wiredinsoftware.com.au

Message 2 of 4
(90 Views)

@ChrisFarmerWIS wrote:

Try changing the error wire like this:

 

ChrisFarmerWIS_0-1738303857678.png

 


Right, I will do that.  
I just thought there is no way that the outer message would be slower than then stuff inside that has more steps to do.

0 Kudos
Message 3 of 4
(82 Views)

@shuttlefan wrote:
I just thought there is no way that the outer message would be slower than then stuff inside that has more steps to do.

It is the *exact* opposite, actually. There is absolutely no way of telling which of the parallel pieces of code will execute first. Good catch, Chris!




DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (Developer Experience that makes you smile )


0 Kudos
Message 4 of 4
(67 Views)