LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vi server require for separate threads?

To execute multiple vi's as separate execution threads, must they be started
with the vi server? I have seen examples (notifies, queues, ets.) where vi's
are started just by passing a ref number to them, and having no vi outputs
wired. Are these vi's actually running as separate processes?
Randall Miller
0 Kudos
Message 1 of 2
(2,608 Views)
Randall Miller wrote:

> To execute multiple vi's as separate execution threads, must they be started
> with the vi server? I have seen examples (notifies, queues, ets.) where vi's
> are started just by passing a ref number to them, and having no vi outputs
> wired. Are these vi's actually running as separate processes?
> Randall Miller

You can use the VI Setup->Execution Options to set each VI to the thread
it should run in. I believe that by default they run in the same thread as the
caller.

If the VIs should always run in a certain thread then setting them to that
thread using VI setup will be much easier.

Ps After I re-read the question, I will say there are a limited number of
threads
(about 23) that LV has and that is using all Exe systems (5) and all pr
iorites
(4each)
There are some very sepcific rules about threads so I would suggest you search
the NI site

Kevin Kent
0 Kudos
Message 2 of 2
(2,608 Views)