10-14-2020 03:54 PM
10-14-2020 07:16 PM
There are a couple of factors at play here:
1. When the selection includes multiple objects, Remove and Rewire removes them (and rewires them) one at a time, not as a group.
2. With one exception, remove and rewire will not keep broken wires. That exception is when there is a single object being removed, and it has exactly one input and one output.
As applied to your code, the functions get removed one at a time, the resulting rewired wires are broken (because the CDB array is being wired to a terminal expecting a DBL array, or vice-versa), and the broken wires are removed.
Ideally, Remove and Rewire would treat a selection as a single unit and look at the inputs and outputs to that unit. I doubt this will ever be implemented in LabVIEW 20xx, although you're welcome to post it to the LabVIEW Idea Exchange. If you'd like to see this in LabVIEW NXG (which has a completely different implementation for Remove and Rewire), you can use the in-product feedback feature.
10-15-2020 01:55 AM
Thanks for the insight. Curiously, if I place an sequence frame or IPE frame around the code and then select it, the QD shortcut works fine. I guess the shortcut code code be changed to do that too but it will probably break other things 😉
Still, just rewiring is probably faster 😉
10-15-2020 10:14 AM
@altenbach wrote:
I guess the shortcut code code be changed to do that too but it will probably break other things
There is a scripting method that can wrap the selection in a structure, but it's pretty flaky. Again, if you posted this to the Idea Exchange, I would vote for it, and maybe with enough kudos, LabVIEW R&D will take a closer look.