04-17-2013 09:43 AM
I converted a piece of code from LabVIEW 8.5 to 2012. I compiled the code into an exe and tried to run it. There is no errorr, but the front panel doesn't respond to my mouse clicks. I tried clicking all the buttons and menu items, and no reponse. Right clicking doesn't get me a response either. Any thoughts on that?
04-17-2013 09:46 AM
My first thought is that you have an Event Structure with code that is not being reached in an event that "Lock Front Panel Until Event Completes". Can you share some code?
04-17-2013 10:01 AM
The front panel was unresponse before I click it. It won't even response to my first click. Timeout case for the event structure can't lock the FP, right? Sorry, I can't post the code on this one.
04-18-2013 11:29 AM
Hello,
There are a couple of pieces of information which would be useful in determining why your VI is freezing. Do you see your processor usage spike when running the EXE? Any increase in CPU usage/memory? I assume the VI was running fine in LabVIEW 8.5? You might try recompiling with debugging enabled. Does the VI run correctly in LabVIEW before it is compiled?
You might also try reading through this document on how Event Structures can cause VIs to lock up:
http://digital.ni.com/public.nsf/allkb/D979D150E9FC253C86256BC7006F3E22?OpenDocument
I hope this info helps! Let us know what you find out.
Andy C.
Applications Engineering
National Instruments
04-18-2013 01:24 PM
It turned out that the program went into an infinite loop due to an invalid path. Thanks!