Example Code

Read Computer / User Name

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This example will read computer name and user name.


Description
This example will read computer name and user name.

Windows API are used to read the information


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

1.Run vi

 

VI Block Diagram

 Block Diagram.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Regards
Prabhakant Patil

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
sdrochek3
Member
Member
on

Thanks. Didn't have to do anything but drop this into my project and away I went.

Mark_Ramsdale
Active Participant
Active Participant
on

Just what I needed, works just as advertised.  Easy to drop in and run.

-------
Mark Ramsdale
-------
cous
Member
Member
on

Still working strong in LV 2017 and Win7 🙂