12-05-2017 12:59 AM
Dear All,
Yesterday i was working on my VI, its working fine. But, when i am opening same vi today, i couldn't open my block diagram. I have tried such ways that, open the Vi from another project library, WO project library, but still no response. i have searched in forum also, i didn't find any solution. please help me about this. i have attached my Vi and version is 14
Solved! Go to Solution.
12-05-2017 01:25 AM
Hi azadplc,
when there is no block diagram in the VI then you cannot open it!
Somehow you managed to remove the block diagram…
The solution is very easy: get an older version of the VI from your SCC repository! You don't use any SCC tool like SVN or Github? Shame on you!
Then you should take the next easy solution: get an older copy of your VI from your backup! You don't use any backups? BIG FAIL!
12-05-2017 01:37 AM
Yes I have back up.
But i want to know, what we have to do, in case, if some one faced same problem in future . Some BIG MINDED people like you, will be on forum. So that only i have asked here.
12-05-2017 01:44 AM
Hi azad,
i want to know, what we have to do, in case, if some one faced same problem in future .
NEVER remove the block diagram of VIs in development.
Keep a backup of your development source code. Even better: use a SCC tool of your choice!
ONLY remove block diagram when you want to send VIs to a customer (or similar person). Even better: use packed libraries (lvlibp) for this very purpose!
12-05-2017 05:58 AM
What Happens When I Save My VI and Remove Diagrams?
This really is a feature that needs removed from LabVIEW. Pack Project Libraries are a direct replacement and do not have the possibility of running into this issue.
12-05-2017 09:54 AM - edited 12-05-2017 09:55 AM
@crossrulz wrote:
What Happens When I Save My VI and Remove Diagrams?
This really is a feature that needs removed from LabVIEW. Pack Project Libraries are a direct replacement and do not have the possibility of running into this issue.
Well, not every plugin should be deployed as a PPL. I also heared requests from end-customers to receive VIs as files but the developer removes the BD to secure the IP (Intellectual Property). There are some use-cases which i find reasonable in order to keep that feature.
However, since LV 8.x no developer should run into the issue anymore by accident as it is always recommended to not created deployment builds directly into the directory of the sources (which would be the only explanation why that happened).
12-05-2017 02:27 PM
IIRC, there is a keystroke (or set of keystrokes) that can cause a VI to be saved without the BD. Worse yet, you can accidentally do it when attempting to quickly hit Ctrl-S. Sorry, I can't remember what it is, nor find any info about it.