Assignment
Create a VI that simulates the rolling of five dice. The VI should have five indicators, and when it is run a random integer from 1 to 6 should appear in each box, with equal probability for each. The VI must then calculate and display the sum of all five die with an LED indicating if the total is in the range 5-13, 14-22, or 23-30. Finally, make each dice indicator a different color.
Download
Working version of VI (no block diagram access)
Textbook sections
LabVIEW basics (pp. 1-33)
Random number generator (p. 36)
Programming hints
Start each roll with the Random Number Generator which can be found on the functions palette [Programming » Numeric » Random Number (0-1)]. As the name implies, this function will generate a random number between 0 and 1. Think about how you will turn this into an integer from 1 to 6. You may need to make use of the rounding functions on the Numeric subpalette.
Make use of Boolean and Comparison functions to configure the LEDs.
Front panel (example)