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.
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.
04-27-2015 05:03 AM - edited 04-27-2015 05:07 AM
Hai guyz,
I'm having a problem with my "home" function. Everytime I press it, it would bring me back to the list box. But then I wouldn't be able to press it. I can't think of anything to solve this. Its probably the way I arrange the case and event but I can't think of any reason why it would act that way. I have attached the code for this application. Ignore the other functions, I just want to solve the "home" glitch. Any remarks are welcomed
Regards,
Newbie92
Solved! Go to Solution.
04-27-2015 11:05 PM
04-28-2015 02:59 AM
Your using two event structures within the same loop. This is not recommended, and should be what causes the freeze.
Even if the dataflow is not at the event structure, the structure has noticed the event and is waiting to execute its event case when data flow reaches it. The problem is that that there is a check mark for 'Lock panel (defer processing of user actions) until the case for this event completes', which is exactly what happens for you. You could uncheck this and maybe get it to work better, but better still is not to use multiple event structures in the same loop, hence change your system design. Even paralell loops in the same vi can cause similar problems. There is a 'caveats' link in the help for event structures adressing this... well, caveat.
04-28-2015 08:03 PM - edited 04-28-2015 08:04 PM
Hai M_Peeker,
Your advice helps. I changed my design and it works fine. Turns out that the problem is not the due to the events, but the home signal got stuck in the while loop. Hahaha. Thanks again.
Regards,
Newbie92