{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

LAB_5_Exercises

# LAB_5_Exercises - Lab 5 Exercises Exercise 1 A binary...

This preview shows pages 1–2. Sign up to view the full content.

Lab 5 Exercises Exercise 1: A binary digital byte is an eight-object logic gate. For example, let's create an eight LED byte organized as shown on the figure below: With the word “binary” it is meant that this logic gate takes logic arguments that comply with the binary system of numbers: 2 0 =1, 2 1 =2, 2 2 =4, 2 3 =8, 2 4 =16, 2 5 =32, 2 6 =64, 2 7 =128. For example, if we write a 1 (which is 00000001 in binary language) to the binary byte, then LED number 0 will light up. If we write 32 (which is 00100000 in binary language) to the binary byte, then LED number 5 will light up. If we want LED’s number 3 and 6 to light up, we must write 8+64=72 (which is 01001000 in binary language). If we want all the LED’s to light up, we must write 255 (which is 11111111 in binary language) to the binary gate. There are two ways to light up the LED's that we want. In the first one, we send an array of Booleans made up of 8 Booleans with each Boolean corresponding to one of the LED’s. In the second method, we send a number to the digital byte (the method explained above). Create a VI that contains the LED arrangement shown above. Light up the LED’s 0, 2, 4, 6, 7, 5, 3, 1 in order. This lighting up series should continue on until the user

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern