LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Instances of the same VI

What is the best way to create an environment that runs multiple instances
of the same VI. The VI needs to run when called and n number of instances
will be needed. I would prefer not to use the same VI with n different names.
I would like to use one VI but the VI can not be reentrant because Indicators
and Controls are being used. I would appreciate any advice. Thanks.
0 Kudos
Message 1 of 3
(2,584 Views)
Hello,

It is a bit awkward, but the best solution I've been able to locate (when
you need to maintain independent front panel controls) is to programatically
copy the vi to form a duplicate then load the copy as a second instance via
vi server calls. Controls/indicators of each instance can also be accessed
via the server routines.


best of luck,

-- Bill --

"Don Barbarits" wrote in message
news:39ff93d4@newsgroups.ni.com...
>
> What is the best way to create an environment that runs multiple instances
> of the same VI. The VI needs to run when called and n number of instances
> will be needed. I would prefer not to use the same VI with n differen
t
names.
> I would like to use one VI but the VI can not be reentrant because
Indicators
> and Controls are being used. I would appreciate any advice. Thanks.
0 Kudos
Message 2 of 3
(2,584 Views)
Can you give example of programmatically copy a vi. Thanks
"william doggett" wrote:
>Hello,>>It is a bit awkward, but the best solution I've been able to locate
(when>you need to maintain independent front panel controls) is to programatically>copy
the vi to form a duplicate then load the copy as a second instance via>vi
server calls. Controls/indicators of each instance can also be accessed>via
the server routines.>>>best of luck,>
> -- Bill -->>"Don
Barbarits" wrote in message>news:39ff93d4@newsgroups.ni.com...>>>>
What is the best way to create an environment that runs multiple instances>>
of the same VI. The VI needs to
run when called and n number of instances>>
will be needed. I would prefer not to use the same VI with n different>names.>>
I would like to use one VI but the VI can not be reentrant because>Indicators>>
and Controls are being used. I would appreciate any advice. Thanks.>>
0 Kudos
Message 3 of 3
(2,584 Views)