To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This application simulates the behaviour of the wheel of fortune.
Introduction
Please try spinning the wheel of fortune. What will you win today?
This fun application allows the user to spin the wheel of fortune. Each time the application is run, the wheel will be spun with a random level of momentum.
The code utilises some bespoke maths to generate the random momentum and to reformat the image to allow for the rotation. The rotating wheel is displayed to the user via a picture control.
The picture's pivit point (point around which the wheel rotates) can be defined via a numeric cluster constant.
Requirements
Steps to implement
Additional Information or References
Block Diagram
**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.