07-14-2023 11:29 AM
How do I expand a case structure so that it adds other code instead of pushing it around?
For example I want expand the structure below so that it includes the increment vi. This is a simplified example. Normally I want to add (or remove) a lot more code, and disconnecting and reconnecting a bunch of wires is tedious and risky.
Solved! Go to Solution.
07-14-2023 12:10 PM - edited 07-14-2023 12:42 PM
This doesn't make a lot of sense. Would you want the code to be added to all cases or just one? Typically the number of tunnels can change and how should it decide what connects to where?
07-14-2023 12:35 PM
It makes perfect sense. The code would go in the selected case, if the LabVIEW developers wanted it to be intuitive.
07-14-2023 12:40 PM
It would not be intuitive for me. It is quite rare for me to want that behavior. 99% of the time I move a case structure I want to add room, not move stuff inside the frame. I would certainly not want that to be the default.
There isn't a way (as far as I can tell) to have it wrap new stuff in as you expand it, BUT you can move the structure, then just drag the other stuff inside. LabVIEW does a pretty good job of maintaining wire connections over border moves, so you should be able to just drag it in without needing to disconnect and reconnect all the wires.
07-14-2023 08:55 PM
@BertMcMahan wrote:
It would not be intuitive for me. It is quite rare for me to want that behavior. 99% of the time I move a case structure I want to add room, not move stuff inside the frame. I would certainly not want that to be the default.
There isn't a way (as far as I can tell) to have it wrap new stuff in as you expand it, BUT you can move the structure, then just drag the other stuff inside. LabVIEW does a pretty good job of maintaining wire connections over border moves, so you should be able to just drag it in without needing to disconnect and reconnect all the wires.
Caveat here, the auto-rewire thing was only present in LV 2015 and newer.
07-17-2023 08:39 AM
@jncuevas wrote:
How do I expand a case structure so that it adds other code instead of pushing it around?
For example I want expand the structure below so that it includes the increment vi. This is a simplified example. Normally I want to add (or remove) a lot more code, and disconnecting and reconnecting a bunch of wires is tedious and risky.
Dragging the increment in, rather than expanding the structure is the solution.
If there's too much to drag in, you're doing it wrong.