Solution
NI VeriStand 2010 and later provides built-in support for thread-level debugging through the NI Real-Time Execution Trace Toolkit.
Complete the following steps to create a trace for the Real Time Execution Trace Toolkit:
- In the Workspace, add a Numeric or Boolean control and link it to System Definition»Targets»Controller»System Channels»Trace Enabled Flag.
- Open the Real-Time Execution Trace Toolkit.
- Run the NI VeriStand project.
- Start a trace by increasing the value of the Trace Enabled Flag to be above zero. If using a Boolean control, set the value to True.
- Stop the trace by setting Trace Enabled Flag to zero. If using a Boolean, set the value to False.
- When the model stops the results of the trace are recorded and can be viewed in the Real-Time Execution Trace Toolkit.
- If an instance of the Real-Time Execution Trace Toolkit is open on the host PC NI VeriStand will automatically transfer the trace results from the real-time controller to the host PC and the trace will appear in the Execution Trace window
- If an instance of the Real-Time Execution Trace Toolkit isn't detected on the host PC NI VeriStand will store the trace results to the target hard drive at the path "c:/ni-rt/NIVeriStand/ExecutionTraces" and the name of the trace will be printed to the real-time target console. To access the trace results use a file transfer client to transfer the trace results to the host computer. This process is described in this article: How Can I Transfer Files Over FTP To A Remote System?