Swap Termianls RCF Plugin - 1.0.1-7
Copyright © 2010, Gavin Burnell
All rights reserved.
This code was downloaded from the LAVA Code Repository: http://lavag.org/ind...p?app=downloads
This is a plugin for the JKI Right Click Framework (version 1.0.2).
Ever inserted a primitive like add, subtract, greater than, or less than into a wire and manage to get LabVIEW to
wire up the 'wrong' input because you right clicked one pixel the wrong side of the wire ? Ever looked at code and
realised that you've got the input terminals hooked up the wrong way round on a select ? Then this plugin is for
you, simply select the block diagram primitive, activate the JKI RCF plugins and select 'Swap Terminals'.
This plugin will work on any primitve function or 'growable' function that has two and only two inputs and also on
the 'Select' and 'In Range and Co-erce' nodes to swap the top and bottom inputs over and rewire the wires. In
version 1.1 it will also handle 'Bundle' and 'Bundle by Name' which have two input elements and a special case of
two wires that are wired into different terminals of the same node.
JKI Tools Right Click Framework >=1.0.2
If you have any problems with this code or want to suggest features:
1.0.2-8 Corrected a regression in previous version with bundle/bundle by name nodes.
1.0.1-7 Rereleased as a VIPM Package File built using VIPM 2010. Should have correct package dependencies for RCF Packages
220.127.116.11 Added growable functions with special cases for bundlers and two-wires-to-the-same-node. Refactored the code
to kake extending it for other GObject types easier in the future.
18.104.22.168 Initial release on LavaG
Copyright © 2010 Gavin Burnell
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the University of Leeds nor the names of its contributors may be used to endorse or promote
products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.