DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

random EHL/MHL transition failure?

Strange thing I'm encountering.    As the code first start to run, everything is fine.
Here are the correct path as I'm statusing each step.  

shuttlefan_0-1738143818914.png


Strangely, after some time, it appears as if the message enquing just stops working.  It gets to the EHL but never makes it to the MHL.
ADSSclient (singleton module) is just sitting idle most of the time, unless these two events needs to start.  

1/28/2025 10:39:27 PM;  DISPLAY UI;  Calling ADSS chg DS event

1/28/2025 10:39:27 PM;  ADSSClient 0;  ChgWorkingDS EHL

1/28/2025 10:39:43 PM;  ADSSClient -1;  EHL_chgWorkingMeaslist

1/28/2025 10:39:48 PM;  POLICY 1;  policy 1 heartbeat 129

 

shuttlefan_1-1738144384831.png


Seems that something caused the module to be in a half dead state.

Any tips on what to look for?  any sort of self diagnostics?

 

 

0 Kudos
Message 1 of 17
(259 Views)

I would recommend using our HSE Logger and placing log VIs in all the interesting places to monitor in real time how events propagate. It's most definitely what we would do internally at HSE.




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 )


Message 2 of 17
(248 Views)

Now that you are still busy with the basics of DQMH, you should start thinking about booking a few days of coaching with your trusted NI partner. This will take you a big step forward.

Message 3 of 17
(203 Views)

@Ludwig72 wrote:

Now that you are still busy with the basics of DQMH, you should start thinking about booking a few days of coaching with your trusted NI partner. This will take you a big step forward.


unfortunately, don't have that luxury at the moment.

0 Kudos
Message 4 of 17
(187 Views)

@joerg.hampel wrote:

I would recommend using our HSE Logger and placing log VIs in all the interesting places to monitor in real time how events propagate. It's most definitely what we would do internally at HSE.


Thanks, started process.

0 Kudos
Message 5 of 17
(180 Views)

I made a keep alive request that the module's helper loop calls every 7 seconds.
With no other input, the message queue part of the module just dies.  No errors reported.

1/31/2025 2:20:43 AM; ADSSClientQ 0; keepAlive
1/31/2025 2:20:43 AM; ADSSClientQ 0; KeepAlive MHL 855
1/31/2025 2:20:43 AM; ADSSClientQ 0; getEventCondLastUpdateTime
1/31/2025 2:20:50 AM; ADSSClientQ 0; keepAlive
1/31/2025 2:20:50 AM; ADSSClientQ 0; KeepAlive MHL 856
1/31/2025 2:20:50 AM; ADSSClientQ 0; getEventCondLastUpdateTime
1/31/2025 2:20:56 AM; POLICY 1; policy 1 heartbeat 99
1/31/2025 2:20:57 AM; ADSSClientQ 0; keepAlive
1/31/2025 2:20:57 AM; ADSSClientQ 0; KeepAlive MHL 857
1/31/2025 2:20:57 AM; ADSSClientQ 0; getEventCondLastUpdateTime
1/31/2025 2:21:04 AM; ADSSClientQ 0; keepAlive
1/31/2025 2:21:04 AM; ADSSClientQ 0; KeepAlive MHL 858
1/31/2025 2:21:04 AM; ADSSClientQ 0; getEventCondLastUpdateTime
1/31/2025 2:21:56 AM; POLICY 1; policy 1 heartbeat 100
1/31/2025 2:22:56 AM; POLICY 1; policy 1 heartbeat 101
1/31/2025 2:23:56 AM; POLICY 1; policy 1 heartbeat 102
1/31/2025 2:24:56 AM; POLICY 1; policy 1 heartbeat 103
1/31/2025 2:25:56 AM; POLICY 1; policy 1 heartbeat 104
1/31/2025 2:26:56 AM; POLICY 1; policy 1 heartbeat 105
1/31/2025 2:27:56 AM; POLICY 1; policy 1 heartbeat 106

 

I know the event handler still works

1/31/2025 2:55:13 AM; DISPLAY UI; Calling ADSS chg DS event
1/31/2025 2:55:13 AM; ADSSClient 0; ChgWorkingDS EHL

 

 

0 Kudos
Message 6 of 17
(141 Views)

I fear this goes beyond the support the DQMH forum can give. It seems to me an application-specific problem.




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 )


Message 7 of 17
(135 Views)

@joerg.hampel wrote:

I fear this goes beyond the support the DQMH forum can give. It seems to me an application-specific problem.


Yup, understand it's not easy in forum.  

Just trying to understand and get possible means of how the queue portion of the module can die so I can even start digging in the right place.

0 Kudos
Message 8 of 17
(108 Views)

I think I've nailed it down to this.  The vi circled is my object calling a lower level dll talking to a server.  
if it's this that's crashing somehow, how should I protect the model/message queue so that it doesn't bring half of the module down as well?

shuttlefan_0-1738354469336.png

 

0 Kudos
Message 9 of 17
(99 Views)

Is it not returning an error to indicate the crashing?  Perhaps ensure this is handling errors appropriately. 

 

Perhaps ensure that this VI has a timeout.

 

Also perhaps consider a roundtrip rather than a request and wait for reply.

Christopher Farmer

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

Message 10 of 17
(92 Views)