LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom user input dialog box?

Hi,

I've been using the Express VI, "Prompt user for input" with checkboxes... it works great for small amounts of selections, but I need the user to pick between 65 choices. I'd like to have a prompt that opens that has a text-ring with all the choices in it (or something like that that would unclutter the prompt and the block diagram).

Is there a way to create a custom user input dialog box?

Thanks a million!
0 Kudos
Message 1 of 4
(8,363 Views)
Yes you can do this. It is actually just creating a subvi that is set to dialog in the options menu or you can set it however you want. see the labview help and examples and they will show you how to do this. Look up subvi's in the manual.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 4
(8,353 Views)
You can create a sub-vi that is closed until called. Under "Window Appearance" in the "VI properties" there is even a selection called Dialog. You have the sub-vi open when called (and close when released) have a loop that waits for the user to make a selection (and possibly hit enter or whatever to signal that the selection process is complete). You can have a text indicator that is passed values from the calling VI to allow passing messages, etc. If you use an enumerated type for the selections, its value may then be passed back to the calling routine. To see how NI originally did dialogs, open up their "Three Button Dialog" as one example. A dialog box need not be as complex as the "Three Button Core", it was made to be flexible.

Good luck and have fun.

Putnam Monroe
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 4
(8,353 Views)
Thanks all... way easier than I thought. I wound up just saving the express VI as another name and opening its block diagram. Entered what I needed and presto.

Thanks again.
0 Kudos
Message 4 of 4
(8,335 Views)