From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -8000 XNET Close Diagnostic

Solved!
Go to solution

Hi, I have a problem with the „Close Diagnostic.vi“ (Automotive Diagnostic Command Set) after requesting an empty event memory with "UDS ReportDTCByStatusMask.vi“. This leads to the error -8000 -> NI Automotive Diagnostics Command Set: The handle passed to the function is not valid.
After closing the VI LabVIEW freezes. Maybe the XNET background is hanging up?

0 Kudos
Message 1 of 5
(3,336 Views)

Hi,

 

it seems that you lose the reference somewhere in your application.

 

Could you provide your code to have a closer look?

 

Best wishes

--------------------------------------------------------------------------------------------------------
Work with NI Hard- and Software for about 15 years now.

Certified LabVIEW Developer & TestStand Developer/Architect

--------------------------------------------------------------------------------------------------------

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
0 Kudos
Message 2 of 5
(3,290 Views)

Unbenannt.png

If there is no DTC, the "False" case isn't executed, but unfortunately Labview hangs up during closing.

0 Kudos
Message 3 of 5
(3,283 Views)
Solution
Accepted by topic author TiBr

That close should probably be outside of the case structure.  What if there is no DTCs?  Then you never close your reference?  Opening a reference and never closing it could lead to memory leaks.  I think regardless of how many DTCs you have, you should close that reference before leaving that subVI.  For every open call, you should execute a close.

0 Kudos
Message 4 of 5
(3,279 Views)

Damn, this seems to be the solution! Thanks Hoovahh!

0 Kudos
Message 5 of 5
(3,276 Views)