LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Instances VI server

Solved!
Go to solution

Hi all, I have to create multiple instances of a VI using the VI server method. I have set the "reentrant" properties of the client VI. If I call the client VI as sub-VI I can create N-instances without any problem. But if I use the VI server method when it executes the "run" method it gives me the following error:

Error 1000 occurred at Invoke Node in Server.vi
Possible reason(s):
LabVIEW: The VI is not in a state compatible with this operation.
Method Name: Run VI

I know that I cannot open multiple instance of the front panel in this way, but I should be able to run it. Look at the attached example.

 

Thanks..

0 Kudos
Message 1 of 2
(3,231 Views)
Solution
Accepted by topic author logatto

You have to pass the option "8" to your Open VI Reference. This calls the VI reentrantly, so the error will not occur.

Nevertheless, the way to call VIs in this way will stop the execution of the subVIs if the server finishes. So either you have to keep the server "alive" or you have to use VI templates (*.vit) instead of VIs.

Another note: If you have the subVI set to modal dialog, you will lock other windows from your LV application to be accessable!

 

hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 2
(3,220 Views)