08-01-2005 04:04 AM
08-01-2005 04:43 AM
Hello there
under windows you can use a API function to get the current user name (see attachment below). then you can change the behaviour of your app depending on the user name.
best regards
chris
08-01-2005 07:13 AM
08-04-2006 12:14 PM
I also discovered that if you lay down a PROPERTY NODE from the VI SERVER palette, and set the property to APPLICATION - USER NAME, you get the user name.
Is there a reason this wasn't mentioned? Is there something I'm missing?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
08-07-2006 03:19 AM
hi there
the property "application:user name" returns NOT the name of the current windows user. you can set this "user name" to whatever you want with the menu item "tools->user name".
08-07-2006 03:28 AM - edited 08-07-2006 03:28 AM
08-07-2006 03:54 AM
08-07-2006 05:33 AM
I can change the LabVIEW USER NAME to Superman, and the app:User Name reports "Superman".
However, If I build an application from the VI, even as "Superman", when the app runs, it reports my real log-in name. In other words, the LabVIEW user name did NOT get attached to the application.
I understand that it could be faked, but for my purposes, that might be sufficient.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
08-10-2006 01:19 PM
This issue has been corrected in the LabVIEW 8.2 Help. If you find errors or missing information in the NI documentation in the future, you can submit product feedback at ni.com/contact.
@chrisger wrote:the documentation says:Available on local LabVIEW only No
Available in Run-Time Engine Yes (Read/Write)
Permissions Read/Write