Example Code

Chaos Game Using 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

Overview

This example implement chaos game in LabVIEW.

 

Description

This program uses the Chaos Game method with various polygons to make fractals. The image is created by plotting a point a certain fraction of the distance between the current point and a randomly selected vertices. A triangle with the ratio set to .5 will create the Sierpinski Triangle seen in the image below. Other configurations that make interesting fractals are (N=3,R=2/3), (N=5,R=5/8), and (N=6,R=2/3). Experiment with the program to find a slew of other beautiful fractals and images.

 

Requirements

  • LabVIEW 2012 (or compatible)

 
Steps to Implement or Execute Code

1. Set Parameters
2. Run VI
3. Look at the image created

 

Additional Information or References

Main VI Block Diagram

 Write read measurement file LV2012 NI verified.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
HunterSeeker
Member
Member
on

Great Example, cool program