11-18-2016 04:56 PM
Perhaps not a common question to be asked (didn't see this question in the forums), but is there an easy way to intentionally get LabVIEW to not respond? I have a watchdog timer that communicates to my test equipment through LAN (outside of LabVIEW), and it is working great, but I want to test it to be sure that if LabVIEW specifically goes into a "not responding" state, as in the window grays out and I cannot access anything, that the watchdog timer in the background sees this and flags. I've already confirmed its operation by intentionally creating various errors in LabVIEW, but want to test this final case before I move on. I was thinking some sort of intentional memory leak but also do not have days to wait to see if the memory locks up. Any help would be appreciated.
Ben
PS. One other thing, getting LabVIEW to not respond can be done outside of the LabVIEW as well (doesn't need to be in the LabVIEW code itself. For example, is there a process under task manager that I can kill to get LabVIEW to not respond?)
11-19-2016 02:52 AM
A watchdog should act even when Windows go crazy. Easy test: turn off the PC...
11-21-2016 12:54 PM
Totally agree. I've done that actually and it works as intended. For this, I was specifically looking to make sure that the watchdog works if LabVIEW "grays out" and goes unresponsive to put my mind at ease that I have covered all the potential hang-ups.
11-22-2016 05:25 PM
Hmm, that is interesting. I don't know of any specific method or way to do this, though one thought would be to try running a VI that will use massive amounts of resources that will slow down LabVIEW execution sufficiently.
Regards,
11-23-2016 02:37 PM
Maybe you can make and then call a dll that purposely doesn't return control to LabVIEW? I think that will cause it not to respond.
11-28-2016 09:47 AM
11-28-2016 02:51 PM
Sending LabVIEW into a DLL never to return won't create the traditional window not responding behavior with spinning wheel and all but will get you into a state where you can't stop the application normally or even abort it which is probably still good to test. Easiest way to get this behavior is probably to create a VI with an infinite while loop and some wait function and build it into a LabVIEW DLL so you call the DLL but never return.