04-30-2013 11:25 AM
This Quick Drop Keyboard Shortcut will convert certain classic/modern controls and indicators into their silver counterparts. As opposed to a standard 'Replace' operation, this shortcut attempts to preserve as many of the original control's properties as possible. The following control/indicator types are supported:
Graphs and Charts
Numerics
Strings
Listboxes and Tables
Booleans
Follow these instructions to install and use this shortcut:
Copy the attached VI to your [LabVIEW Data]\Quick Drop Plugins folder. You may need to create that folder. Once you have done this, follow these steps to use this tool:
Keep the following tips and caveats in mind when using this tool:
This shortcut works in LabVIEW 2012 and later.
NOTE: If you need this tool to support additional control/indicator types, please leave a comment on this document below, including the control/indicator type, and the specific control/indicator properties you need the tool to copy over to a silver version.
04-16-2015 03:28 AM
Great work! Could you implement the replacement of error cluster inputs and outputs too?
04-16-2015 09:46 AM
Thanks, Ludwig. If you'd like to modify the plugin to convert error clusters, go ahead. The reason the tool doesn't currently do that is because I only use silver controls on user interface VIs, and I never have error clusters on the panels of UI VIs...I communicate errors in my UIs in other ways, like with dialogs or status indicators.
04-16-2015 10:08 AM
Totally agree, I'd actually find a tool more valuable if it could convert controls from Classic, and Silver to Modern, specifically for subVIs that the user doesn't see.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-17-2015 12:42 AM
What is the reason for using Modern instead of Silver Palette in general VIs?
04-17-2015 12:54 AM
Silver controls take longer to draw, and they usually take up more panel space than their Modern counterparts. In my opinion it doesn't make sense to use them on any panel that end users aren't going to see.
06-05-2015 07:38 AM
So I finally got around to trying to make a function that does the opposite of this, and I now see that the VI is password protected. Is this because private methods are used? If so just put a warning saying to use with caution. Being able to modify this code is important to try to support other control types.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-04-2015 04:54 PM
Hey, it works! Very cool. I tried creating a folder inside LabVIEW data, but then ended up using the folder at [LabVIEW 2014]\resource\dialog\QuickDrop\plugins. I don't know what the difference is. Perhaps an enthusiast could shed some light.
Boolean controls and indicators would be nice. Like a person who doesn't read all the directions, I used a modern push button as a test and when it didn't work eventually realized that it wasn't actually supported.
Also, I initially stumbled upon this tool while searching for a way to make silver palette the default option within quickdrop (silver always lands second by default). From Darren's notes it appears he prefers to avoid the silver palette except for the top-level GUI, so I guess I'll stop searching.
09-04-2015 06:15 PM
Brian Hoover wrote:
...I now see that the VI is password protected. Is this because private methods are used?
The only private properties in the plugin have to do with setting FXP settings on a Numeric. So I un-password-protected the code in the latest version I just uploaded. Those FXP properties should be public anyway.
09-04-2015 06:19 PM
BenDon wrote:
Hey, it works! Very cool. I tried creating a folder inside LabVIEW data, but then ended up using the folder at [LabVIEW 2014]\resource\dialog\QuickDrop\plugins. I don't know what the difference is. Perhaps an enthusiast could shed some light.
Boolean controls and indicators would be nice. Like a person who doesn't read all the directions, I used a modern push button as a test and when it didn't work eventually realized that it wasn't actually supported.
Also, I initially stumbled upon this tool while searching for a way to make silver palette the default option within quickdrop (silver always lands second by default). From Darren's notes it appears he prefers to avoid the silver palette except for the top-level GUI, so I guess I'll stop searching.
Plugins in your LabVIEW folder are only available for use in that LabVIEW version. Plugins installed to the LabVIEW Data folder are available in any LabVIEW version greater or equal to the version in which the plugin VI is saved.
I updated the plugin to work on Boolean controls and indicators. The latest version is attached above.
I have some Quick Drop Object Shortcuts for dropping the silver versions of some common controls...snc = Numeric Control (Silver), ssb = Stop Button (Silver), etc. If you prefer to just use the vanilla object names (i.e. no object shortcuts), then you can type 'silver' before typing anything else, and that will filter your Quick Drop list to only silver controls.