This Quick Drop Keyboard Shortcut creates a new Fonctionnal Global Variable (FGV) based on the wire, control, indicator or constant data type selected on the diagram.
If the selected data type refers to a Type Definition, the FGV will use it.
Two kind of FGV can be create based on these templates:
Both templates can be modified, only the Variant In, Variant Out and Variant Cst label cannot be changed.
Follow these instructions to install and use this shortcut:
This shortcut works in LabVIEW 2012 and later.
NB: 2013 version include fix related to Quintin and J.Harv comments
Get use for a QD shortcut! It seemed that I had to select TWO controls/constants of a given data type for the FGV VI to be created, is that intended functionality? Also, a enhancement that came to mind was that it would be good to already have the enum action set as a type def.
Very cool idea! Thanks. A few pieces of feedback:
1) Took me a couple minutes to figure out I had to select 2 things to make it work. Not sure why that is when all I wanted was a simple test FGV with a double type.
2) After figuring out #1 above, I assumed the intent of selecting two things was to auto create the cases/states/actions. But creating an enum for my states and selecting it (along with my value constant) did not transfer those values to the FGV that was created. It probably wasn't intended to, but this would be really, really cool if it did.
3) Ummm.... the error terminals came out in French? I didn't even know French was installed or available on my computer.