01-26-2009 11:39 AM
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.
01-26-2009 11:50 AM
01-26-2009 12:06 PM
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.
01-26-2009 12:35 PM
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
01-26-2009 01:29 PM
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.
01-26-2009 01:33 PM
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
01-26-2009 02:01 PM
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.
01-26-2009 02:06 PM
01-26-2009 02:23 PM
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
01-26-2009 02:32 PM
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