ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Login Screen program help needed

Hello guys ..

Im working on a project. I havent created a full working application with all these login details and so.So you can say that Im relatively new to all this.I have put together a vi that will authenticate a supervisor with his username and password and store it in a text that will be used to read usernames and passwords.Though this is not the effective way to do it ,Im going to go ahead with it.

 

My problems are :

  1. This vi is being called from another vi through a event structure.this should run automatically and when the username and password is entered it should store the operator name in that text file .If there is a authentication failure it should throw a dialog box showing failure.
  2. Can you please add ok button to actually check for the authentication.
  3. As you can see ,if you run this Vi the system shows a dialog box which will ask for the path and file where it needs to store the text.I want the files path and name to be given at the backend so that the supervisor is stored in a text without having the user to select the path.

Any sort of help would be great

 

Thank you.

0 Kudos
Message 1 of 4
(3,266 Views)
can u post your code in 8.5?
Anil Punnam
CLD
LV 2012, TestStand 4.2..........
0 Kudos
Message 2 of 4
(3,247 Views)

 
for file path, what you can do is.....use "current VIs path" function then strip path by one level for development mode.
 
then add you test files name to path using "build path"......then use this path to store text file.........
Anil Punnam
CLD
LV 2012, TestStand 4.2..........
0 Kudos
Message 3 of 4
(3,245 Views)

Here is the solution to your problem.

 

 

You will have to use this vi as sub vi in your code and then using connector pane you will have to configure the inputs and outputs. As i can see you have already done that. If you want it to throw an error you can use dialog box for the same. You can find the same in functions palette>> Prgramming>> Dialog and user interface.

 

You are not giving path to write to text file.vi. You can give the path of file there itself so that it will not ask you for file location.

0 Kudos
Message 4 of 4
(3,196 Views)