Read Chapter 3 ("Editing and Debugging Virtual Instruments") of Robert H. Bishops’s LabVIEW 2009 Student Edition.
Complete and turn in the following Exercises, Problems, and Design Problems on pages 162-169 in the book:
For Exercise E3.2, name your program E3_2_Indicator.vi.
For Exercise E3.3, name your program E3_3_Terminal.vi.
For Exercise E3.4, name your program E3_4_Wires.vi.
For Exercise E3.5, name your program E3_5_OilChange.vi.
For Problem P3.1, name your program P3_1_Random.vi. Change the scale on both meters so that the minimum is 0 and the maximum is 1. Also, on the red meter, make the needle black so that you can see the needle against the red face. For this program and all other programs that you write, label your controls and indicators with meaningful names, instead of using LabVIEW’s default names.
For Problem P3.2, name your program P3_2_Stoplight.vi. Set the dial’s representation to integer (I8) and set its scale so that the only three possible values are 0, 1, and 2.
For Problem P3.6, name your program P3_6_Radians.vi.
For Design Problem D3.1, name your program D3_1_Average.vi.
For Design Problem D3.2, name your program D3_2_Binary.vi. Here are some hints and notes about this one:
Hint: LabVIEW has some functions (such as Number to Boolean Array) that would make this very easy, but I don’t want you to do it this way. Instead you should use
only functions that you’ve learned about in previous Labs and Homeworks. Recall from your Digital Electronics course that
there are a couple of standard ways of manually converting a number from decimal to binary. One method is
called repeated division by 2. The other method relies on the column weights in the binary number system
(1-2-4-8-16-32 and so on). Either of these manual methods can be translated into a LabVIEW block diagram without
too much trouble, using functions that you used in Lab 3. To implement the first method (repeated
division by 2), you’ll need several copies of LabVIEW’s Quotient and Remainder function and
several copies of a comparison function (such as Equal?). To implement the other method
(which relies on column weights), you’ll need several copies of a comparison function (such as Greater
or Equal?), several copies of the Select function, and several copies of
the Subtract function.
Note #1: The directions tell you to "display a digital indicator for
the slider." To do this, right-click the slider and select Visible
Items > Digital Display.
Note #2: The range on your slider’s
scale should go up to the largest positive decimal integer that we can represent
with 8 bits. What number is that?
For Design Problem D3.3, name your program D3_3_Random.vi. Note: This problem’s directions don’t say whether the random numbers should be floating-point or integer, so you can do it either way. But the rest of the directions probably make more sense if you use integers. (If you use floating-point numbers, there’s a "gap" between 4 and 5 for which no LED lights up.)
Use the Homework #3 Dropbox on the course website
to send me your files.