Question: Create a front panel that has 8 LED indicators and a vertical slider control that is an 8-bit unsigned integer. Display a digital indicator for

 Create a front panel that has 8 LED indicators and a

Create a front panel that has 8 LED indicators and a vertical slider control that is an 8-bit unsigned integer. Display a digital indicator for the slider, making sure that the LEDs are evenly spaced and aligned at the bottom. The problem is to turn the 8 LEDs into a binary (base 2) representation for the number in the slider. For example, if the slider is set to the number 10 (which in base 2 is 00001010 = 1* (23)+1* (21)), the LEDs 1 and 3 should be on. To test your solution, check the number 131. Since 131 is 10000011 in base 2, LEDs 0, 1, and 7 should be on. What happens if you input a number greater than 255? Modify the VI using case structures to provide a check. If the number is greater than 255, send a warning message to the user

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!