Example Code

Quick Drop: Class method select

Code and Documents

Attachment

Description

This quick drop functionality will allow you to place in the diagram a specific method from a class (or a library).

The methods visible for selection depend on the selection you have made in the vi where you activated the quick drop.

The selections that can be made are:

  • Class wires
  • Class methods (vi)
  • no selection (scope of the vi itself)

So if you for example select a class wire, only the methods of the type of the wire are shown. This also includes the methods of the base classes.

These methods are ordered by scope.

A double click on the method will place the vi in the diagram at the location of the selection.

A method replace is also available. This can be done by selecting the method vi you want to replace, press the ctrl-space and then the quick drop shortcut you assigned while pressing the shift key.

quickdrop.png

Installation

Copy the llb to <LabVIEW Folder>\resource\dialog\QuickDrop\plugins

And don't forget to assign a quick drop shortcut key

Requirements

Source in LabVIEW 2010

Tested with LabVIEW 2010, 2011 and 2012

I hope you'll enjoy this tool as much as I do. It will certainly increase your efficiency if you frequently use classes in your applications.

Patriek

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors