NI-XNET supports building applications using LabVIEW projects. You typically distribute these executables to multiple end users, which means you copy the executable to multiple computers (targets).

This process describes creating a built application for Windows with LabVIEW that uses NI-XNET.

Note When used with a LabVIEW Real-Time (RT) target, the built application is typically used as a startup application.

Complete the following steps to build an NI-XNET application from LabVIEW:

  1. Open the LabVIEW project you want to build.
  2. In the LabVIEW Project Explorer window, right-click Build Specifications under My Computer in the tree and select New » Application (EXE).

Requirements for Building NI-XNET Applications from LabVIEW Projects

If you created NI-XNET sessions in a LabVIEW project under My Computer, LabVIEW generates the configuration for those sessions to a text file. You must include this text file as part of the distribution for your built application.

Note If you create sessions at run time using the NI-XNET Create Session, those sessions are standalone (no text file required).

The configuration for sessions created in a LabVIEW project is generated to a text file nixnetSession.txt. This text file is in the same folder as the executable (.exe) you build.

You must include this text file as part of your distribution. Copy this text file along with the .exe, always to the same folder, when distributing the application.