04-29-2010 01:17 PM
04-29-2010 01:21 PM
Your question is far too vauge. There are a ton of ways this can be done. What kind of program do you already have? What are the "other messages" that need to be displayed? Are these other dialog boxes? Are these dialog boxes modal? Are you calling these dialogs statically or dynamically? A static dialog box will force the calling VI to wait until the dialog has been dismissed.
In general, if you have a state machine architecture, this is doable farily easily.
04-29-2010 02:31 PM
Here is a simple Dialog vi that takes in the instructions and displays it in the Title box on the front panel. The user then enters information in the string box. Then the user clicks OK. If you put this vi into your code, it will pause the program until the OK button is pressed. The Dialog VI will pop up, then go away once the OK is pressed, then your code will continue. Actually, you should add error in and out to the Dialog VI so that you could cause the proper execution flow.
Modify it to your needs. Instead of a string, put in whatever data type you need. You can set the key focus to the box where the user will start typing, then he won't have to click in the box first. I've made this VI very crude so that you can practice making it better. Change the icon to something more suitable.
04-29-2010 04:49 PM
04-29-2010 05:05 PM - edited 04-29-2010 05:06 PM
Sorry, I only have LV2009. But here is a picture. Like I said earlier, add error in and out so you can put it anywhere in your program and use dataflow to dictate when to pause, and add key focus for the String box. Also, you have to set the VI Properties - Window Appearance to Dialog so that it will pop up when called.
04-29-2010 05:18 PM
Dead Poet wrote:
Is it possible to save it as a labview 8.0 file because i cant open it..thanks a lot!!
Have you looked at the shipping examples? There are some that show dialog boxes.