How to Acquire PC Mac Address Using LabWindows?

Updated Mar 14, 2024

Reported In

Software

  • LabWindows/CVI

Issue Details

I m trying to acquire MAC address from a PC. Is it possible to retrieve the MAC address using LabWindows?

Solution

There are three methods that can be used to acquire PC MAC address through LabWindows.

1. Using Windows SDK function
  • MAC address can be retrieved by using the Windows SDK function; SnmpAPI library.
2. Using .NET Controller 3. Using DLL function that calls command prompt
  • MAC address can be retrieved by importing and use the DLL functions that executes command prompt command, ipconfig/all. An example of creating the DLL in LabVIEW provided in the link here

Additional Information

Only certain Windows SDK functions are available in LabWindows Base edition. Hence, LabWindows Full edition is required to access SnmpAPI library. 

Was this information helpful?

Yes

No