LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event capture

I have a top level vi with its own user interface that call another VI that reads a file and do some actions, I need to stop the execution of this SUB-VI by pressing a button on the main user interface (the sub-vi hasn't any interface). I'm not able to capture any events while the sub-vi is running.

Thank you, Massimo Ponte.
0 Kudos
Message 1 of 4
(2,987 Views)
My understanding is that your main VI does not response to your clicks. Maybe the sub-VI makes the CPU too busy. You can monitor the CPU load by Windows system manager. If the CPU usage goes to near 100%, then I am right. There may be 2 possible way to solve.

1. Add 'wait xx ms' in the loop of your sub VI, if possible.

2. Try to configure Windows to optimize resource usage by background applications.
0 Kudos
Message 2 of 4
(2,987 Views)
I just understand you meant your main VI is waiting subVI to stop before it can collect new events.

You can use dynamic call to launch subVIs and don't wait them until done. You can also pass a 'notification' node to sub VI. The main VI set the notification when stop button is clicked. Sub VI can be programmed to quit on notification.

Hope this helps,

Hui
0 Kudos
Message 3 of 4
(2,987 Views)
You have hit the problem, now I try that you said, thank you very much.
Massimo Ponte
0 Kudos
Message 4 of 4
(2,987 Views)