Example Code

LabVIEW Box Plots

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

Description

The LabVIEW Code attached provides support for creating box plots and having multiple box plots presented on a single graph.

 

This code started with and improved code from these two examples:

-Creating Boxplots Using LabVIEW

-Boxplots and Stem-and-Leaf Displays

 

Front Panel:

Box Plot Front Panel.png

Block Diagram:

Box Plot Code.png

Improvements from the previous verisons:

-Improved quartile calculation: Median and Quartile Calculator (Q1, Q2, Q3) using LabVIEW

-Made multiple box plot graphs work properly

-Added ability to change horizontal scale of plots (width per box)

-Added ability to choose plot color (instead of just black)

-Allows differently sized data arrays for each plot (by using an array of clusters)

 

Attached versions are in LabVIEW 2014, 2009 and 8.0 (using save for previous)

Craig H. | CLA CTA CLED | Applications Engineer | NI Employee 2012-2023

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

Comments
gnunesjr
Member
Member
on

Thank you!  Extremely nice.  Works perfectly right out of the box, and is easy to use.

Just_Amber
Member
Member
on

This is amazing. Thank you for creating it.



sjtuyans
Member
Member
on

Thank you Craig, very easy to use and nice tool.

Shu Yan
CLA since 2010 | CTA since 2012 | CLED since 2016
sjtuyan@gmail.com
-Newton-
Member
Member
on

Still working beautifully in 2022! Thanks for creating this!