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
X.
Trusted Enthusiast
Trusted Enthusiast

Sure... Like this?

 

ScreenHunter_001.jpg===>ScreenHunter_002.jpg

 

I've got like a feeling that this is what we still will have to live with in 2013...

Darren
Proven Zealot

@X. wrote:

 

I've got like a feeling that this is what we still will have to live with in 2013...


Yup, it still behaves like that. There's quite a bit of tweaking in the algorithm that decides how to arrange the new subVI's conpane (in 2011 and later). I must confess that my test matrix did not include much in the way of 0-output subVIs. I'll file myself a CAR to tweak it for this case. Hopefully you can take some solace in the fact that, if that flat sequence had any outputs, the numeric and string terminals would be in the positions you expect.

X.
Trusted Enthusiast
Trusted Enthusiast

Thanks. Now of course, an alternative would be to implement this idea...

X.
Trusted Enthusiast
Trusted Enthusiast

Well, Darren, what about this one:

 

ScreenHunter_001.jpg

 

Create subVI yields:

 

ScreenHunter_002.jpg

 

whose conpane looks like this:

 

ScreenHunter_004.jpg

tst
Knight of NI Knight of NI
Knight of NI

I'm going to guess the logic behind that one is pretty simple - put refs on top. That's why the DVR is on top and the other ref is below it. The rest is just putting the others in while skipping the place for the error terminal.

 

I suggest that you start a separate threads for these. I'm also assuming that if you can give NI actual VIs that don't behave as you expect, they can at least look at what's going on.


___________________
Try to take over the world!