Quick Drop Enthusiasts

Quick Drop Keyboard Shortcut - Create via_ignore Bookmark

This plugin is intended for use with the VI Analyzer in LabVIEW 2018 or later, which provides the ability to ignore individual failures for certain VI Analyzer tests with #via_ignore bookmarks:

1.png

In this example, the 'Backwards Wires' test will be ignore for the wire attached to the bookmark label, while the 'Broken VI' test will be ignore for this entire VI (since the free label is not attached to anything).

 

The purpose of this shortcut is to aid the user in creating these bookmarks. You can use the shortcut in the following scenarios (which assume the default shortcut assignment of Ctrl-V😞

 

1. Select no items and press Ctrl-Space, type some text, then press Ctrl-V. A free label with the text #via_ignore, followed by whatever text you typed, will be created in the center of the diagram.

2. Select one or more items and press Ctrl-Space, type text, then press Ctrl-V. A free label with the text #via_ignore, followed by whatever text you typed in Quick Drop, will be created and attached to each selected item. If there was already a free label attached to the specified item(s), the typed text will be appended to the end of that label (along with the #via_ignore bookmark if it is not already present).

3. If you are browsing results in the VI Analyzer Results Window and you employ scenario (1) or (2) above, without typing any text in Quick Drop, then the name of the test associated with the current selection in the Results Window will be automatically added to the created bookmark label.

 

To install this shortcut, save the attached VI in one of the following locations (no LabVIEW restart required):

<LabVIEW 20xx>\resource\dialog\QuickDrop\plugins

<LabVIEW Data>\Quick Drop Plugins

 

This shortcut works in LabVIEW 2018 and later.

DNatt, LV R&D
Message 1 of 7
(1,124 Views)
6 REPLIES 6
Highlighted

Re: Quick Drop Keyboard Shortcut - Create via_ignore Bookmark

One of my favorite features in LabVIEW 2018.

 

Thanks!,

Fab



Opportunity to learn from experienced developers / entrepeneurs (Steve, Joerg, and Brian amongst them):
DSH Pragmatic Software Development Workshop

DQMH Lead Architect * DQMH Trusted Advisor * Certified LabVIEW Architect * Certified LabVIEW Embedded Developer * Certified Professional Instructor * LabVIEW Champion * Code Janitor

Have you been nice to future you?
0 Kudos
Message 2 of 7
(1,110 Views)
Highlighted

Re: Quick Drop Keyboard Shortcut - Create via_ignore Bookmark

Neat and I'll try this out for sure.  I'm sure you've already thought about the fact that CTRL+V is already a almost universal shortcut for performing paste in the Windows operating system.  While I have a hard time suggesting a more appropriate shortcut I'm not a fan of this using V.  I used to have the CTRL+V quick drop in the past and found that it would prevent me from being able to paste into the QD window.  While I didn't do it all that often there were times when I wanted to be able.  Still useful and if it made it into 2019 as CTRL+V I'd probably just change it to something else.  I actually have the Past Clipboard Table QD shortcut which I feel is a more compelling reason to use CTRL+V and have for me assigned it to CTRL+O just because I didn't want to lose my ability to paste.

 

I guess a compromise might be, that if CTRL+V is taken by a default function, I'd like the ability to right click, and select paste in the QD window which at the moment I can't.

0 Kudos
Message 3 of 7
(1,085 Views)
Highlighted

Re: Quick Drop Keyboard Shortcut - Create via_ignore Bookmark

I use Ctrl-V to paste text in Quick Drop too (actually used it several times in a demo during one of my NIWeek sessions this year). If this plugin ships with a future version of LabVIEW, we'll use a different shortcut. As a general policy I try to avoid using Ctrl-A/C/V/X for QDKS assignments. In this case I threw the plugin together fairly quickly and couldn't think of a better letter to use. πŸ˜›

DNatt, LV R&D
0 Kudos
Message 4 of 7
(1,079 Views)
Highlighted

Re: Quick Drop Keyboard Shortcut - Create via_ignore Bookmark

Found out that this works great if you are launching VI analyzer normally, but if you create a quickdrop shortcut to launch VI analyzer and then display the results window, it runs in a separate application context (not the editor) and the quickdrop shortcut never finds the vi analyzer results window to see which test is selected and then add the ignore. 

0 Kudos
Message 5 of 7
(898 Views)
Highlighted

Re: Quick Drop Keyboard Shortcut - Create via_ignore Bookmark

Is your Quick Drop shortcut launching the Results Window via the VI Analyzer API? Specifically, with the 'Show Results Window?' input to VIAn Run.vi? If so, it looks like I open the Results Window in a different app instance for a programmatic analysis vs. an interactive analysis, but the Create via_ignore Bookmark code assumes the interactive analysis app instance.

DNatt, LV R&D
0 Kudos
Message 6 of 7
(893 Views)
Highlighted

Re: Quick Drop Keyboard Shortcut - Create via_ignore Bookmark

I just posted an update to the plugin. Here are the changes:

 

1. The plugin should now properly retrieve information from the Results Window regardless of how it was launched (UI, API, etc.).

2. If you have a nested cluster constant selected, the free label will be created and will be attached to the top-level cluster.

3. If the selected object already has an attached label containing the name of the current test, the shortcut will no-op.

4. The new attached label is now always dropped on the top-level diagram, so that diagram object arrangement (like structure auto-grow) will not be affected by the new label.

DNatt, LV R&D
0 Kudos
Message 7 of 7
(877 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.