LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SubVI dialog box

Hi people ,

I want to a subvi as a pop-up window and once the task is done , i wanna close it immediately leaving the values to the main.VI

Can you help me?

Boldness has genius, power and magic in it!'
0 Kudos
Message 1 of 13
(4,814 Views)

Is this the same as your problem found here:http://forums.ni.com/t5/LabVIEW/dialog-box/m-p/2366450#M737025?

 

Show us what you have tried and where you are stuck.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 13
(4,801 Views)

You create a sub-vi with the "look" that you want for your dialog box, and any operator entries passed to output terminals. In the sub-vi you will probably need to have a while loop, with a way to exit, such as a "Yes" or "Continue" button. In the sub-vi's properties (right click on the sub-vi's icon) you can customize the appearance, removing the toolbar, etc., and in the execution have it set to run when opened.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 3 of 13
(4,799 Views)

Hi Cross ,

Ya you are right . Nearly same but i thought it would look  better if we have a pop-up menu till the user it tested the element. 

 

so I made it in a Sub.VI.

I have called it from the Main.VI but the problem is i couldn able close it after it worl is done .

 

 

How to close the dialog box after the work is done and return to main.Vi

Boldness has genius, power and magic in it!'
0 Kudos
Message 4 of 13
(4,797 Views)

Can you post the VI?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 13
(4,790 Views)

Talking about the Main.VI????

Why dat is so important? (I really dono )

Boldness has genius, power and magic in it!'
0 Kudos
Message 6 of 13
(4,788 Views)

Your dialog VI.  I want to poke around your VI to see if I can figure out where you're stuck.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 13
(4,786 Views)

'This is my dialog VI. pls correct me if i didn any mistakes .

I am in a hurry doing to finish my thesis next week.

Boldness has genius, power and magic in it!'
0 Kudos
Message 8 of 13
(4,782 Views)

Do NOT use the Stop function.  That is like hitting the abort button.  You need to stop your loops naturally (using the termination terminal).  I would also change your sequence stucture into a state machine.  That way you can skip steps if needed.

 

And does it make sense for a dialog to call more dialog boxes?  That's one GUI I would not want to use.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 13
(4,776 Views)

Thanks Cross,

What do you mean by Termination terminal ? I didn get it . What will be the problem if we use nested dialog boxes ?

 

Boldness has genius, power and magic in it!'
0 Kudos
Message 10 of 13
(4,766 Views)