LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Computer freeze when pressing OK on a pop up dialog

Hi,
I have a dialog.vi used as a subvi. It will pop up when runing a program. This dialog.vi will allow me to input information such as sample no., sampling rate, etc
The dialog.vi can run itself no problem. The problem arises when I use it as a subvi in a main program. When I run the program, the dialog box will pop up as expected, but after I enter all the information and click on the OK button, the cpu usage rose to 100%, and the program just freeze there. Any suggestion will be greatly appreciated.
 
bj
0 Kudos
Message 1 of 3
(2,572 Views)
BJ,
 
My guess is the problem lies in whatever executes immediately after you press the ok button not the popup itself.  Take a look at that.  Post your vi if you can or explain what your vi SHOULD do after you press ok.

Brian
0 Kudos
Message 2 of 3
(2,565 Views)
Hi
 
looks like your dialog VI has a while loop which is not stopping and running at maximum iteration rate
Try putting a delay for the dialog VI's iterations
If not post ur VI and we can sugest better
 
Regards
 
Dev
 
0 Kudos
Message 3 of 3
(2,549 Views)