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

.NET Interface Statistics in LabVIEW

Code and Documents

Attachment

Overview:

Coding that exemplifies how to obtain data from the different Windows Interface Statistics.

Description:

This code consists on retrieving network statistics with LabVIEW. Under the hood it uses .NET to obtain the names of all installed interfaces. Also, we will obtain the amount of bytes sent and received.

 

Requirements:
1. LabVIEW 2012 or compatible
2. .NET Framework 2.0 or compatible

Steps to Implement or Execute Code:
1. Run the VI

Additional Information or References: 


Capture.PNG

 

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

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

Comments
BetaCommunityCo
Member
Member
on

First Cutomer Contributor!

Thank you very much for contributing your example, Philip. This is a perfect example of the type of content we are looking for!

I wish I had money in my budget to send you a prize like the kid who won something for being the 1 millionth downloader on iTunes...

pallen
Active Participant
Active Participant
on

Older version?

Any chance at a 7.1 version?

---------------------
Patrick Allen: FunctionalityUnlimited.ca
BetaCommunityCo
Member
Member
on

Saved and tested in LV 7.1

I've saved and tested the VI using 7.1. If your installation of 7.1 is old, you may want to read about using 7.1 and .NET 2.0 at Brian Tyler's BLOG; see http://detritus.blogs.com/lycangeek/2005/06/labview_and_net.html You still need to install the .NET 2.0 framework.