Example Code

Transparent Cubes in a 3D Picture Control 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

Download All

Overview

This code allows the user to draw a couple of 3D cubes and uses the Properties Control to Configure them.

 

Description

This VI uses the Create Box.vi to create two different cubes in a 3D Picture Control.  Then there are specific Blending properties that need to be set to make them transparent (alpha value).

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Configure Color, Blending Mode, and rest of the Properties of the Big and the Small 3D Cubes
  2. Run VI

Additional Information or References

7871.png

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

Thanks!
Bob H
Applications Engineer
National Instruments

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