From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem when executing the same subVI in parallel.

Hey!
I have created a subVI that I am using in two applications that executes in parallel. For some reason the applications is using the same instance of the subVI, which creates conflicts when the applications are trying to use the same subVI at the same time. Is it possible to solve this problem?

/Jakob
0 Kudos
Message 1 of 3
(2,258 Views)
Hello,

If you run the subvi in reentrant execution, it will use another instance of it everytime it runs.
Right click on the icon on the subvi window top right and then choose - execution - reentrant execution.

Hope it helps.
Paulo
Message 2 of 3
(2,254 Views)
Open the SubVI and go to File>>VI Properties. Select Execution and check "Make VI reentrant". This should solve your problem. You should read more about reentant VIs and how they work in the site. They have different kind of uses.

___________________
Try to take over the world!
Message 3 of 3
(2,253 Views)