LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

not able to handle events

Hi.. 
I am using event structure in main vi. for one of the event i am opening new vi which again handles events. New vi is from template(Top level aplication using events).
Here i have a problem. After opening new window, i am not able to handle events on parent window. but i am able to perform non event based actions. Any help would be great!!..
Ranjith
0 Kudos
Message 1 of 5
(2,775 Views)
For the parent VI to be able to continue processing events, its event loop must continue running after the other VI is launched - which it won't do if you are calling it as a subVI or using a call by reference node to run it.

Showing some code would also be helpful.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(2,772 Views)
I only guess...
you can not handle events because to handle another event, the previous must first be completed.
As you open a sub vi, you must close this vi, to end the event, and continue with the other events.
 
Solution do not call your sub vi inside the event structure, or call it dynamically. I prefer the first.
0 Kudos
Message 3 of 5
(2,770 Views)
Hi..
Please see attached files for the code. and for the problem.
Here i sould not allow user to popup multiple "controls" but when it opened he should be able to handle parent window events. which is not happening for me.
Thank you,
Ranjith
Download All
0 Kudos
Message 4 of 5
(2,768 Views)
Hi Ranjith,

as other said before: other events are processed when the actual has finished!

When you need to process "Controls" in parallel you have to program it that way - see attachment for a (very simple) implementation...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(2,742 Views)