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.

• Floating point numbers (decimal numbers) are shown in orange color. The letters DBL on the icon is for double, which refers to floating point numbers with double precision, which expresses the numerical accuracy of the internal representation of the number in the computer. You can think of floating point numbers as decimal numbers. One example is the u terminal.
• Integers are shown in blue color. One example is the numeric constant of value 1000.
• Boolean data are shown in green color. The letters TF on the icon is for True/False, which are the two possible boolean (logical) values of the element. One example is the Stop terminal.
• Textual data are shown in pink color. One example is the High Alarm terminal.
• Cluster data are shown in brown color. Clusters are multivariables. They contain one or more elements of possibly different data types. One example is the Cluster_param terminal.