NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Vishal Devanath
Posts: 8

Debugging made easier with 'Retain Wire Values for the Whole Hierarchy'

Debugging in LabVIEW is sometimes difficult because of the reason that the error happens not in the top level VI we are debugging, but in some of it's subVIs (or maybe a subVI inside a subVI and so on..). We need to run the VI repeatedly to see what's causing the error after doing a 'Retain Wire Values' on subVIs.

Instead, we can have a method by which you can specify to 'Retain Wire Values for the Whole Hierarchy' before running the VI. And then debug the VI and its subVIs without having to re-run everytime you figure out that the erroris happening is one of the subVI. What do you guys think about this and would it be useful to have such a feature?

Active Participant
craigc
Posts: 363

Re: Debugging made easier with 'Retain Wire Values for the Whole Hierarchy'

I Personally do not use this feature as it stands however I believe it could be quite usefull for future developments.  Although what of sub vi's in multiple places / reentrant.  How does this affect performance / memory, obviously something you would only use for debug.

 

Sounds interesting though and always nice to have multiple debug options :smileyhappy:

LabVIEW 2009 .

DTA
Trusted Enthusiast
parthabe
Posts: 2,458
0 Kudos

Re: Debugging made easier with 'Retain Wire Values for the Whole Hierarchy'

It WILL definitely be useful. :smileyhappy:

Re-cLAD,
Partha.

Havells - Wires that don't catch fire!
LabVIEW - Wires that catch bugs!
Member
Vishal Devanath
Posts: 8

Re: Debugging made easier with 'Retain Wire Values for the Whole Hierarchy'

I have attached a small VI which does retains wire values for the entire hierarchy. Copy the VI to your LabVIEW x\project\ folder and restart LabVIEW. You will find a new option in Tools menu >> "Retain All Wire Values". Select this option on the Top level VI and wire values are retained in all its subVIs. Select it again and it removes retain wire values in all its subVIs. Let me know if it's useful. (VI is saved in LabVIEW 8.5, therefore works for 8.5 and above)
Member
AmitKaria2k
Posts: 53
0 Kudos

Re: Debugging made easier with 'Retain Wire Values for the Whole Hierarchy'

 

Hello Vishal,

 

The VI is really useful. Thanks for sharing the application. Can you post the source code as well?

Active Participant
P@Anand
Posts: 1,617
0 Kudos

Re: Debugging made easier with 'Retain Wire Values for the Whole Hierarchy'

Debugging would be much easier if this Idea is implemented.

-----

I don't believe in Hard work. I love my work :smileyhappy:
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page