1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Progress Bar for unknown time

Discussion in 'Visual Basic ( VB )' started by swapnaoe, Oct 26, 2006.

  1. swapnaoe

    swapnaoe New Member

    Joined:
    Oct 26, 2006
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. rahulnaskar

    rahulnaskar New Member

    Joined:
    Aug 26, 2004
    Messages:
    25
    Likes Received:
    2
    Trophy Points:
    0
    If the progress to be depicted is unknown, then progress bar might not be the best choice. Show something similar to XP (4 green squares waiving till a work is done). A better choice would be showing a timer also.
    To improve on that you can collect statistical data over a period of time then put the progress bar depending on the configuration of the hardware or something by which you can quantify.
     
  3. swapnaoe

    swapnaoe New Member

    Joined:
    Oct 26, 2006
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    0
    thank u so much for the reply rahul...How about the following ????????
    Sorry i never mentioned that i have the number of bytes to be flashed known.. :)

    'WRITING THE DATA BYTES

    progressbar.Max = number_records

    For r = 0 To number_records

    For b = 0 To bytes_per_record '

    send record(r).byte(b)
    recieve byte ' from target
    check if recieved byte= sent byte ' byte level verification

    Next b

    check for checksum that is dependent on 16 bytes ' record level verification
    progressbar.Value = progressbar.Value + 1 '

    Next r

    'VERIFYING THE DATA BYTES

    progressbar.Max = number_records * bytes_per_record

    For b = 0 To number_records * bytes_per_record
    recieve byte ' from target
    check if recieved byte= sent byte(b)
    Next b
    progressbar.Value = progressbar.Value + 1 '
    ***********************************************
    I shall use one progress bar to perform my 'WRITE' and 'VERIFY' operations.
    They wil be using the progress bar one after the other since it is a sequence process.
    How far am I right ????
     
  4. compgeek

    compgeek New Member

    Joined:
    Nov 30, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Getting a polynomial Expression in VB6

    Hi ,

    I have posted this thread 3 to 4 days back . But I didnt get any reply....
    I found Your post and I thoght i may get solution for my problem ... So I am Posting it in Wrong location
    I hope My Problem get solved...............!!!!!!1

    Bye


    Hi everyone

    I want to know the method to get a polynomial expression in vb so that i can write program for "Numerical methods of finding interpolating Polynomial,Differentiation & Integration"

    THE ACTUAL FORM OF THE INTERPOLATING POLYNOMIAL TO BE CALCULATED IS AS FOLLOWS

    (x-x1)(x-x2)(x-x3)(x-x4)
    ----------------------------- +
    (x0-x1)(x0-x2)(x0-x3)(x0-x4)


    (x-x0)(x-x2)(x-x3)(x-x4)
    ----------------------------- + ...........
    (x1-x0)(x1-x2)(x1-x3)(x1-x4)


    THE SUM CONTINUES BY LEAVING x2, x3, x4 AND INCLUDING REMAINING POINTS IN SERIES IN THE NUMERATOR AND USING THE LEFT POITS IN DENOMINATOR...=> IN EVERY PART THERE WILL BE 4 TERMS IN THE NUMERATOR AND DENOMINATOR

    The final polynomial expression after simplyfying the above will be in the form of
    a4x^4 + a3x^3 +a2x^2 + a1x + a0 whose degree is 4
    the polynomial expression to be calculatd can be of any degree based on the datapoints given.


    Can any one expalin me in detail the method to get the above mentioned polynomial
    based on the values of x0,x1,x2,x3,,x4 ......... ???


    IS THERE ANY WAY TO GET THE FORM OF THE EQUATION IN CONVENTIONAL WAY WITH ALL THE SUBSCRIPTS ,SUPERSCRIPTS,.....ETC BY CONNECITNG IT TO THE TOOL EQUATION EDITOR IN MICROSOFT WORD

    waiting for a nice reply

    BYEEEE
     
  5. compgeek

    compgeek New Member

    Joined:
    Nov 30, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Reading a mathematical expressiong in VB6

    Hi ,

    I have posted this thread 3 to 4 days back . But I didnt get any reply....
    I found Your post and I thoght i may get solution for my problem ... So I am Posting it in Wrong location
    I hope My Problem get solved...............!!!!!!1

    Bye

    Hi everyone

    I want to know the method to read a mathematical expression from the user in VB6
    The equation can be in any form like (xy + cos x + log(x+y) )/x^2
    the integration of this function is to be found out in the specified intervals using numerical methods(simphsons 1/3rd rule........etc)
    Can any one send me the method to do it in VB 6 if its is possible

    can we connect the tool Equation Editor in Microsoft word to write the equations in the textbox or any other control so that the user can easily write the function easily???
    if so how to connect it ??

    Byeee
     
  6. renaud4

    renaud4 New Member

    Joined:
    Feb 8, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    All i want to know is how to make the proggress bar in notepad++
     
  7. renaud4

    renaud4 New Member

    Joined:
    Feb 8, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Is it vbscript?
     
  8. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    How do you want the notepad to make you a progress bar. You need to learn programming for that
     
  9. renaud4

    renaud4 New Member

    Joined:
    Feb 8, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    My son (10 yrs old) needs to know if the progress bar code is VBscript or Flash etc. He is in the beginning stages of learning programming and has all kinds of things he wants to learn but at times doesn't know where to begin.
    Thank you for your time.
    He would like you to reply with the code for the progress bar at your convenience. He says "It doesn't have to have a specific time." He says you will know what this means.
    KRenaud
     
  10. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Ask him to post here because you are not able to say what he is looking for.

    Progress bar can be made in any known programming language.
     
  11. renaud4

    renaud4 New Member

    Joined:
    Feb 8, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Even Javascript?
     
  12. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Yes.
     
  13. TechnoDemon

    TechnoDemon New Member

    Joined:
    May 1, 2009
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Graphic Designer
    Location:
    kernel32.dll
    i think this topic help me develops my AV interface (when it scans the target directory)
    But i really need help to develop my heuristic engine. I still use the standard repetition for each file.
     

Share This Page