LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run Multiple Same Vi in Parallel?

Solved!
Go to solution

Hello,

 

I have a main VI, and a second VI

 

in the main VI, i will put a button, Add new OVEN, when the user press it, the second Vi will run and Capture the Oven Datas.

When i click again this button, Another Windows of the Second VI will start and Capture the Second Oven Datas...

ect...

 

I dont know how to make my VI run Many Times.. as in parallel mode... Same Vi running.. and not connected with the Other one...

 

Thank you all for you help,

 

//The Best Way to Predict The Future is To Invent it//

 

~~~~~~~~~~~~~~~~~~Looking for a LABVIEW JOB (In EUROPE)>~~~~~~~~~~~~~~~~~~


**The Best Way To Predict**The**Future Is To Invent It**

Salimos - View my most interesting photos on Flickriver
0 Kudos
Message 1 of 14
(9,292 Views)

Good morning

 

Check example in: C:\Program Files\National Instruments\LabVIEW 8.5\examples\viserver\runvi.llb 

 

 

Message 2 of 14
(9,283 Views)

Hello,

 

I am trying to do this.. without using the TCP server.. cause i will use it inside my VI,

 

after putting In the option Field in the OPEN VI Reference the Value (8..  As an reentrant VI..)

 

I am having the Following Error

 

The fonction Open VI cannot prepare an (Non-reentrent VI for an Reentrant execution)..

 

how can i change my VI to an Reentrant one??

 

Thank you Very much for ur Valuable help,

 

Best Regards,

~~~~~~~~~~~~~~~~~~Looking for a LABVIEW JOB (In EUROPE)>~~~~~~~~~~~~~~~~~~


**The Best Way To Predict**The**Future Is To Invent It**

Salimos - View my most interesting photos on Flickriver
0 Kudos
Message 3 of 14
(9,274 Views)

VI set reentrant in properties of VI in Execution section.

 

🙂

0 Kudos
Message 4 of 14
(9,261 Views)
Solution
Accepted by salimo

check:

 

http://zone.ni.com/reference/en-XX/help/371361A-01/lvconcepts/suggestions_for_exec/#Simultaneously_Calling_SubVIs_from_Multiple_Places

Message 5 of 14
(9,257 Views)

Thank you for help,

 

My Vi is finaly Working,

 

Have a good end of day 😉

~~~~~~~~~~~~~~~~~~Looking for a LABVIEW JOB (In EUROPE)>~~~~~~~~~~~~~~~~~~


**The Best Way To Predict**The**Future Is To Invent It**

Salimos - View my most interesting photos on Flickriver
0 Kudos
Message 6 of 14
(9,223 Views)

Thank you.

 

I finished in this moment 😉

0 Kudos
Message 7 of 14
(9,211 Views)

Hi, I am practicing the same settings on the reentrant flag of the subVI, but yet it doesn't work! The url link on the thread which is cosidered the solution is no longer available! please advice.

 

Siamak

 

 

0 Kudos
Message 8 of 14
(9,016 Views)

Here are a couple other articles.  What do you mean it doesn't work?  Does your main VI call the subVI multiple times, but only one instance is executed at a time?  Some other problem?

 

http://decibel.ni.com/content/docs/DOC-5598

 

http://digital.ni.com/public.nsf/allkb/98847B4E4C715E6D86256C59006B57CC

0 Kudos
Message 9 of 14
(9,007 Views)

Calling reference to the subVI is in the loop (LoopA) (with different parameters), and there is a main loop (LoopB) in the subVI. LoopA does not proceed after the first iteration. When I stop the subVI loop (LoopB) from the main VI using a shared variable, then LoopA grows up.

 

I will take a look into the links you forwarded, and will do more tests.

 

Cheers,

Siamak

0 Kudos
Message 10 of 14
(8,993 Views)