LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing block diagram

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.

"

0 Kudos
Message 1 of 22
(6,586 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 22
(6,577 Views)

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

0 Kudos
Message 3 of 22
(6,568 Views)

What you storing in dropbox in VI or project?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 4 of 22
(6,565 Views)

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.

0 Kudos
Message 5 of 22
(6,558 Views)

When you try opening only VI then is it opening?

 

What error message you getting?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 6 of 22
(6,505 Views)

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.

0 Kudos
Message 7 of 22
(6,489 Views)

You might want to give this a read: What Happens When I Save My VI and Remove Diagrams?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 22
(6,464 Views)

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

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
0 Kudos
Message 9 of 22
(6,270 Views)

Hi Timmar,

 

I lost 2 days work I guess it is my own fault.   I use source control but had not checked in recently,

Yes, I too guess it's your own fault. Don't using SCC for two days is a big fault…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 22
(6,251 Views)