Interfaces in NI-XNET
- Updated2025-04-14
- 2 minute(s) read
An interface is a software representation in NI-XNET of a single Ethernet connector on your PXIe-8520. When programming your PXIe-8520 with NI-XNET, the interface is the reference that NI-XNET uses to communicate with the external hardware connected to the interface.
With NI-XNET, each Ethernet interface name uses the syntax ENETn. n is a 1-indexed integer that identifies a specific interface within the scope of that communication protocol.
For example, for a two-port Ethernet module, the interface names are as follows:
- ENET1
- ENET2
The benefit of this separation is that you can use the interface name as an alias to any port so that your application does not have to change when your hardware configuration changes. For example, if you have a PXI chassis with a single Ethernet module, the Ethernet port labeled Port 1 is assigned as interface ENET1. Later, if you remove the module and install another, NI-XNET assigns interface ENET1 to the port of the new module. Although the physical port is in a different place, programs written to use ENET1 work with either hardware configuration without modification.