NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

lookup string for current user

Dears,

Anyone can tell me how can I get current user information(name, operator or developer or administrator...)? Whith what lookup string & vi?

    --- At custom UI program

    --- right after login

 

 

Thanks

WD

0 Kudos
Message 1 of 3
(3,900 Views)

I'm not a LabVIEW guy, so I'm not going to be able to point you at the proper vi, but the string you want is located at "StationGlobals.TS.CurrentUser" to get the Current User Container that has all of the information about who is currently logged in. If you've accessed TestStand properties using LabVIEW before, then the vi you used to do that will work for this as well.

 

Hope this helps.

 

-Jack

0 Kudos
Message 2 of 3
(3,881 Views)

To get the user group, you have to loop through all of the groups and see if your user name is in that group.  

 

This VI should help:

http://forums.ni.com/ni/attachments/ni/330/35926/1/current%20user%20group.vi

 

I would also suggest looking at this thread:

http://forums.ni.com/t5/NI-TestStand/get-group-name-of-currently-logged-in-user/td-p/595452

0 Kudos
Message 3 of 3
(3,876 Views)