User Tools

Site Tools


debug_probe

Using the Debug Probe

Level: Intermediate

Track program flow and variable states in the compiled application (*.dxe), with very small impact to run time behavior.
The debug probe writes to a unique memory location, which can be read out using VisualDSP.

A) Insert the Probes into the Blockdiagram

This example shows how the debug probes can be used to track program flow and loop iteration counter:

drag and drop this VI code snippet into a LabVIEW block diagram.

index is the number of the probe (0..19).
value can be any number in the I32 range.

:!: writing to an index outside the range of 0 to 19 causes unexpected behaviour.
index must be between [0..19]

B) Read out in VisualDSP++

  1. Load and run the compiled Application (*.dxe) in VisualDSP++.
  2. Press Shift + F5 to halt the program.
  3. Choose from menu MemoryBlackfin Memory
  4. type _se_debugflag in the empty drop down selector.
  5. Hit the return key.
  6. Right-click in the Blackfin Memory window → SelectFormat → Signed Integer 32 Bit

The Blackfin Memory window should now look like this:

The topmost value is our “Index 0”, indicating that the loop has been entered, but not yet exited.
(Otherwise the value would be 99).
The third value (red) is our “Index 2”, indicating 34 loop iterations.

debug_probe.txt · Last modified: 2017/11/07 22:26 by 127.0.0.1