LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Glitched block diagram - adding local variables is faulty and scrollbars are wrong. Corrupt vi file?


@Mark_Yedinak wrote:

@JonnyOhJonny wrote:

It is stupid, yes. Makes it even more embarrassing that LabView can do this to itself, without even notifying.


I am sure you can mess with any compiler if you throw extremely bad code at it. 


I though we were talking about the block diagram cleanup tool that can take a gigantic messy VI (that still fits nicely into the limits!) and turn it into something that exceeds the boundaries and thus corrupts the diagram.

0 Kudos
Message 11 of 15
(574 Views)

I wish you could delete posts.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 12 of 15
(571 Views)

@altenbach wrote:

@Mark_Yedinak wrote:

@JonnyOhJonny wrote:

It is stupid, yes. Makes it even more embarrassing that LabView can do this to itself, without even notifying.


I am sure you can mess with any compiler if you throw extremely bad code at it. 


I though we were talking about the block diagram cleanup tool that can take a gigantic messy VI (that still fits nicely into the limits!) and turn it into something that exceeds the boundaries and thus corrupts the diagram.


That wasn't my take on it, but that is a valid gripe that I didn't think about.  It takes my mantra to an extreme.  I always say, "If using the cleanup tool makes your code look better, then you should re-think your coding practices."  Given the right combination of stuff on the block diagram, I've seen my compact, one-screen, subVI-rich code expand to a couple of screens when using the cleanup button.  (Which is why I never do it except for very simple subVIs that I created from some inline code.)

 

But then again if a "clean up formatting" tool in a text-based programming IDE caused you to exceed a maximum line or character limit because you put everything in one file, is that the IDE's fault?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 13 of 15
(567 Views)

@altenbach wrote:

@Mark_Yedinak wrote:

@JonnyOhJonny wrote:

It is stupid, yes. Makes it even more embarrassing that LabView can do this to itself, without even notifying.


I am sure you can mess with any compiler if you throw extremely bad code at it. 


I though we were talking about the block diagram cleanup tool that can take a gigantic messy VI (that still fits nicely into the limits!) and turn it into something that exceeds the boundaries and thus corrupts the diagram.


 

Exactly. And not only the clean-up tool, but part of the glitch happened by copying some local variables with ctrl-c and pasting with ctrl-v - then LabView created new front panel elements outside its own boundaries. I'd call this behavior a bug.

 

0 Kudos
Message 14 of 15
(558 Views)

@JonnyOhJonny wrote:

@altenbach wrote:

@Mark_Yedinak wrote:

@JonnyOhJonny wrote:

It is stupid, yes. Makes it even more embarrassing that LabView can do this to itself, without even notifying.


I am sure you can mess with any compiler if you throw extremely bad code at it. 


I though we were talking about the block diagram cleanup tool that can take a gigantic messy VI (that still fits nicely into the limits!) and turn it into something that exceeds the boundaries and thus corrupts the diagram.


 

Exactly. And not only the clean-up tool, but the glitch happened by copying some local variables with ctrl-c and pasting with ctrl-v - then LabView created new front panel elements outside its own boundaries. I'd call this behavior a bug.

 


Bad behavior yes. However, copying local variables has always copied the control/indicator. Placing them outside of the boundaries should be caught however I suspect the reason they were placed there in the first place was because the block diagram was already exceedingly large. I guarantee that if you use good programming practices you would never encounter this bug. Should you blame the hammer if a carpenter builds a crappy house that falls apart or do you blame the carpenter for building a shoddy house.

 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 15 of 15
(551 Views)