NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Quick Drop Keyboard Shortcut - Create Object from Terminal

VERSION 6

Created on: Oct 9, 2009 4:34 PM by Darren Nattinger - Last Modified:  Oct 9, 2009 5:18 PM by Darren Nattinger

The attached Quick Drop Keyboard Shortcut allows you to create a control, indicator, or constant off of whatever diagram terminal you are currently hovering over with your mouse cursor.  You can also use this shortcut to optionally set the value of a constant created in this manner.

 

Create Control/Indicator

1.  Hover your mouse cursor over the terminal of a function, subVI, or any other diagram object.

2.  Press Ctrl-Space-Ctrl-Q.  If you were hovering over an input terminal, a control will be created and wired to that terminal.  If you were hovering over an output terminal, an indicator will be created and wired to that terminal.


Create Constant

1.  Hover your mouse cursor over the terminal of a function, subVI, or any other diagram object.

2Press Ctrl-Space-Ctrl-Shift-Q.  If you were hovering over an input terminal, a constant will be created and wired to that terminal.  If you were hovering over an output terminal, nothing will happen.

3.  Optional - Press Ctrl-Space, type a value into the Quick Drop combo box, then press Ctrl-Shift-Q.  The constant that is created will have the value you typed.  Supported data types for this functionality are Numeric, Boolean (use 't' or 'f'), String, and Path.

 

Installation Instructions

Save q.vi and q_LocatorCallback.vi in your [LabVIEW 2009]\resource\dialog\QuickDrop\plugins folder.  No LabVIEW restart is required.

 

Additional Notes

  • This shortcut is supported on Windows and Linux only.  The shortcut uses the Input Device VIs to determine mouse position, and these VIs are not currently supported on Mac.
  • The shortcut may not work properly when hovering over an object that has multiple terminals with identical coordinates, like a Case Structure tunnel or a Loop shift register.

 

Downloads:
Average User Rating
(1 rating)




mysticfree mysticfree  says:

Doesn't work for me. I downloaded your VIs and installed to my 2009 directory as directed.  With an object selected, Ctrl-Space-Ctrl-D and Ctrl-Space-Ctrl-space-D give me a "Data Cache Size" object each time.  "Q" gives me "QR Decomposition.vi [NI_AALPro.lvlib]" I've restarted LabVIEW with no improvement.  When I press ctrl-space and then click "shortcuts", there is nothing listed in either "front panel" or "block diagram" tabs.  I'm using Windows XP SP3.  Is there an option that I need to set?

Darren Nattinger Darren Nattinger  says:

This problem is probably happening because you have LVSpeak installed.  Please check this link for a fix. Let me know if this solved the problem.

mysticfree mysticfree  says:

Yes, LVSpeak was the problem.  Unfortunately, updating the LVSpeak file crashed my Labview and erased the QuickDropWindow.vi.  It took me a couple of hours but I finally was able to get the QuickDrop windows working and now ctrl-shift-ctrl-commands give me constant, indicators and controls.  All (except for LVSpeak) seems to work now.  Thanks!

More Like This

  • Retrieving data ...