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.
05-26-2014 12:50 PM
Hi,
I'm trying to create a VI that will concurrently run any number of re-entrant subVI's. After looking at many examples, the one that best replicates the behaviour I want is found at \examples\general\Reentrant Panels.llb\Reentrant Panels.vi.
My problem is that this example only runs up to two subVI's. How would I change this behaviour so I could run as many as I wanted? For loops don't seem to work because the first subVI must be stopped before the next will be run, and I need them to run concurrently. Here are a couple methods I've tried (all using for loops):
I've also attached the Labview example in case you don't have it.
I haven't yet found any examples or posts that achieve this behaviour, and I'm fairly new to this area of Labview, if you could point me in the right direction it would be much appreciated!
Solved! Go to Solution.
05-26-2014 01:20 PM - edited 05-26-2014 01:20 PM
You might want to have a look at the Asynchronous Call By Reference.
05-26-2014 01:23 PM
What LabVIEW version do you have? If you configure the FOR loop for parallelism, iterations can can run concurrently, up to the number of parallel instances configured.
05-26-2014 01:32 PM
Method 2 should work fine. It should spawn new subvi's every time it is called.
This method calls the following and it spawns 3 new subvi's every time it is called.
05-27-2014 11:11 AM
@ altenbach Parallel processing would be ideal, but this VI will be much larger eventually, running on machines with potentially only one processor. For the record I'm using LV 2011 Professional.
05-27-2014 11:26 AM
@lauraalkhoury wrote:
@ altenbach Parallel processing would be ideal, but this VI will be much larger eventually, running on machines with potentially only one processor. For the record I'm using LV 2011 Professional.
You still get parallel instances, even if you are only running on one CPU, so the end effect should be similar.
(of course the number of parallel instances is limited to 64).