02-25-2014 04:15 AM
I have a two broken VIs with front panels that open fine, but I can't edit or run them, or open theis block diagrams.
One of these was made as a replacement for the first when it started to have this problem. I need to at least find out how to avoid this problem in future, so I don't lose work on bigger VIs.
I'm not sure if it makes any difference, but I very recently upgraded to LabVIEW 2013.
Thank you in advance.
This is the error I get when I try to run them:
"
VI has a bad connection to or cannot find a subVI or external routine.
This VI has a bad connection to or cannot find a subVI or external routine but
it has no block diagram to show or fix the error. You must find or correct the
subVI or external routine. Check for more information in the Explain dialog box
in Get Info.
"
Before reverting to a previous version (using dropbox) I got a different error with one of them:
"
LabVIEW: Generic error.
An error occurred loading VI 'sweep harmonics first test.vi', LabVIEW load
error code 6: Could not load the block diagram.
"
02-25-2014 04:33 AM
Hi Kim,
I need to at least find out how to avoid this problem in future
Use SVN (or GIT or similar) in the future!
When LabVIEW claims "missing block diagram" then there is no block diagram to show. Somehow you lost it, maybe by accident, maybe by setting an option while saving.
Get your backup data and pull out an older version of those VIs!
02-25-2014 05:16 AM
Thanks, GerdW.
I had a vesion on dropbox from each time I saved, and none of them worked, would SVN do any better than dropbox?
I've now set LabVIEW up to remember previous versions as well, but I don't trust enough to rely on that.
Regards,
Richard
02-25-2014 05:19 AM - edited 02-25-2014 05:20 AM
What you storing in dropbox in VI or project?
02-25-2014 05:33 AM
I's storing both the project and all its VIs in dropbox. I was restoring just the VI, and I tried opening it both within and outside of the project.
02-27-2014 12:18 AM
When you try opening only VI then is it opening?
What error message you getting?
02-27-2014 03:20 AM
It neither opens as part of the project nor on its own. I get the same VI hase a bad connection... error when I try to run it.
02-27-2014 11:40 AM
You might want to give this a read: What Happens When I Save My VI and Remove Diagrams?
09-22-2014 08:34 PM
I have just seen this happen to me.
And no, I didn't actively remove the block diagram, it has been corrupted/removed by labview....Again.
I see this frequently after Labview has crashed,
It randomly takes out a front panel or block diagram.
I am using 2013SP1 now and thought it to be more stable, how wrong I was.
I lost 2 days work I guess it is my own fault.
I use source control but had not checked in recently,
The corrupted .VI overwrote my local file, so there is no way back.
NI Pleeeese do something about the crashes!
See my earlier Rants about Labview quality here.
http://forums.ni.com/t5/LabVIEW/Labview-2011-Is-this-the-buggiest-Version-ever/td-p/2005191
09-23-2014 02:01 AM