LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting Sometimes Deletes Wire


@paul_cardinale wrote:

wiebe@CARYA wrote:

@paul_cardinale wrote:

wiebe@CARYA wrote:

@paul_cardinale wrote:

Just found it:  If the wire length is 32 pixels or less, the wire gets deleted, greater than that, and it remains intact.


Definitely not desirable behavior when you're scripting...


Same thing happens with manual editing.

Still scratching my head on a workaround.


I guess a workaround is to 'record' the wire, disconnect the terminal, and if the wire is deleted, recreate the wire... If there's another terminal, you could use create described wire. If not, well, it's a lot of work... Both cases you loose the original UID...

 

You could try to re-route the wire (add joints, give it some length) so it isn't deleted. I suppose you can reroute in a way that it's easy to undo the rerouting.


I discovered that the deletion won't happen if, after the disconnect, there are at least 2 terminals still connected.

So my workaround is:

  1. Place a wire-holder SubVI (it has a single terminal that's a variant)
  2. Connect the wire-holder SubVI to the wire.
  3. Disconnect the wire from the desired terminal.
  4. Delete the wire-holder SubVI

In the end, this leaves loose wire ends, so I have to remove those after I've reconnected.


Not quite.  The (broken) wire still has to be >32 pixels.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 11 of 11
(178 Views)