Ethernet Interface States and Transitions
- Updated2025-04-14
- 3 minute(s) read
The interface controls the communication on the physical network cluster. Multiple NI-XNET sessions can share the interface. For example, you can use one session for input on interface ENET1 and a second session for output on interface ENET1.
Ethernet Interface States
While the interface is stopped, you can change properties specific to the interface (those in the interface category of your API). When more than one session exists for a given interface, interface properties provide shared access to the interface configuration. For example, if you set an interface property using one session, then get that same property using a second session, the returned value reflects the change.
Properties that you change in the interface are not saved from one execution of your application to another. When the last session for an interface is cleared, the interface properties are restored to defaults.
The interface remains in state: Interface=Communicating as long as communication is feasible. For information about how the interface transitions in and out of this state, see state: Interface=Comm State Communicating and state: Interface=Comm State Not Communicating.
In LabVIEW, state: Interface=Communicating behaves differently for Ethernet as compared to other XNET protocols (e.g., CAN). For more information, refer to the Ethernet Operational Status property in the NI-XNET API reference.
Ethernet Interface State Transitions
- Read or Write: The automatic start described for state: Session Transition=Start Session uses a scope of Normal, which requests that the interface and session start.
- Start: Calling this function with scope of Normal or Interface Only requests that the interface start.
state: Interface Transition=Start Interface occurs as follows, based on the start trigger connection:
- Disconnected (default): Occurs as soon as it is requested (calling Read, Write, or Start).
- Connected: Occurs when the connected source terminal transitions low-to-high (for example, pulses). Every Start Interface transition requires a new low-to-high transition, so if your application stops the interface (for example, with Stop), then restarts the interface, the connected source terminal must transition low-to-high again.
If your application calls Stop with a scope of Interface Only, this immediately transitions the interface to state: Interface=Stopped for all sessions that are communicating with the interface. Use this feature with care, because it affects all sessions that use the interface and is not limited to the session passed to Stop.
If a significant number of errors occur on the network, the communication controller may make this transition to stop the interface on its own, regardless of whether you call Stop.