Nullllll Posted June 27, 2007 Report Share Posted June 27, 2007 i have problem in my VI , it is aquring form me password before running the VI , if I run the VI before enter the password it will give me erroe msg?? plz find the attched VI , admit ur help Quote Link to comment
VDB Posted June 27, 2007 Report Share Posted June 27, 2007 Nice barbie colors... Right at the start of the VI you compare the password with 'A'. This fails, thus the error message. VDB Quote Link to comment
Jon Sweeney Posted June 27, 2007 Report Share Posted June 27, 2007 QUOTE(Nullllll @ Jun 26 2007, 02:51 AM) i have problem in my VI , it is aquring form me password before running the VI , if I run the VI before enter the password it will give me erroe msg??plz find the attched VI , admit ur help Nullll, You should not check the password until you enter something into it. You can do this by using events, or by using a shift register to check when the password has changed (loop until it does). In the copy of your vi that I downloaded, the Password field was disabled, so nothing can be entered when the program is running. You will have to disable it (right click on the control and choose Properties). I think you should compress your vi to approximately one page, or at least revise it so you only have to scroll in one direction. That would make it easier for you and others to see what is going on. Also take some the bends out of your wires for the same reason. See the LabVIEW help under "style guidelines - checklist" (in 8.0) to get some other good ideas. Good luck disarming the system. Jon Quote Link to comment
Cmal Posted June 27, 2007 Report Share Posted June 27, 2007 QUOTE(Nullllll @ Jun 26 2007, 03:51 AM) i have problem in my VI , it is aquring form me password before running the VI , if I run the VI before enter the password it will give me erroe msg?? plz find the attched VI , admit ur help Nullllll, I would recommend not using the Stop primitive in the case where the wrong password is selected. This is equivalent to pressing the Abort button, which should really never be used unless your program hangs unexpectedly. A better way to do things would be to simply let your program finish without going into any other cases. Chris M Quote Link to comment
ohiofudu Posted June 27, 2007 Report Share Posted June 27, 2007 QUOTE(Nullllll @ Jun 26 2007, 03:51 AM) i have problem in my VI , it is aquring form me password before running the VI , if I run the VI before enter the password it will give me erroe msg??plz find the attched VI , admit ur help Nulllll, I think you have to rework on your code.Ok Change the Password to ABC see Mod Vi or see this Demo PW vi you will have to change your code to use it .Good luck http://forums.lavag.org/index.php?act=attach&type=post&id=6230 http://forums.lavag.org/index.php?act=attach&type=post&id=6228 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.