LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I interact with mainvis and subvis without closing neither of them?

Solved!
Go to solution

 

 

 

I have a mainVI that opens a subVI perfectly, and I´m using the "Open VI reference" & the "Call VI Reference Node" to run the subvi. However, once I open the subvi and it´s running, I can´t do anything with the mainVI. The only way to interact with the mainVI again it´s by closing the subVI, which I don´t want that happens because I do need both working together and interact with both at the same time.  

 

Does anybody can help me?

 

Thanks

0 Kudos
Message 1 of 7
(3,397 Views)

Show us your code. Thanks!

0 Kudos
Message 2 of 7
(3,396 Views)

 

The code looks as the picture below, which belongs to the mainVI.

 

 

code.jpg

0 Kudos
Message 3 of 7
(3,390 Views)

Hi,

If you use the Call By Reference Node to load a VI into memory and display the front panel, the rest of the block diagram does not execute until the target VI finishes executing.

 

Inorder to make the parent and child VI independant, Use dynamic calling as shown.dynamic call.png

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Message 4 of 7
(3,380 Views)

 

 

it's working good in terms of both are running at the same time; however, I want to interact with the mainVI. Basically, I need to press buttons and change parameters in the mainVI while the subVI is running.  

 

Thanks for helping

 

 

0 Kudos
Message 5 of 7
(3,341 Views)
Solution
Accepted by topic author bmjunar

Make sure the subVI property is not set to floating or modal.

 

(VI properties...windows appearance...customize...windows behavior)

0 Kudos
Message 6 of 7
(3,333 Views)

Whenever I use VI reference, my memory is flushed due to low usage of it in my purpose.

 

In case of floating or modal dialog (subVI), auto dispose option=on gave the error.

The subVI is loaded and closed in many times.

 

In auto dispose=off, by passing the reference to subVI or event structure,

should I close the reference or hidden FP of subVI in closing SubVI?

 

labmaster.

0 Kudos
Message 7 of 7
(1,563 Views)