Binary Numbers VI

The goal of this exercise is to build a VI to study different number bases, especially base 2 - the binary number system.

  1. Start with a simple numerical control and indicator. Wire them up and see how one controls the other. Save this VI as BinaryCounter.
  2. Change the representation of the control and indicator from the default double precison (DBL) to an integer byte (I8).
  3. What are the limits of the number?
  4. Change the Format of the indicator (under Properties) to binary. Explain the binary format.
  5. Change the representation of the control and indicator to unsigned integer byte (U8).
  6. Now what are the limits of the number? Explain the binary format.
  7. Add multiple indicators to your VI and set them to display decimal, hexadecimal, octal, binary, and boolean. For the boolean case, you first need to convert number to boolean array, and to make sure we have only 8 bits, put a convert number to integer byte before that. Create a duplicate boolean indicator with the array reversed. Explain each indicator and its number base format.
  8. Change the control to unsigned integer word (U16). Leave indicators as U8. Examine and explain the limits now.
  9. Get LabVIEW to do the counting automatically by putting all your program inside a while loop and save this new VI as BinaryLooper.
  10. Use the iteration terminal to do the counting.
  11. Add a time delay to the loop to slow it down.
  12. Discuss the different wire types and colors used in your VI.

Different data types are indicated with different colors.