LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we call same VI statically and dynamically in same application ?

Hi,

I am having an application where i call a VI dynamically using VI server. However at some other place in the same application, i call the VI statically (i.e. the VI icon is placed in the block diagram of parent VI). But when i run the application i get following error message:

"Possible reason(s):

LabVIEW: The VI is not in a state compatible with this operation."

Why is it so ?. Can we not call the same VI dynamically and statically at two differenct locations in the main program ?.

Thanks for any inputs.
0 Kudos
Message 1 of 3
(2,738 Views)
first of all, why do you need to call the same vi with different methods in the same application?

When the vi is loaded statically, it remains in the memory if references/properties/methods used in that vi.

you can try to check the "reentrant" parameter in the vi setting to see if it works.

-Joe
0 Kudos
Message 2 of 3
(2,719 Views)
If a VI is statically in a running hierarchy, it can be also called dynamically using "Call by Reference" node after opening it with a its type specifier refnum. However, you can't invoke the Run VI method, the same way you can't run it using the Run arrow.


LabVIEW, C'est LabVIEW

0 Kudos
Message 3 of 3
(2,716 Views)