Progress Bar for unknown time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swapnaoe
    New Member
    • Jul 2006
    • 21

    #1

    Progress Bar for unknown time

    Hi,
    I have an application that writes data from PC to a 8052 microcontroller 's Flash.
    It takes an accountable amount of time.I want to show a progress bar for the same but i cannt quantify the time(time it takes to complete writing all bytes to the falsh).I have an idea on progress bars with minimum and maximum limits known.I would like to know for unknown situation like my application
    Can anyone please give me kick start tips for the same.

    Regards,
    Swapna
  • albertw
    Contributor
    • Oct 2006
    • 267

    #2
    Originally posted by swapnaoe
    Hi,
    I have an application that writes data from PC to a 8052 microcontroller 's Flash.
    It takes an accountable amount of time.I want to show a progress bar for the same but i cannt quantify the time(time it takes to complete writing all bytes to the falsh).I have an idea on progress bars with minimum and maximum limits known.I would like to know for unknown situation like my application
    Can anyone please give me kick start tips for the same.

    Regards,
    Swapna
    hi
    cheapest solution is to have your progressbar run continiously ...
    as you can't tell the max-value you have little option to do otherwise.

    Comment

    • swapnaoe
      New Member
      • Jul 2006
      • 21

      #3
      Originally posted by albertw
      hi
      cheapest solution is to have your progressbar run continiously ...
      as you can't tell the max-value you have little option to do otherwise.
      Hi, Thank u for the relpy but could you please elaborate on your solution.

      Comment

      • albertw
        Contributor
        • Oct 2006
        • 267

        #4
        Originally posted by swapnaoe
        Hi, Thank u for the relpy but could you please elaborate on your solution.
        hi
        i should put something like this within your progressbar-loop

        if progressbar.val ue=maxvalue then progressbar.val ue=minvalue

        here your progressbar will be 'reset' to startposition.
        try to avoid values larger than maxvalue and smaller than minvalue
        otherwise you will get an error.

        Comment

        Working...