LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a debug console in LabView?

One of the features I've long taken for granted when developing in Visual Studio is the Debug Console.  It's extremely useful to be able to insert snippets of code that log whatever you want.  Additionally you don't have to Break execution to sample data or verify that a section of code has executed.

 

Does Labview offer a similar feature?  I've not seen anything in the time I've been using it but thought maybe there are third party tools to do this.

 

I suppose it wouldn't be all that hard to make something now that I think of it.

0 Kudos
Message 1 of 5
(3,659 Views)

Like probes?  Or just running subVIs?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(3,649 Views)

Probes are certainly useful (and completely necessary even if a debug console was available) but they don't quite achieve the same thing.  For one the debug console leaves historical data intact since it's a scrolling log.  Also, probes aren't permanent (as far as I can tell).  As soon as you close the watch window they all get deleted.  Debug messages in other languages will remain in the code until you actually delete them.

 

Another term for this sort of thing is "tracing".  Here's a MS KB article about doing this in C#: http://support.microsoft.com/kb/815788

 

If there's nothing obvious available already I may see if I can work on something of my own.  If I come up with anything I'll post here.

0 Kudos
Message 3 of 5
(3,634 Views)

The LabVIEW Desktop Execution Trace Toolkit is very nice tool and you can even add user defined trace events which are recorded in the log file. And the NI IO Trace is also very helpful for troubleshooting VISA, DAQmx and many other communication protocols

0 Kudos
Message 4 of 5
(3,623 Views)

I use the WinDebugLogging.vi from here along with DebugView for viewing the results.

 

 

Best Regards,

John Passiak
0 Kudos
Message 5 of 5
(3,609 Views)