Enabling Desktop Execution Trace Toolkit to Remotely Debug a LabVIEW Executable

Updated Feb 11, 2019

Reported In

Software

  • LabVIEW Desktop Execution Trace Toolkit
  • LabVIEW

Issue Details

I want to use the NI LabVIEW Desktop Execution Trace Toolkit (DETT) to monitor my executable which I created in LabVIEW. How can I do that?

Solution

To allow DETT to remotely debug your executable, you need to:
  • Enable Debugging in your LabVIEW project's Build Specification.
  • Enable VI server access for your LabVIEW project.

To enable VI server access follow these steps:
  1. Open your LabVIEW project.
  2. In LabVIEW's Project Explorer, perform a right-click on My Computer and open Properties.
  1. Go to the VI Server tab, enable TCP/IP and define a Port number (in this example 3364):
  1. Scroll down and add the IP address of the PC you want to execute DETT on to the Machine Access list. This can be the same PC as your application will be execute on, or a remote PC.
  1. Build your application.
  2. Completely close the LabVIEW Development Environment. If you leave LabVIEW open, it keeps the TCP/IP port you specified for your project in step 3 reserved, not allowing your compiled application to use it.
  3. Launch your application.
  4. Open Desktop Execution Trace Toolkit, and connect to your compiled application by:
    1. entering the IP address of the machine that the executable is running on in the Machine field,
    2. entering the port number you specified earlier in the Port field,
    3. then clicking the Refresh icon,
    4. and afterwards selecting the executable's name from the Application Instance drop-down menu.
​​​

Additional Information

In the steps above, changing the VI server settings was achieved by right-clicking My Computer. A similar setting for applications executed inside the LabVIEW Development Environment can be changed in menu Tools » Options » VI Server. DETT needs to use the port set in the above described steps in order to connect to the executable.

WAS THIS ARTICLE HELPFUL?

Not Helpful