Reducing XNET IP Stack Wait vi Time

Updated May 29, 2025

Reported In

Software

  • LabVIEW

Driver

  • NI-XNET

Issue Details

The XNET IP stack is an implementation of the TCP/IP protocol suite. It can create everything required for TCP and UDP communication. 

When using the XNET IP Stack Wait vi there may be delay of around 2.3 seconds before the stack is ready for use.

This is as the Duplicate Address Detection (DAD) is enabled by default. DAD is a mechanism used to ensure that an IP address is not already in use on the network before assigning it to an interface.

Solution

To reduce the startup time of the IP stack—especially in scenarios where DAD is not necessary—you can manually disable DAD in the configuration JSON passed to the Create IP Stack VI.

Steps to Modify the IP Stack Configuration:

  1. Create an indicator on the wire connected to the configuration input of the Create IP Stack VI (blue arrow).

  2. Run the VI to populate the indicator with the default JSON configuration string.

  3. Delete the wire between IP STK CONFIG SGL and Create IP Stack VI.

  4. Change the indicator to a control.

  5. Connect the new control to Create IP Stack VI.

  6. Edit the JSON string in the control:

    • If you’re using IPv4 only, delete the "IPv6" section.

    • Set "DAD": false in the "IPv4" section.

Additional Information

This will only work for IPv4.