05-10-2014 06:27 AM
hello friends,
I am trying to develop a pop-up window for logging in into a labview application.
I am using prompt user dialog box for the purpose with two buttons "OK " & "Cancel". I have managed the OK button but whwnever I am Pressing Cancel Button it automatically goes to main window.
I just wanted the action that whenever I press Cancel Button My VI closes Automatically..
please give me some suggestions on this...
Thank you.
05-10-2014 07:24 AM
For your application you should make one case structure and put quit labview vi in false case.
See attachment for reference.
05-10-2014 11:19 AM
Quit LabVIEW is a bandaid at best, and quite a bad one to terminate your application. Your program flow should consist of some kind of state machine that properly terminates on the desired event (Cancel button, Exi9t menu, etc).
If build into an application it will stop automatically once the last front panel is closed and no other VI holds an open reference to itself or another front panel. While executing in the development environment you typically do NOT want LabVIEW to shutdown just because you happen to terminate your application during debugging.
05-15-2014 01:11 AM
Gud morning all,
Thank you for your valuable suggestions, I'll check whether my problem is solved or not. and come back to you again if having any problem.
thank you once again.
akshay joshi
05-15-2014 01:14 AM
Also please have a look at one of my problem,
Problem-in-camparing-two-sound-signals
I'll be glad if you can suggest me anything on this..