NI Home > Community > NI Discussion Forums
Reply
Trusted Enthusiast
Darren
Posts: 2,799

Darren's Weekly Nugget 10/23/2006

[ Edited ]
While working on my current project, I developed some Custom Probes to help with my debugging, and I posted them on the NI Community website here:
 
 
You can get a complete description of my History Probes at the link above, but basically, they allow you to see a history of values that have passed through a wire.  I created History Probes for all scalar numeric datatypes (excluding U64 and I64, since I wrote these in LabVIEW 7.0), as well as strings, paths, and Booleans.  These really helped me when debugging situations where I had a For Loop that ran a certain number of times, and I needed to see the sequence of values that passed through certain wires during each iteration of the loop.  I hope other LabVIEW developers find these useful.
 

 
-D

P.S. - Check out past nuggets here.


Message Edited by Support on 04-29-2008 09:17 AM
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Trusted Enthusiast
TiTou
Posts: 2,697
0 Kudos

Re : Darren's Weekly Nugget 10/23/2006

That's really cool ! Great probes Darren, I can think of many project where they could have helped me :smileysurprised:

Maybe one nugget a week is not enough :smileytongue:, anybody agree with that ?


________________________________________________________________
"Cambiar el mundo, amigo Sancho, que no es locura ni utopía. sino justicia."
Cervantes
Knight of NI
altenbach
Posts: 26,113
0 Kudos

Re: Darren's Weekly Nugget 10/23/2006

Great use of custom probes!
 
(A quick and dirty way to do this without custom probes is to probe with a chart (numerics only, of course)). :smileyhappy:

LabVIEW Champion . Do more with less code and in less time .

Active Participant
Joe_H
Posts: 1,342
0 Kudos

Re: Darren's Weekly Nugget 10/23/2006

Very nice, Thank you Darren



Joe.
"NOTHING IS EVER EASY"
Active Participant
mfitzsimons
Posts: 670
0 Kudos

Re: Darren's Weekly Nugget 10/23/2006

Two thumbs up!  Very useful.
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
Trusted Enthusiast
parthabe
Posts: 2,463
0 Kudos

Re: Darren's Weekly Nugget 10/23/2006

Great man... !
 
Regards,
Partha.

Re-cLAD,
Partha.

Havells - Wires that don't catch fire!
LabVIEW - Wires that catch bugs!
Trusted Enthusiast
devchander
Posts: 2,276
0 Kudos

Re: Darren's Weekly Nugget 10/23/2006

Darren,

Is there a limit to the number of points that this history probe can contain??

Dev

Trusted Enthusiast
Darren
Posts: 2,799
0 Kudos

Re: Darren's Weekly Nugget 10/23/2006

The only limit is the maximum size of a 1D array, which is about 2 billion.  But I imagine your system would bog down way before then.  :smileyhappy:  That's what the "Reset on Next Run" button is for...it clears out the history you've acquired up to that point and starts over.
 
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Member
Lavezza
Posts: 120
0 Kudos

Re: Darren's Weekly Nugget 10/23/2006

I've created similar probes, but I like the look of yours better (I didn't use a table, just a normat array indicator). I also added a "stats" tab that shows min, max, average and median and a conditional tab with lots of options to pause execution. I think I also have some that keep the timestamp of each value and provide an option to save to a tab-delimited file. I don't have a full set (never seem to use EXT or I8 :smileyhappy: I find that custom probes are one of the great unused features in LabVIEW. Why not throw in a bunch of historical probes for the next release?
Trusted Enthusiast
Darren
Posts: 2,799
0 Kudos

Re: Darren's Weekly Nugget 10/23/2006

Thanks for the feedback...we'd have to do a bit of work to ship these History Probes with LabVIEW.  For one thing, I was using them the other day to debug a race condition, and discovered they were quite slow (so slow, in fact, that simply using the History Probes eliminated the race condition)...this is probably because of the thread switching associated with frequent calls to the listbox property node to update the probe display.  I prototyped a similar History Probe using the array control, but with a vertical scrollbar (new feature in LabVIEW 8.0, I think I mentioned it as a nugget earlier this year)...anyway, the array History Probe was much faster, since there were no Property Node calls.  Nevertheless, I do recognize that these would be good to ship with the product, and I also agree that Custom Probes are one of the coolest features that came out in LabVIEW 7.0 (*almost* as cool as right-clicking a loop tunnel and choosing "Replace with Shift Register").

-D

Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman