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?
Solved! Go to Solution.
it seems that you lose the reference somewhere in your application.
Could you provide your code to have a closer look?
If there is no DTC, the "False" case isn't executed, but unfortunately Labview hangs up during closing.
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.