LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data entry via dialog box... is it possible???

I am faily new to LabVIEW and have a question regarding data entry.

When my vi is first kicked off, is there a way to prompt the user for data via a dialog box? In other words, what I would like to do is have a dialog box pop up when the program is first started. This dialog box would prompt the user for 3 numbers, which would be stored as variables and used later in the program. Is there an existing subVI that could do this? I have looked, but all I can find is the 1 Button and 2 Button dialog box subVIs.

Any help would greatly be appreciated!
Thanks!

As a note, I am using LabVIEW 6.0
0 Kudos
Message 1 of 2
(3,178 Views)
Only one way of doing that : create your own sub-vi :
See the attached jpg to see what the diagram should look like.
The key point is to tell the vi how to behave : right click on the top-right wi window icon and select vi properties, then go to "Window appearance". Push the "Custom" radio button, then "Customize...".
Uncheck "W has title bar", "show menu bar", "show scroll bar", "show tool bar", "allow user to close w", "allow user to resize w", "allow user to minimize w", "Center window";
Check "show front panel when called", and "close afterward". Don't check "show fp when loaded".

The second step is to create the connector to be able to use the vi as sub-vi :
Right click again the icon, ON THE FP WINDOW and select "Show connector". Right-clic
k a second time, and go to "Patterns", then choose the appropriate connector shape. Yours should have 4 outputs : 1 for each variable and one, as boolean, for the OK INDICATOR. The third icon should do it.
Then, use the wiring tool, click alternatively on the icon connector and the corresponding INDICATOR (not control !).
Then resize the window, so the user will not see the indicators (alternatively, hide them (right-click on the diagram indicator icon...))
Write the message you want to display on the FP to prompt the user (could be passed as input in a more refined version of the vi...).
That's it.
CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 2
(3,178 Views)