04-12-2021 11:08 AM
We can lock front panel objects. But I would like to lock a particular SubVI on a block diagram so it's not deletable. Is that possible?
04-12-2021 11:32 AM
I've never seen a way to do that.
04-13-2021 01:21 AM
04-13-2021 03:17 PM
@thols wrote:
How about this:
Or you could place a decoration box on top of it:
Unfortunately, things on the BD cannot be grouped, so the decoration will not follow the sub-VI.
Perhaps this is something for the idea exchange.
That "Do not delete!" is like having a button like this:
04-13-2021 03:55 PM
Just out of curiosity, what's the use case here?
The only thing I can think is that you're creating a template VI of some kind which then need to be modified, and you want to prevent anyone who modifies the template from removing some vital subVI. Is it something like that?
04-13-2021 04:46 PM - edited 04-13-2021 04:48 PM
That "Do not delete!" is like having a button like this:
LOL The infamous "Don't Press" button... (I still remember that one from the 1970's "Super Friends" Saturday morning cartoon)
😛
I think a note on the block diagram explaining what the VI is for and why it should not be removed should be enough.
04-14-2021 12:20 AM
@RTSLVU wrote:
That "Do not delete!" is like having a button like this:
LOL The infamous "Don't Press" button... (I still remember that one from the 1970's "Super Friends" Saturday morning cartoon)
😛
I think a note on the block diagram explaining what the VI is for and why it should not be removed should be enough.
I assume that you have already been in a situation where this happened, where someone wondered why a VI was even there, and decided to delete it. A comment connected to the VI that may be tempting to delete should be enough, yes, and of course there is better explanation text than "do not delete". To emphasize you could color the comment red perhaps, or perhaps: