LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating already open subvi's front panel

Solved!
Go to solution

Hello,

I'm trying to create a user message which is updated while the time countdown not finished yet. Its front panel should remain opened till the user press 'Ready'.

Can I do that without reopen the front panel again and again in the for loop (while calling the subVI),  but only updating the already open subVI's front panel?

Can I somehow use a refnum to the subVI?

 

 Thank you

Download All
0 Kudos
Message 1 of 10
(3,653 Views)
Try these. I moved the open front panel property to the main vi and you close in in the sub vi.
Tim
GHSP
Download All
0 Kudos
Message 2 of 10
(3,637 Views)

Another possibility.

 

Jean-Marc

Download All
0 Kudos
Message 3 of 10
(3,619 Views)

Hello,

Thank you for your fast response.  It do it's work greatly. 

But I still has a problem with getting the "Ready" status out of the subVI: I tried directly and by reference, but I can't find the way to receive the status in my main program.

What is the correct way to do that?

 

Thank you a lot for your help.

Irena 

0 Kudos
Message 4 of 10
(3,583 Views)

just to make it clear: the program that worked is of aeastet.

The second (of J-Mone gave me an error about "Invalid Property node" of the 'caller'. I'm pretty new with LabVIEW, so this code is too complicated for me to try to debug it ....:smileysad: Thank you for your good intentions.

 

Irena 

0 Kudos
Message 5 of 10
(3,578 Views)
The most flexible way is to use a queue or a notifier to pass the data. Global variables can be problematic.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 6 of 10
(3,577 Views)
Solution
Accepted by topic author Dvorkind
SOmething like this should work.
Tim
GHSP
Download All
0 Kudos
Message 7 of 10
(3,565 Views)

Sorry:  Save the two VI in the same directory.  Open only CheckMessageV3.vi and run.

 

 

JM

Download All
0 Kudos
Message 8 of 10
(3,556 Views)

Thank you, aeastet. It works perfectly. Simply and great !  

J-M, thank you too, it works now, but when it counts down to zero, it ends without waiting to user's 'Ready'. Anyways,  I would be glad if you could explain me your code, so I can learn from it.

 

Thanks a lot to you both for your effort. 

0 Kudos
Message 9 of 10
(3,542 Views)

I add comments.

 

 

Jean-Marc

Download All
0 Kudos
Message 10 of 10
(3,534 Views)