LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there anything in labview like a message box?

I would like to add an input box to my VI so that the user can click a button and then a box will come up where the user can enter settings.  I am using version 8.5.1 Basic, so I don't have any of the event-driven capabilities.  My backup plan is to use a tab control, but I think that it is a bit cumbersome.  Any ideas?
0 Kudos
Message 1 of 6
(6,835 Views)
I think the Basic edition has some of the user-interface Express VIs. Depending on what information you want to have entered you can try the Prompt User Express VI:




Of course, you can always make your own. Search the Example Finder (Help -> Find Examples) for "dialog" and you'll see a few.



Message Edited by smercurio_fc on 07-09-2008 04:15 PM
0 Kudos
Message 2 of 6
(6,824 Views)
Thanks!  That was exactly what I was looking for.  Is there any way to format the display of the input controls in the prompt?
0 Kudos
Message 3 of 6
(6,808 Views)
What you can also do is have a standard string control...and modify it's visibility/size/color through properties. This option gives you plenty of flexibility.
0 Kudos
Message 4 of 6
(6,803 Views)
Format in what way? As in the datatype, or the number of decimal places, or something like that? If you want to do customization, you can convert the Express VI to a regular VI and you can then modify it to your heart's content. To do so:
  1. Start off with placing the Express VI on the block diagram, and add the inputs that you want.
  2. Then, right-click on the Express VI icon on the block diagram and select "Open Front Panel". You will get a dialog asking you if you want to convert the Express VI to a regular VI. Click on the "Convert" button.
  3. A new VI will open, and you can modify the controls as you need.
  4. Save the new VI in your project's directory structure.
You will notice that the icon on the block diagram will have changed to an ugly shade of yellow and not look like a regular VI icon. Just right-click on it and select "View As Icon".
0 Kudos
Message 5 of 6
(6,803 Views)
If I unerstood you right there is no Event case in the Basic edition. But anyway for creation of your own dialog you don't need it. Check attached vis and modify it as you need.
LV 2011, Win7
0 Kudos
Message 6 of 6
(6,797 Views)