LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Intaris

Visual help in fixing broken local variable linkage

Status: New

I sometimes delete controls from the BD and realise some time (from milliseconds to minutes) that I have some broken local variables.

 

I get greeted by the hugely informative imagery as shown below:

 

BRoken local link.png

 

Yeah, good luck realising what exactly you deleted by mistake.  No name, no way of finding out what the local PREVIOUSLY linked to.

 

I suggest retaining at least the name of the Control / Indicator the local was linked to so that the poor programmer (me) has some fighting change of undoing the error.  Bear in mind there could be many changes made to a VI before this kind of thing is notices so a simply "undo" fix could end up being VERY awkward indeed.

 

An example of how this could look:

 

Broken Local hint.png

 

Here I at least know WHAT I have deleted by mistake.

25 Comments
PaulG.
Active Participant

I think 99 undo steps works pretty well for correcting a mistake. I don't see how this is much better. I don't like LV leaving the garbage local on the block diagram as it is.

PaulG.

LabVIEW versions 5.0 - 2020

“All programmers are optimists”
― Frederick P. Brooks Jr.
Intaris
Proven Zealot

Paul, try doing 99 undo steps after saving the VI........

Darin.K
Trusted Enthusiast

What?  Don't you find the label of the local variable helpful?  Smiley Frustrated

AristosQueue (NI)
NI Employee (retired)

> Paul, try doing 99 undo steps after saving the VI........

 

Works just fine in LV 2012. 🙂

Intaris
Proven Zealot

Really, undo is saved with the VI? This is news to me. Does it survive trips to a SVN server and back to a different machine?

crossrulz
Knight of NI

No.  But in a recent version of LabVIEW (2011) it was added the capability to undo after a save.  Once the VI is closed, the undo buffer is gone.

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Enable-quot-Undo-quot-even-after-saving-the-VI/idi-p/9...


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
fabric
Active Participant

Often undo is not practical, either beacuse of what you have achieved in the meantime, or because the undo buffer has been cleared for some reason.

 

Either way, I like the idea but my kudos is conditional on it applying to references and property/invoke nodes as well... and possibly orphaned event cases.

Darin.K
Trusted Enthusiast

> my kudos is conditional on it applying to references and property/invoke nodes as well

 

Unless I have been imagining things, references and implicit PNs are nuked when you delete the control.

 

I could see locals following suit, like PaulG mentioned.

altenbach
Knight of NI

There are still plenty of operations that seems to clear the undo buffer, even in LV 2012. I would be lucky to ever get all 99 default entries filled!  "Think twice and wire once" is still my motto that I learned in LabVIEW 4.0 :D.

fabric
Active Participant

@Darin.K wrote:

> my kudos is conditional on it applying to references and property/invoke nodes as well

 

Unless I have been imagining things, references and implicit PNs are nuked when you delete the control.


Correct. And they are sometimes painful to reconstruct if their parent control goes missing for some reason. I'd like them to remain as ghosted shells, just like Intaris' locals.