Quick Drop Enthusiasts

Quick Drop Keyboard Shortcut - Nattify VI

When I need to edit a VI I didn't write, I find it irritating when the VI was created with IDE preferences that don't match my own. So I wrote this plugin that will "Nattify" any VI at the press of a button (Ctrl-Space, Ctrl-N to be specific). Nattification currently does the following:

 

  1. Turn off automatic error handling.
  2. Turn off auto grow on all structures.
  3. Make the front panel the default color.
  4. Change all control/indicator terminals on the block diagram to Terminal View.
  5. Move all error wires to the back of the Z-plane order.
  6. Rename the error control on the conpane to 'error in', and the error indicator to 'error out'.
  7. Set all subdiagram labels to 'Left' justification.
  8. Move control/indicator terminal labels to the left/right sides, respectively.
  9. Make control/indicator labels transparent.
  10. Clean up the panel and reposition/resize the window to the upper-left corner of the screen. Also reposition/resize the block diagram window to the upper-left corner of the screen. Note that this functionality was brazenly stolen from Kosta's Arrange VI Window plugin.

If you don't want to modify the panel appearance, you can type 'p' in the Quick Drop window before pressing Ctrl-N. This will skip cleaning up the panel and changing its color.

 

I understand you may not share all my same preferences. But that's cool, the code should be very easy to navigate (since I implemented it as a Natt Sequence), so feel free to install the plugin, then add/remove/modify any of the existing functionality to match your preferences. If you do add anything, let me know in the comments below, maybe it's something I'd also like, and I just haven't thought of it yet.

 

This plugin can be used with LabVIEW 2014 and later. Default key assignment is Ctrl-N. See here for installation instructions. Make sure you place the support LLB next to the Nattify.vi on disk.

 

P.S. - If this sounds familiar, I wrote a simpler version of this tool as part of my Don't Wait for LabVIEW R&D... Implement Your Own LabVIEW Features! presentation at NIWeek 2018.

DNatt, LV R&D
Message 1 of 3
(693 Views)
2 REPLIES 2
Highlighted

Re: Quick Drop Keyboard Shortcut - Nattify VI

This is awesome, thanks for sharing this Darren! I used this today and went a bit crazy and decided I needed to Nattify all of the VIs in a project. So I made this little VI to wrap a slightly-modified version of your Nattify.vi* and apply it to all of the VIs in a project. I thought I'd share it in case anyone else finds it useful or is trying to do the same thing. 

 

I'm using LabVIEW 2019 so if anyone needs it in a previous version I (or someone else) can save it in a previous version and upload it. 

 

Since this uses a version of Darren's Nattify.vi it needs the support llb next to it on disk. I found that in one of the VIs to align the front panel it uses a feedback node which makes it have a bug when calling it a few times in a row, so you will need to use this other support library instead. 

 

*The only change is it passes out the vi ref and doesn't take in some of the inputs that are only needed for quickdrop.

Message 2 of 3
(329 Views)

Re: Quick Drop Keyboard Shortcut - Nattify VI

Thanks for sharing your additional Nattification tooling, Dani.

 

FYI, I just posted a small update to the Nattify tool. Now, if you type 'p' in Quick Drop before pressing Ctrl-N, the tool will skip the panel cleanup and changing the panel color. I did this because I found myself wanting to Nattify UI VI diagrams, but not change their panel appearance.

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