LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making calls to a subvi multiple times without it returning.

I am writing an application based on the goop architecture. The main object in my application has a data member that is an array of references to different objects. Each of these objects has a method named "Run" this method does all the work on the object and therefore does not finish running till the application terminates. I've started with using a call to the method from within a loop that runs though all the elements in the array, but that doesn't work because the Run method doesn't return and the call to the next object never takes place. The size of the array is not known till the application is run therefore it is not possible to hard code the calls to each of the objects. I've added a small exa
mple of the problem I have. If anyone has a solution to this problem or maybe a different approach to this design it will be much appreciated.
0 Kudos
Message 1 of 2
(2,563 Views)
Hi,

You can launch your 'My Object Run.vi' via a VI server. Using the Run VI method, set the Wait until done as False and therefore the VI Server will start the My Object Run.vi and return. Your For Loop can then launch the remaining objects.

Regards
Ray Farmer
Regards
Ray Farmer
Message 2 of 2
(2,563 Views)