Example Code

Rain Drop Simulation 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 VI simulates rain drops rippling across a surface.

 

Description
This is a simple fun VI that creates simulated rain drops rippling across a surface wherever the mouse is clicked. It can be used to learn how to change colors and draw circles programmatically on a picture control.

 

Requirements
LabVIEW Base Development System (or compatible)

 

Steps to Implement or Execute Code
1. Run the VI
2. Click with the mouse on any place of the picture control
3. Right click and choose Exit to Stop the VI


Additional Information or References
Capture.PNG
**This document has been updated to meet the current required format for the NI Code Exchange.**

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  

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

Comments
TroyK
Active Participant
Active Participant
on

I love it! It would make an excellent addition to my babykey app.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
stupidboy1121
Member
Member
on

Oops, Stop button is hidden! I have to use VI by VI to stop this.

stupidboy1121
Member
Member
on

Or.. Use pop-up menu?