Configuring the LabVIEW VI Server
- Updated2023-02-21
- 3 minute(s) read
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.
- In LabVIEW on the computer where the application to trace runs, select Tools»Options from the menu bar to display the Options dialog box.
- Select VI Server from the Category list to display the VI Server page.
- Complete the following steps to enable VI Server.
- Place a checkmark in the TCP/IP checkbox.
- (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.
- 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. - Return to the Desktop Execution Trace Toolkit.
- In the Port field on the Home tab, enter the port number you specified when you configured the LabVIEW VI Server.
- Return to the VI Server page of the Options dialog box in LabVIEW.
- Change the default port value (3363) to a unique TCP/IP port number in the Port field.
- Complete the following steps to grant machine access.
- If you are tracing applications on a local computer, complete the following steps.
- 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.
- 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.
- In the Machine Access section of the VI Server page, click Add to enable the Machine name/address field.
- In the Machine name/address field, enter the IP address or name of the computer where the Desktop Execution Trace Toolkit runs.
- Click OK to close the Options dialog box and apply the configuration settings.
- Return to the local computer where the Desktop Execution Trace Toolkit runs.
- In the Machine field on the Home tab, specify the IP address or name of the computer where LabVIEW runs.
- If you are tracing applications on a local computer, complete the following steps.
- Retry opening the trace connection.
Refer to the LabVIEW Help for more information about configuring the VI Server.