Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Configuring the LabVIEW VI Server

LabVIEW 2013 Desktop Execution Trace Toolkit Help

Edition Date: June 2013

Part Number: 372641C-01

»View Product Info
Download Help (Windows Only)

The Desktop Execution Trace Toolkit uses the LabVIEW VI Server to connect to the applications on which you execute trace sessions, including VIs, LabVIEW projects, stand-alone applications, and shared library files.

Note  If you want to debug stand-alone applications or shared library files, you must configure the VI Server in LabVIEW before you build the application or shared library.

If you try to open a trace connection and you receive a message that LabVIEW VI Server access is not enabled, complete the following steps to enable VI Server access.

  1. In LabVIEW on the computer where the application to trace runs, select Tools»Options from the menu bar to display the Options dialog box.
  2. Select VI Server from the Category list to display the VI Server page.
  3. Complete the following steps to enable VI Server.
    1. Place a checkmark in the TCP/IP checkbox.
    2. (Optional) If you are tracing a VI or LabVIEW project that is part of a stand-alone application or shared library file, complete the following steps.
      1. Change the default port value (3363) to a unique TCP/IP port number in the Port field.
        Note  You can specify any integer as a port number, but National Instruments recommends specifying a unique port for each application or shared library file you build. Because the Desktop Execution Trace Toolkit captures all the data on a given TCP/IP port, having multiple application instances on a single port can cause the toolkit to capture data that does not pertain to the application or shared library file you want to trace.
      2. Return to the Desktop Execution Trace Toolkit.
      3. In the Port field on the Home tab, enter the port number you specified when you configured the LabVIEW VI Server.
      4. Return to the VI Server page of the Options dialog box in LabVIEW.
  4. Complete the following steps to grant machine access.
    • If you are tracing applications on a local computer, complete the following steps.
      1. Confirm that the Machine access list on the VI Server page includes the name localhost or the address 127.0.0.1. If it does not, click Add to enable the Machine name/address field and enter localhost or 127.0.0.1. The toolkit uses this name or address to communicate with the applications you trace.
      2. Click OK to close the Options dialog box and apply the configuration settings.
    • If you are tracing applications on a remote computer, complete the following steps.
      1. In the Machine Access section of the VI Server page, click Add to enable the Machine name/address field.
      2. In the Machine name/address field, enter the IP address or name of the computer where the Desktop Execution Trace Toolkit runs.
      3. Click OK to close the Options dialog box and apply the configuration settings.
      4. Return to the local computer where the Desktop Execution Trace Toolkit runs.
      5. In the Machine field on the Home tab, specify the IP address or name of the computer where LabVIEW runs.
  5. Retry opening the trace connection.

Refer to the LabVIEW Help for more information about configuring the VI Server.

Related Information

Opening a Trace Connection


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit