LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get PC host name using labview

Solved!
Go to solution

hi,

 

I have a need to display the pc host name(login name) in my application. How can i get it using labview in runtime i.e. if i write a program and execute it in different PC systems/same system with different users, then i should get the corresponding login names.

 

Can any one help me on this?

 

Thanks,

 

Regards,

Arvinth

0 Kudos
Message 1 of 8
(5,963 Views)
Solution
Accepted by topic author Mr.7

appname.png

 

Should be available in LV RTE

Message 2 of 8
(5,960 Views)
Well, the PC host name and the login name are two different things, so which one are you trying to get? Darin's snippet gives you the login name. If you want the PC name use this method.
Message 3 of 8
(5,952 Views)

Thankyou for the answers..I want to display the login name..i have labview developer suite..i am not to get the option in real time menu in the functions pallette.

 

do i need to install any tool kit?

0 Kudos
Message 4 of 8
(5,929 Views)
Now you are asking about real-time instead of run-time. There is a big difference. What exactly do you want?
0 Kudos
Message 5 of 8
(5,916 Views)

Ok i wanted to display the login name of the computer in runtime.

0 Kudos
Message 6 of 8
(5,908 Views)

Then the answer you got will work just fine.

0 Kudos
Message 7 of 8
(5,906 Views)
Thankyou Darin..
0 Kudos
Message 8 of 8
(5,891 Views)