LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

block diagram deleted (mostly), but VI still works.

Solved!
Go to solution

Hey guys/gals...

Well, I had a VI wigout on me today.   The VI is imbedded in a project with a couple of boolians out, a boolian in and a couple of values in.... went in while tuning a PID loop to make a minor tweak and hit the cleanup button for the whole sheet and it got huge.  Thought to myself that was odd since the whole thing fits on a single screen, so I hit the cleanup button again and everything disappeared but a couple of the inputs, outputs, and a couple of wires.  The VI still functions properly, but there's nothing left on the block diag. but a few wires and icons.  I tired looking at it in the Navigation Window, but nothings there except the few wires and icons that just end on the screen.  It almost looks like part of the block diagram was hidden like hidden rows in an Excel sheet.  Any thoughts here?  ...or am I SOL? 

 

Thanks!

 

Chad

0 Kudos
Message 1 of 23
(4,583 Views)

Try scrolling around the window a little bit. Sometimes when ctrl+drag to make a copy the original one looks like it disappeared, but if I scroll off the screen and back on, it is there.

0 Kudos
Message 2 of 23
(4,577 Views)

I wonder if there is a structure that was resized and is covering everything up? 

 

I don't use the diagram cleanup tool to clean a whole VI unless it is a very simple block diagram.  I do use it to clean up selected portions of code (i.e. items within an event or case structure).  It is decent at aligning a lot of controls, wires on array functions etc. but it tends to not work well when there is a lot going on in a BD. 

 

If you don't like how it arranged something, use CTRL + Z (Undo).  It will put everything back the way it was. (Edit: I understand that it's probably too late to UNDO the cleanup now, but remember it for the future.)

aputman
0 Kudos
Message 3 of 23
(4,562 Views)

If you post the VI, we can all try to "do magic" and try to resurrect it.  Or you can go it alone ...

 

Bob Schor

0 Kudos
Message 4 of 23
(4,528 Views)

Do you have some case structure or similar without Autogrow? Is the code expanded outside this structure and thus hidden? You can use the VI analyzer to see if you have hidden code.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 23
(4,508 Views)

Ctrl+Shift+N brings up the Navigation window - it's a ZOOM out.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 6 of 23
(4,485 Views)

All good suggestions... much appreciated!  Smiley Happy   VI is attached..  Thanks for taking a look guys!

C

0 Kudos
Message 7 of 23
(4,477 Views)

It looks like you have a corrupted block diagram with objects placed ad impossibly large diagram coordinates.

 

Maybe someone at NI can review this and recover your program for you.  Search the forums as this as come up a few times before.  One thread was fairly recent.  Basically when a diagram gets too big, objects just sort of get lost to never be seen again.

 

How large was your block diagram before you started making changes to it?  Do you have a backup copy saved somewhere you can go back to?

0 Kudos
Message 8 of 23
(4,468 Views)

The block diagram easily fit on a single screen without issue originally so that wasn't a problem....  I have something close backed up, but not exact.  Not the end of the world by any means, just an inconvience since I use that same VI on multiple test stands.   I do appreciate you taking a look.    I guess I'll just rebuild it.

 

Thanks!

Chad

0 Kudos
Message 9 of 23
(4,442 Views)

This is weird.  I've gotten a few pieces to "reveal" themselves, including a Case Statement with a comment "Based on motor signal ... the time interval of the pulse is increased from 5s to ~15s linearly ...", but when I try to save this as a snippet and paste it here, I can't find the Snippet, it is as though it doesn't "save".

 

I'm not entirely sure what I did to make things visible.  I'll tell you what I had just done -- I'd opened your VI, used Find to look for an Add function, found two, but they showed as very skinny horizontal rectangled outlined by dotted lines.  I used Quick Drop to replace them with Add functions, but the screen still looked largely blank.  When I did another Find, however, it found two triangular functions that could have been Add functions, showing them only as dotted outlines, Just on a lark, I did "Move to Front", and a bunch of stuff popped out!

 

I'm going to Save As with a new name, and continue, but wanted to say "There May Be Some Hope ...".

 

Bob Schor

 

0 Kudos
Message 10 of 23
(4,432 Views)