08-26-2015 04:27 PM
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
Solved! Go to Solution.
08-26-2015 04:31 PM
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.
08-26-2015 04:53 PM - edited 08-26-2015 04:55 PM
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.)
08-26-2015 09:47 PM
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
08-27-2015 01:47 AM
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
08-27-2015 06:33 AM
08-27-2015 06:56 AM
All good suggestions... much appreciated! VI is attached.. Thanks for taking a look guys!
C
08-27-2015 07:19 AM
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?
08-27-2015 08:32 AM
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
08-27-2015 09:00 AM
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