LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

popup a new window with text in string control box

I am working on a report generation program. There is a front panel with many input widgets/controls, including a "Ok" button. After the user click the OK button, the program will do some computation and generate a string, a.k.a., the report. I wanna popup another window containing the report string in a string control box so that users can edit the report.

 

So, i have two questions:

  1. How to pass the value of a variable from the first window to the popup windows?
  2. How to pre-fill the string control box by some text?
--
Forrest Sheng Bao, Ph.D.
Assistant Professor, Dept. of Electrical & Computer Engineering
University of Akron, Akron, OH, USA
https://sites.google.com/site/forrestbao/
0 Kudos
Message 1 of 3
(3,368 Views)

Create a subVI to which you wire the original report string. In you program change the SubVI Node setup to "Show front panel when called" and "Close afterwards if originally closed". In the subVI implement a while loop that has to be stopped before closing the popup window. That would do the trick and gives you the highest degree of control.

 

See http://www.morechemistry.com/labview/contributions/popup

 

Sample vi's use LV 8.5.1.

Bart Boshuizen,
www.morechemistry.com
0 Kudos
Message 2 of 3
(3,361 Views)

Forrest,

 

To access the "SubVI Node Setup..." right-click on the subVI to get the shortcut menu and one of the options is this setup.

 

Cheers,

 

Jonah
Applications Engineer

National Instruments

Jonah Paul
Marketing Manager, NI Software
0 Kudos
Message 3 of 3
(3,333 Views)