Example Code

Programmatically Retrieve User and Computer Network Information Using ActiveX in LabVIEW

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

Download All

Overview

This VI exemplifies how to get computer information through an ActiveX object.

 

Description

This VI uses the ActiveX object WshNetwork to display username, computer name, and domain.

 

Requirements
LabVIEW Base Development System.

 

Steps to Implement or Execute Code
1. Open the attached VI "User Info ActiveX LV 2012 - NI Verified.vi".
2. Run the VI.

 

Additional Information or References

 Snippet 2137.png

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

John Passiak

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

Comments
beuvink
Member
Member
on

Simple & straightforward vi!

---

25+ years long fan of LabVIEW. Move to Emerson looks to be for the better! See the last posts in subscription model thread.