LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open frontPanel of SubVi displaying its current state

Solved!
Go to solution

Hello,

 

I have a SubVi within my MainVi which continuously calculates and displays stuff. In the MainVi I have a button, which when pushed should open the front panel of the subvi and display what ever it is doing at that point of time. 

 

I am able to just display its front panel but not able to display the calculations it is doing.

 

Thanks.

 

-H

openSubVi.png

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

That's because your subVI is reentrant and you are opening a clone.

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

How can I solve my issue?

 

If I do not make the SubVi reeterant I get the follwing error:

LabVIEW:  (Hex 0x448) The Open VI Reference function cannot prepare a non-reentrant VI for reentrant run.

 

-H

0 Kudos
Message 3 of 5
(2,891 Views)
Solution
Accepted by topic author H P

If you make your VI non-reentrant, then you have to change the options input of Open VI Reference to match. You have specified '8' and as the help explains, this will generate that error if the subVI is not reentrant.

Message 4 of 5
(2,886 Views)

Thank you.

 

I changed the 'option'  in Open Vi Reference to default.

 

-H

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