LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating threads for vi's

labview 5.1

How can I create a thread to execute the same vi in a multiple context?

Task is: serve multiple clients

Thanks,
Alexandre
0 Kudos
Message 1 of 4
(2,961 Views)
Under Tools > Options is 'Performance and Disk' in the drop-down box. There is then a check box for 'Run with Multiple threads'. This works if your OS lets you run with multiple threads. Also, if you do change this setting, you'll have to restart Labview for it to take effect.
0 Kudos
Message 2 of 4
(2,961 Views)
Alexandre, upon further thought, my answer may not really apply to your quesiton, I might have mis-interpretted multi-threading as what you are looking for - if so, please disregard. Doug
0 Kudos
Message 3 of 4
(2,961 Views)
One way is to make the VI reentrant. When the VI is reentrant, you have a
separate instance for each node on diagrams and for each strict reference
opened to the VI.

However, if you have to run the VI dynamically (non-strict reference and Run
VI method), then you save the VI as a template with a *.vit extension. Every
time you open a reference to a template VI, a new copy (different name) of
the VI is created in memory.

Jean-Pierre Drolet
Scientech R&D

"Alexandre Komyak" a écrit dans le message news:
3B4D836B.5D84E6B9@cameca.fr...
> labview 5.1
>
> How can I create a thread to execute the same vi in a multiple context?
>
> Task is: serve multiple clients
>
> Thanks,
> Alexandre
>
>


LabVIEW, C'est LabVIEW

0 Kudos
Message 4 of 4
(2,961 Views)