From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Dual Monitor Quick Drop Plugin For Window Snapping in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

 

Overview
This example adds functionality in LabVIEW to tile your front panel and block diagram to seperate screens.


Description
Makes use of LabVIEW properties and windows dll files to maximise the front panel on one monitor, and the block diagram on the other. For those who would like the functionality of CTRL + T to expand to multiple monitor support.

This plugin was built based on the plugin template, QuickDrop Plugin Template.vit that can be found in C:\Program Files (x86)\National Instruments\LabVIEW 20XX\resource\dialog\QuickDrop.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. The VI and included library can be extracted into your quick drop folder (typically found at C:\Program Files (x86)\National Instruments\LabVIEW 20XX\resource\dialog\QuickDrop\plugins).
  2. Open a blank VI and test the functionality, you should be able to open quick drop using CTRL + SPACE, and then whilst the quick drop window is open, use CTRL + T to tile to multiple monitors

 

Additional Information or References
VI Block Diagram

 

 code.png

  **This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

Matt H
Applications Engineer
National Instruments UK

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

Comments
dagelet_p
NI Employee (retired)
on

Very nice plugin!

Use it all day.

Thank you

Hooovahh
Proven Zealot Proven Zealot
Proven Zealot
on

Isn't the CTRL+T used for the Move Terminal Labels which is installed with LabVIEW?  I would suggest using a different shortcut that doesn't interfere with base LabVIEW functionality.

EDIT: Oh and you can get the HWND of the front panel or block diagram using property nodes in LabVIEW I think the Property is called Native Window