Example Code

Dynamically Scaling Graphs using LabVIEW

Code and Documents

Attachment

Overview:

Dynamically change the size of multiple graphs on the same front panel.

Description:

I made this example to demonstrate how to use VI Server functions (property nodes) to dynamically change the size of multiple graphs on the same front panel.  I'm sure there are ways to optimize, but this did the trick for me. I can imagine creating different layouts for the smaller graphs depending on your front panel size.

Requirements:

  • LabVIEW 2012 Full Development Environment (or compatible)

Steps to Implement or Execute Code:

  1. Run Main.vi 
  2. Move your cursor over any of the graphs and it will resize to fit the whole screen
  3. Move your cursor off of the graph and it will return to its original size.

Additional Information or References:

Scalable Graphs BD.pngScalable Graphs FP.png

 

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

Todd S.
LabVIEW Community Manager
National Instruments

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