LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pause execution

Hello!! I want to pause my execution after a message ("display message to the user" function) and enter some data (in many fields) on the front panel. After that i need some other messages to be displayed. How can i pause,enter that data (with paused execution) between these messages;; Thanks a lot!!!
0 Kudos
Message 1 of 6
(4,793 Views)

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.

0 Kudos
Message 2 of 6
(4,789 Views)

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.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 6
(4,772 Views)
Is it possible to save it as a labview 8.0 file because i cant open it..thanks a lot!!
0 Kudos
Message 4 of 6
(4,758 Views)

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.

 

Dialog[1].png

Message Edited by tbob on 04-29-2010 03:06 PM
- tbob

Inventor of the WORM Global
0 Kudos
Message 5 of 6
(4,754 Views)

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.

0 Kudos
Message 6 of 6
(4,742 Views)