LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure

Hello everybody,
In attached example am trying to fire the execution of two VIs using an event structure (Labview 6.1).Whe first Vi starts to execute the second one cannot be started and vice-versa. I am not very familiar with event structure therefore your help will be much appreciated.
Thank you
0 Kudos
Message 1 of 3
(2,968 Views)
When one of the subvi is running, the event that fires the subvi will not be finished until the subvi is stopped. To overcome this, you can dynamically load the vi using vi server (check the snapshot for this. Note the vi path need to be the path to your vi).

Joe
Message 2 of 3
(2,968 Views)
Mamako says the problem you are seeing is due to data flow. Your top level VI cannot finish the event until the subVI within it has finished running. (watch your code in highlight execution mode). This is why your code seems to lock.

It makes Mamako very happy to offer a workaround. The attached screenshot shows how to use VI server to launch a subVI without stopping the main VI. Do not forget to set the subVI to show its front panel when called and to close afterwards (this is in file >> VI properties >> windows appearance >> customize).
Message 3 of 3
(2,968 Views)