|
Due: Wednesday,
February 21 by 4:00 p.m. via eMail to Doug.Harper@wku.edu
Create a VI that will convert a binary number
(represented by a Boolean array) to a scaled digital value. The VI
should first convert the Boolean array to a digital value in the range from
0 to 2N - 1 where N is the number of bits in the number (the
number of elements in the array). The binary value should be displayed
on the screen as an array of LEDs with the LED corresponding to the most
significant bit on the far left and the LED corresponding to the least
significant bit on the far right. There should be a cluster containing
a Minimum and Maximum value (default values of 0.00 and 5.00 respectively)
that will describe the range and polarity of the Psuedo DAC. After
converting the binary value to a value in the range from 0 to 2N
- 1, this value should be scaled so that 0 represents the minimum value and
2N represents the maximum value (which is never obtained). The
most straightforward way of doing this will be to use a for loop to process
the array and a shift register to accumulate the decimal sum of the
individual binary bits.
|