This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bar graph

Hi

In my project iam measuring the leak rate.

The range of leak rate is 1.0E-11 to 1.0E-02.Up now I measured leak rate and displayed
On the 7 segment display with 0.1 resolution. Here I used look up table method I taken hole Range values In the table and iam displaying the value for corresponding voltage .
I stored values in the farm Of (1011 =1.0E-11) here "." ,"E","-" are constants.

Now I want display the leak rate on BAR graph display.
For 20 digits I have to take one led.

The fallowing values I have to show on bar graph
1E-11, 3E-11, 5E-11, 7E-11, 9E-11, 1E-10,
3E-10, 5E-10…………………………………………2E-02

ex:
1E-11 = one led should glow
3E-11 = 2 leds should glow
5E-11 = 3 leds should glow
:
:
:


How to convert table values in to bar graph display.

Thanks

Regards

Parents
  • "EX:
    0000 0001 – led1 glow
    0000 0011 – led2 glow
    0000 0111 – led3 glow
    0000 1111 – led4 glow
    0001 1111 – led5 glow
    0011 1111 – led6 glow
    0111 1111 – led7 glow
    1111 11111 – led8 glow"


    Do you mean:

    0000 0001 – LED  1 glows
    0000 0011 – LEDs 1,2 glow
    0000 0111 – LEDs 1,2,3 glow
    0000 1111 – LEDs 1,2,3,4 glow
    0001 1111 – LEDs 1,2,3,4,5 glow
    0011 1111 – LEDs 1,2,3,4,5,6 glow
    0111 1111 – LEDs 1,2,3,4,5,6,7 glow
    1111 1111 – LEDs 1,2,3,4,5,6,7,8 glow
    or:
    0000 0001 – LED 1 glows
    0000 0010 – LED 2 glows
    0000 0100 – LED 3 glows
    0000 1000 – LED 4 glows
    0001 0000 – LED 5 glows
    0010 0000 – LED 6 glows
    0100 0000 – LED 7 glows
    1000 0000 – LEd 8 glows

Reply
  • "EX:
    0000 0001 – led1 glow
    0000 0011 – led2 glow
    0000 0111 – led3 glow
    0000 1111 – led4 glow
    0001 1111 – led5 glow
    0011 1111 – led6 glow
    0111 1111 – led7 glow
    1111 11111 – led8 glow"


    Do you mean:

    0000 0001 – LED  1 glows
    0000 0011 – LEDs 1,2 glow
    0000 0111 – LEDs 1,2,3 glow
    0000 1111 – LEDs 1,2,3,4 glow
    0001 1111 – LEDs 1,2,3,4,5 glow
    0011 1111 – LEDs 1,2,3,4,5,6 glow
    0111 1111 – LEDs 1,2,3,4,5,6,7 glow
    1111 1111 – LEDs 1,2,3,4,5,6,7,8 glow
    or:
    0000 0001 – LED 1 glows
    0000 0010 – LED 2 glows
    0000 0100 – LED 3 glows
    0000 1000 – LED 4 glows
    0001 0000 – LED 5 glows
    0010 0000 – LED 6 glows
    0100 0000 – LED 7 glows
    1000 0000 – LEd 8 glows

Children