Example Code

Random Color Generator

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

Generation of a random color determined by specified limits.

 

Description

Perfect VI to use as a SubVI to generate a random color with certain constraints. The VI uses the "In Range and Coerced" function to limit the possible colors.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code 
1. Select the color limits
2. Run the VI

 

Additional Information or References

Snippet.png

National Instruments
Applications Engineer

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

Comments
jwdz
Active Participant
Active Participant
on

Download file wrong!

" 一天到晚游泳的鱼"

labview@263.net

我的个人网站:LabVIEW——北方客栈 http://www.labview365.com
欢迎加入《LabVIEW编程思想》组——http://decibel.ni.com/content/groups/thinking-in-labview
GoCougs
NI Employee (retired)
on

Sorry, it's fixed now

National Instruments
Applications Engineer