Example Code

Benchmark QuickDrop-Shortcut

Code and Documents

Attachment

Overview

Turn this:

Before.png

into This:

After.png

With a keystroke.

Description

The VI will add a QuickDrop-shortcut to your LabVIEW and will enable you to select an area on the Blockdiagram, press Ctrl+Space - Ctrl+M to surround it with a benchmarking-structure.

It will also enable you to add benchmarking to selected loops like this:

before2.png

Ctlr+Space  -  Ctrl+Shift+M

after2.png

The VI is created using VI scripting, but scripting must not be enabled to use the VI as a Shortcut.

Once you copied the VI to the QD-plugins-folder ([LabVIEW]\resource\dialog\QuickDrop\plugins) you can run it via Ctrl+M (benchmark selected area), or via Ctrl+Shift+M (benchmark loop).

Both shortcuts of course work with more complex code than shown above.

The VI is full of comments and ready to be edited. It is also a good example for using scripting to create and wire Blockdiagram objects.

Steps to Implement or Execute Code

  1. Copy VI to this folder: [Programs]\National Instruments\LabVIEW 2014\resource\dialog\QuickDrop\plugins
  2. (Optional) Edit the VI-Documentation to assign different key (Standart: M)
  3. When opening Quick Drop by Ctrl+Space and choose "Configure", you will find a new Shortcut in your QD-Shortcut-list ready to be used

Requirements

LabVIEW 2014 or later

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

Contributors
Tariff Impact Update Learn more