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
(2,730 Views)
Highlighted
Solution
Accepted by Mr.7

appname.png

 

Should be available in LV RTE

Message 2 of 8
(2,727 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
(2,719 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
(2,696 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
(2,683 Views)

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

0 Kudos
Message 6 of 8
(2,675 Views)

Then the answer you got will work just fine.

0 Kudos
Message 7 of 8
(2,673 Views)
Thankyou Darin..
0 Kudos
Message 8 of 8
(2,658 Views)