LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stepping through recorded code

The Highlight Execution and Stepping through code is a handy tool but it slows the program down so much that time sensitive sections of my code do not perform correctly.  If i could record a session and then step through it then maybe i can see the data flow more accurately.  Is this currently a option if not does anyone else think this would be a good feature?
 
Thanks
 
 
James
- James

Using LV 2012 on Windows 7 64 bit
0 Kudos
Message 1 of 2
(2,670 Views)

Recording is not possible, but you have many other debugging tools at your disposal:

  • If you have LabVIEW 8.0 or later you can have the wires retain their values so you can probe at leisure after the VI has stopped.
  • You can strategically place probes. If you need a history of values (e.g. from a wire inside a loop) use a chart as a custom probe.
  • Another option to get multiple historic values from wires inside loops is to autoindex them out and create temporary front panel indicators on the output tunnels.
  • Don't forget custom probes. You can make a probe that e.g. keeps the last 10 values in a shift register buffer for later (or realtime) inspection.
  • You can also set breakpoints and then only enable highlighting for a brief section after the break.
  • Maybe you could also temporarily increase the timings in the time critical section so it behaves more like a normal run while highlighting.
  • If code segments that don't rely on timings give different results if you use highlighting, you probably have a race condition that needs to be fixed. This often happens due to overuse of local variables, but can have many other causes.

A playback option could be useful, but depending on the code could use an infinite amount of resources. (Imagine a while loop that runs for days). We probably don't really need it.

0 Kudos
Message 2 of 2
(2,655 Views)