LabVIEW Idea Exchange

About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Top Authors
cancel
Showing results for 
Search instead for 
Did you mean: 

Enable 'Retain Wire Values' for entire VI hierarchy

Spurred by Darren's latest nugget, I think it would be an excellent addition to the feature to be able to retain wire values for all subVIs of a particular VI as well as the VI itself. Several times, I have found myself having to run a VI a couple times to get to the point where I can satisfactorily examine the data flow. There is a JKI RCF plugin by Vishal posted here which implemented this, but native functionality would be much preferred. Smiley Happy

 

I'm not sure how best it could be implemented in UI so as not to disturb those who don't want this, and I can forsee a hairy situation arising if a particular subVI is called from a different hierachy later. Ideally, the subVI would retain values for the last execution in the retained hierachy, but obviously that's incorrect in the grand scheme of things. I'd love to hear other ideas on how to handle that scenario.

1 Comment
NI Employee

Hello,

 

I have attached a small VI which 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 and itself. Select it again and it removes retain wire values in all its subVIs. (Successive selection alternates between selection and deselection of Retain Wire Values) It is almost as good as native functionality. (VI is saved in LabVIEW 8.5, therefore works for 8.5 and above).

retain all wire values.JPG