02-18-2009 02:40 AM
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..
Solved! Go to Solution.
02-18-2009 03:43 AM
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