Example Code

Tile Front Panel Windows using LabVIEW

Code and Documents

Attachment

Overview:
If you have multiple VI Front Panels open, it is currently not possible to programmatically tile these windows across your monitor.


Description:
This VI will take an array of VI references and tile it across your monitor based on the given workspace dimensions.

 

Requirements:

  • LabVIEW 2012 Base Development System (or compatible)

Steps to Implement or Execute Code:

  1. Open Title Panel Windows Project.lvproj
  2. Ensure to have open from Test VI 0 to Test VI 3.
  3. Run Main.vi

 Additional Information or References

 Tile Front Panel Windows.png

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

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

Comments
WG-
Member
Member
on

Very nice example! This can be very usefull. For example in my case I've 4 graphs, now I'm plotting these underneath each. But I was also thinking of making a dialog for each graph, but then I thought... your screen of course get messed up with dialogs laying above each other. The user could grab and move each dialog then to a good position to view but that isn't very user friendly. This code solves that now.

David_L
Active Participant
Active Participant
on

Thanks! That's actually exactly how I came across the problem.  I wanted to be able to open a specified number of graphs decided at run-time, but needed them all showing at once.  Hopefully this will help you solve your situation too.