12-02-2010 09:32 PM
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
Solved! Go to Solution.
12-02-2010 09:34 PM
Show us your code. Thanks!
12-02-2010 09:53 PM
The code looks as the picture below, which belongs to the mainVI.
12-02-2010 10:17 PM
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.
12-03-2010 09:39 AM
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
12-03-2010 10:24 AM - edited 12-03-2010 10:24 AM
Make sure the subVI property is not set to floating or modal.
(VI properties...windows appearance...customize...windows behavior)
05-26-2022 04:40 AM - edited 05-26-2022 04:52 AM
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.