NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize TestStand Login & Logout Procedure to read list of available users from ini file

I want to change TestStand Login & Logout Procedure:

 

1. When TestStand is opened, TestStand must read list of users that are defined in the sistem file: can be ini file, txt file, excel file. The drop down menu in the Login popup menu must be populated with that users.

 

2. User then select his name from the drop down menu in the TestStand Login popup menu.

 

3. List of users should also tell TestStand if the user that wants to login is educated correctly so that he can login to teststand. If this is true, user can login to teststand, otherwise TS tells user that they don't have competences to use TS.

 

I used this link to customize TestStand Login & Logout Procedure:

https://forums.ni.com/t5/Example-Programs/Customizing-the-TestStand-Login-amp-Logout-Procedure/ta-p/...

 

I have copied FrontEndCallback.seq and Code Modules to TestStand Public-Components-Callbacks-Frontend folder.

 

Now I need help with moderating LoginUser.vi to realize the project.

 

Thank You for Your help

0 Kudos
Message 1 of 4
(2,866 Views)

Dear Customer,

Can you please send us the file called LoginUser.vi you wanted to modify, and can you please be more specific on what functions on LabVIEW you want us to elaborate to be able to get to your final goal?

Thanks in advance.

Basel

 

 

0 Kudos
Message 2 of 4
(2,794 Views)

@TBasel wrote:

Dear Customer,

Can you please send us the file called LoginUser.vi you wanted to modify, and can you please be more specific on what functions on LabVIEW you want us to elaborate to be able to get to your final goal?

Thanks in advance.

Basel

 

 


Basel,

You can find the VI in the link provided in the original post in Al's example. 

 

Still trying to understand the original question:  Does the external file (ini, excel, etc...) also contain information about the user, for instance if they are not allowed to use TestStand?  How would it be formatted? 

 

If you look through the LoginUser.vi you will see a subVI called Get New User.  Inside of there you find a subVI called LogInDialog.vi.  They are populating the User name: dropdown with the existing users from the TestStand Users.ini file.  This is demonstrated in the GetAllUsers.vi.  I think if you modified the GetAllUsers.vi to pull the list of users from your file and then in the DoLoginUser.vi you will need to add the user to the Users.ini file and log them in using the existing code. 

 

Hopefully this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 4
(2,786 Views)

Also, is there a reason you don't want to use the existing Users.ini file and just add a custom privilege for NoAccess.  This would simplify things dramatically.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 4 of 4
(2,784 Views)