From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

How to get detailed System Information from within 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

Overview
To Get Advanced System Information by using LabVIEW

Description:
You can use LabVIEW to get advanced system information. This is very usefull when creating patches or updates to applications.
Here is a short list of what you can find using the systeminfo command with the System Exec vi:
Host Name
OS Name
OS Version
OS Manufacturer
OS Configuration
OS Build Type
Registered Owner
Registered Organization
Product ID
Original Install Date
System Up Time
System Manufacturer
System Model
System type
Processor(s)
BIOS Version
Windows Directory
System Directory
Boot Device
System Locale
Input Locale
Time Zone
Total Physical Memory
Available Physical Memory
Virtual Memory Max Size
Virtual Memory Available
Virtual Memory In Use
Page File Location(s)
Domain
Logon Server
Hotfix(s)
Network Card(s)

Instructions:
To implement this example:
  1. Run the VI
  2. Change the system info command by accessing the block diagram and run the VI should it be needed


To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

fp.PNGbd.PNG

**This document has been updated to meet the current required format for the NI Code Exchange.**
Joe Daily
National Instruments
Applications Engineer

may the G be with you ....

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

Comments
Ian_Ren
Member
Member
on

The example vi returns an empty string. I am using LabVIEW 2011 on Windows XP OS.