LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call looping-vi twice?

Hello,

i have a sub-vi that is looping on a comport until it receives a special-character (\r\n) then the loop stops.

Now i need to execute this vi twice at the same time. Currently i just copied and renamed it - this is working.

 

But is there also another way so that i only have one vi?

 

Thanks for help

0 Kudos
Message 1 of 5
(2,523 Views)

You can make the VI re-entrant. Be aware that this has its own caveats. If they're sharing hardware, then this won't do you any good, for instance.

 

You can read about re-entrancy in the LabVIEW Help.

0 Kudos
Message 2 of 5
(2,520 Views)

Parallel For Loop?

Richard






0 Kudos
Message 3 of 5
(2,506 Views)

A parallel for loop would not allow the second instance to run until the call to the first instance of the VI is finished.

0 Kudos
Message 4 of 5
(2,491 Views)

Thanks smerc. Sorry OP for the off-topic.

Richard






0 Kudos
Message 5 of 5
(2,478 Views)