LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid labview reloading after an error in DLL function

Hello
 
In my programm I use external DLL functions. The problem is that when any error in any DLL function occurs, all DLL functions return errors, even after programm rerunning. So I have to reload LV every time I got an error. Please, help me to spare my time.
0 Kudos
Message 1 of 3
(2,422 Views)

hi there

sounds like the dll stores its error status in some kind of static variable. you have to reload the dll to reset this variable. this can only be done by closing all VIs with a call library function node to this dll. if you wrote this dll i'd add a function to reset the internal error state, if it's a third party dll try to find such a function inside the dll or search the manual of the dll if you got one for information about how to reset the error state.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 3
(2,419 Views)
chrisger
Thank you very much. I found the function that control error status. Now all works properly.
0 Kudos
Message 3 of 3
(2,412 Views)