LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Darren's Weekly Nugget 01/26/2009

When you insert an object on a wire, the position of your mouse can affect how the insert takes place.  For example, if you attempt to insert a "Max & Min" function on a wire, and you right-click slightly above the wire to do the Insert, the wire will be connected to the lower input/output terminals of the Max & Min function.  Similarly, if you had right-clicked slightly below the wire to do the Insert, the wire would be connected to the upper input/output terminals of the Max & Min function.

 

I find this trick to be the most useful when I'm inserting an order-specific numeric function (like Subtract or Divide) on a numeric wire, and I already know whether or not I want the wire to be the 'x' or the 'y' input of the function.

 

-D

P.S. - Check out past nuggets here

Message 1 of 19
(8,471 Views)
Nice tip.  I am glad that this exists but sad that I never figured it out.  Thank you Darren.
Message 2 of 19
(8,465 Views)

I never did manage to use that function reliably. I mean, come on, it has too many options (you could choose either up or down). 😄

 

Well, either that, or it didn't work as well (or at all, now that I think of it) in LabVIEW 7.0.


___________________
Try to take over the world!
Message 3 of 19
(8,453 Views)

tst wrote:

Well, either that, or it didn't work as well (or at all, now that I think of it) in LabVIEW 7.0.


I just looked into it, and the functionality has been around since LabVIEW 4.0 (maybe earlier, I didn't check past that).  I tried inserting an Add function and a Max & Min function in the manner I described and it worked.  However, the pixel range for the right-click around the wire is *very* narrow in those earlier versions...they didn't widen it substantially until LabVIEW 7.0.

 

-D

0 Kudos
Message 4 of 19
(8,436 Views)

And if you hold down the Option key (Alt? for windows) while getting the cursor just so at the two terminals of a function you can switch them with a click.  The cursor turns into two circular arrows to let you know you hit the sweet spot.  So if you miss the position on insertion you can correct it with a click.

 

Now if we can have the inverse removal function that will connect wires through a removed icon.  Thus when I delete an icon it will connect the two error clusters and try to match wires of similar types across it.  Trivial in the case with one wire in and out but helpful in all circumstances. 

LabVIEW ChampionLabVIEW Channel Wires

Message 5 of 19
(8,405 Views)

sth wrote:

...

 

Now if we can have the inverse removal function that will connect wires through a removed icon.  Thus when I delete an icon it will connect the two error clusters and try to match wires of similar types across it.  Trivial in the case with one wire in and out but helpful in all circumstances. 


That would be nice, but If LV guessed wrong... it could be a real pain to figure out which wires got crossed.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 19
(8,401 Views)

Well for the simple ones like increment it is a trivial one and you go ahead.  Things that you insert like a boolean not an then want to remove it the next day when you decide on a more complicated boolean expression.  That would be useful.  It should be a right click option to "remove and rewire".  For the DAQ the wires are fairly clear and some could be left dangling, but if the upper right and left are identical references and the bottom are error clusters those should be rewired.

 

For the rest of the very complicated wiring, well in all that rewiring I kinda lost track myself, so you've got to ask yourself one question.  "Do I feel lucky?"  Well do ya punk?

 

It's an option. 

 

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 7 of 19
(8,388 Views)
Wire tool + CTRL will switch two inputs on windows.
Regards,
André (CLA, CLED)
0 Kudos
Message 8 of 19
(8,383 Views)

sth wrote:

Well for the simple ones like increment it is a trivial one and you go ahead.  Things that you insert like a boolean not an then want to remove it the next day when you decide on a more complicated boolean expression.  That would be useful.  It should be a right click option to "remove and rewire".  For the DAQ the wires are fairly clear and some could be left dangling, but if the upper right and left are identical references and the bottom are error clusters those should be rewired.


"Remove and rewire"...why does that sound so familiar?  Oh yeah...

 

-D

0 Kudos
Message 9 of 19
(8,372 Views)

Darren wrote:

sth wrote:

Well for the simple ones like increment it is a trivial one and you go ahead.  Things that you insert like a boolean not an then want to remove it the next day when you decide on a more complicated boolean expression.  That would be useful.  It should be a right click option to "remove and rewire".  For the DAQ the wires are fairly clear and some could be left dangling, but if the upper right and left are identical references and the bottom are error clusters those should be rewired.


"Remove and rewire"...why does that sound so familiar?  Oh yeah...

 

-D


 

So for the time being I will cross wire (wire around it) a sub-VI before deleting it just to make sure the crital wires get back to the right places.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 10 of 19
(8,361 Views)