Add User-Defined Trace Event for Desktop Execution Trace Toolkit

Updated Jun 2, 2023

Environment

Software

  • LabVIEW Desktop Execution Trace Toolkit

The LabVIEW Desktop Execution Trace Toolkit helps you perform dynamic code analysis for advanced debugging. If you use User-Defined Trace Event, you can add any string you want to the trace log.

1. Open the VI you want to debug.
2. Place Desktop Execution Trace Toolkit>>Generate User-Defined Trace Event to the location of the code where you want to add the event log during execution.
3. Create a string constant and connect it to the trace string input terminal. trace string cannot exceed 255 characters.
(Optional)Create an I32 constant and connect it to the trace integer input terminal.
 
4. Click Tools >> Profile >> Trace Execution... to launch the Desktop Execution Trace Window.
5. Click the Start button or press Ctrl+R to start a trace session.
6. Run the VI and check the trace session.

For more information, see the Desktop Execution Trace Toolkit Help.