Quick Drop Enthusiasts

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in Multiple Insertion?

I took up Darren's one week challenge and already love the ability to insert multiple copies of the same node into multiple selected wires.

Unfortunately I think there is a bug in the script, at least in LV2013.

Capture.PNG

For the sake of an example (albeit a stupid one) I want to insert a To I16 function into the selcted wires.

It works fine for the first selected wire but for all subsequent wires it inserts the function in the unselected wire branch closest to the source.

Capture.PNG

Is that a known limitation or a bug?

0 Kudos
Message 1 of 2
(3,731 Views)

It's a bug. The current code looks at each wire one at a time...getting its selected segment's position information, then inserting a node on that segment. The problem is that the selection gets cleared after the first item gets inserted, giving us no selected segments on subsequent wires. The fix for the bug is to pre-flight all wires and get their selected segment position information before doing any inserts.

I have filed CAR 578761 for this issue. Hopefully I can get the fix in before LabVIEW 2016 releases.

0 Kudos
Message 2 of 2
(3,002 Views)