There is one thing I am missing in the Replace menu. It seems logical to have an option there to replace the VI (or missing VI) with a NEW VI.
Every now and then I come across code that is missing a subVI and the VI is nowhere to be found so I end up opening the VI with a question mark in the place of the missing SubVI. Now, I can see that LabVIEW knows what the connector pane of the missing subVI was (the used part of it anyway), and I just want to replace the question mark with a VI with the same connector pane. However, no "Replace with New VI" option exists.
There are two ways around this already, but none of them are as smart as they could be. The most obvious is to just creae a new subVI and use the replace function, but then I will have to recreate the connector pane manually. The second option (which did not occur to me until I began thinking about this idea) is that you can just click on the question mark and select "Create SubVI" from the Edit menu. LabVIEW will then do what I want - namely to create a new VI with the same connectors as was used for the missing subVI - job done. However, it will also place the question mark inside the new subVI and nag about it being missing. I can cancel the missing VI dialogs, delete the reference to the old VI inside the new one, and I am ready to rebuild the missing VI, but why not just have a replace with new option?
The missing subVI is an infrequent case, so why bother? Well, this is not just handy for missing VIs. It will simplify things any time you want to replace an existing VI by creating a new one. Sure, you can save the existing VI with a new name, replace the old one with it, and then start changing the new one..But with this option it could all be done in one go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.