08-05-2011 08:25 AM
Hi there,
I just found the quick drop plugin functionality of Labview 2011 (I had 8.6.1 before). I found that a shortcut (default CTRL-D) allows me to create controls or constants. I have always wanted a way of creating local variables for one or more controls and this looks like the way to go. I had a look at the plugin VIs, but couldn't find a way to make it create local variables instead of constants. How can I do this, or are there plugin VIs I can download to do this?
Best Regards,
Christie
08-05-2011 09:17 AM
08-05-2011 09:38 AM
Hi GerdW,
(Tongue in cheek) I don't like terminals! Whenever I need to copy a piece of code, terminals get duplicated. I move all my terminals off to the right of the diagram of my main VI, except for booleans that are used in event structures. Whenever I need to show a hidden control, I know where to find the terminal... sort of.
Well I guess I don't use them much in subVIs, but in front end VIs it would really help a lot if it was easier to create local variables for the 20 configuration input controls or sensor display indicators I've just created.
Cheers
08-05-2011 10:05 AM
Christie,
You can use my Commands for "Create" Menu Options shortcut that I posted on the Quick Drop Enthusiasts group to be able to bulk-create local variables from control/indicator terminals on the diagram.
08-05-2011 10:24 AM
@Christie wrote:
Hi GerdW,
(Tongue in cheek) I don't like terminals! Whenever I need to copy a piece of code, terminals get duplicated. I move all my terminals off to the right of the diagram of my main VI, except for booleans that are used in event structures. Whenever I need to show a hidden control, I know where to find the terminal... sort of.
Well I guess I don't use them much in subVIs, but in front end VIs it would really help a lot if it was easier to create local variables for the 20 configuration input controls or sensor display indicators I've just created.
Cheers
Control click drag will copy without copying the terminal
08-05-2011 10:41 AM
Darren,
Thanks for that. It sounds like what I need. I'll be sure to try it Monday.
GerdW,
I was not aware of this... I was sure that when I did CTRL-drag it copied the terminal too. (Maybe because I've been using 8.6.1 until yesterday.) I assume it will then just leave the wire disconnected?
Cheers