LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating User Interface

I would like to create a User Interface (UI), and that UI is linked to the second UI. For instance, the first UI I ask user to enter any number in the textbox, and hit OK button. After the OK button is clicked. I want the first UI disappear, and the second UI display to show the result of something that I want to show.
Hoping anyone has any advise to share with me. I am a beginner.
Thank you very much

Sonny
Email: son09@yahoo.com
0 Kudos
Message 1 of 3
(2,929 Views)
I think that the attached vi will demonstrate what you are trying to do. It uses a main vi that calls two different subVIs. If this doesn't help then let me know.

Brian
Message 2 of 3
(2,929 Views)
In your example all would need to is to create a subvi ("dialog1.vi" for
example). this subvi would have a text box (string control) and an OK button
in the while loop (wired to the terminator). Put the string Control in the
while loop and wire to the outside of the loop and to a string indicator.
This indicator needs to be connected as an output (right click on icon and
show connections). In VI setup set the vi to be a dialog box, and to show
itself when loaded and close when finished. Plop this vi onto a new vi's
diagram and connect its string out to what ever you want to process. If you
then want to through up another dialog, just repeat the process. The top
level vi need not even show itself in the finished app, it could just sit in
the background chucking up dialog
s.
Hope this is of some use.
SWatts
SSDC


Sonny wrote in message
news:506500000008000000AD230000-993342863000@exchange.ni.com...
> I would like to create a User Interface (UI), and that UI is linked to
> the second UI. For instance, the first UI I ask user to enter any
> number in the textbox, and hit OK button. After the OK button is
> clicked. I want the first UI disappear, and the second UI display to
> show the result of something that I want to show.
> Hoping anyone has any advise to share with me. I am a beginner.
> Thank you very much
>
> Sonny
> Email: son09@yahoo.com

Steve


Opportunity to learn from experienced developers / entrepeneurs (Fab,Joerg and Brian amongst them):
DSH Pragmatic Software Development Workshop


Random Ramblings Index
My Profile

Message 3 of 3
(2,929 Views)