MACADDRESS function

Synopsis
This function returns the MAC address of the current platform as a string. If used with a project running in emulation mode, it returns an empty string.
Variations
MACADDRESS()
Returns the MAC address of the first network interface, listed in the Network Interfaces section of the Platform Configuration dialog. This is best used with platforms containing only one network interface (such as, a Matrox Iris GTR or a PC with a single network card).
Parameters
Returns
Returned types: String.
Examples
1.

The following example returns the MAC address of the first network interface.

MACADDRESS()
MACADDRESS(NetworkInterfaceName)
Returns the MAC address of the specified network interface, listed in the Network Interfaces section of the Platform Configuration dialog. This is best used with platforms containing multiple network interfaces (such as, a Matrox 4Sight GPm or a PC with multiple network cards).
Parameters
NetworkInterfaceName

The name of the network interface. This information is listed in the Network Interfaces section of the Platform Configuration dialog.

Supported types: String.
Returns
Returned types: String.
Examples
1.

The following example returns the MAC address of the specified network interface (Network1).

MACADDRESS("Network1")