Progress bar that shows the progress of measurements

how to create a progress bar which gets initiated once a button is pressed and fills up with every second elapsed? Mainly i want to create the same progress bar as it appears in windows or winrar kinda things where the expected time and elapsed time is shown.
Solved!
Go to Solution.

Hi Naina,
- I would use a while loop when you don't know how long the progress will run...
- I would use a wait function in the loop set to wait for 1000ms to get an update each second...
- you need to now from your process the progress and the elapsed time (as said before) and additionally the state (running or not running). That's all you need to know to calc the progress bar...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • How can I add a Progress bar to show the "render to JPG" progress?

    Hi everyone, I have a button which renders my component to
    JPG.
    How can I attach a progress bar to show the progress of the
    rendering?
    <mx:Button label="render" click="renderasJPEG ()"/>
    public function renderasJPEG( ):void
    convertToImage( component001, new JPEGEncoder( 100));
    private function convertToImage( object:IUICompon ent,
    encoder:IImageEncod er):void
    var base64string: String = ImageSnapshot. encodeImageAsBas
    e64(
    ImageSnapshot. captureImage( object, 72, encoder));
    var variables:URLVariab les = new URLVariables( );
    variables.encoded = base64string;
    variables.type = "jpeg";
    var request:URLRequest = new URLRequest(" script_saveasima
    ge.php");
    request.method = "POST";
    request.data = variables;
    navigateToURL( request, "_blank");
    Thanks in advance.

    Hi,
    I would have thrown a prompt to the user in the renderasJpeg
    function and removed it in last line of convertToImage function.
    Isn't this what you want?
    Hope this helps.

  • How do I reinstate the information bar that shows the prevention of opening a pop-up window?

    After Firefox opened the information bar telling me they blocked a pop-up window I inadvertently clicked the option link and deleted the information bar from coming up again.
    How do I reinstate the information bar that shows the prevention of opening a pop-up window?
    == This happened ==
    Just once or twice
    == I clicked the option link and selected the "do not show this again" option

    I set browser.popups.showPopupBlocker to false, and information bar still appears.
    When I also set privacy.popups.showBrowserMessage to false, it doesn't appear.
    To test, whether the information bar appears, I use
    [http://www.popuptest.com/popuptest3.html]
    So, set to true preferences
    privacy.popups.showBrowserMessage
    and
    browser.popups.showPopupBlocker
    Both of them!!!
    Does it help you?

  • FM10 Progress-bar indicator shows no progress

    I'm using FM10 (v10.0.2.419) on Windows 7 OS.
    When I print to postscript, the pink ribbon that used to show the progess does not display any longer,
    and the percentages indicator remains at 0%.
    Any ideas? My colleague right next to me is using the same SW and HW and does not have this problem.
    Thanks in advance for any ideas....

    Do you see the page numbers increasing below the progress bar (thermometer in FM's parlance)? Does the job "print" to completion? What device are you printing to?
    You could check your maker.ini file to see if the colour definition has been changed to be a background grey. The default setting should be:
    [Thermometers]
    ;-------------------- Thermometer Color Definitions -----------------------
    ThermoDoneColor=255, 0, 255
    ThermoRemainingColor=192, 192, 192
    There are two versions of the maker.ini file. The global one in the %FMhome% folder and the user-specific one in the \Users\<username>\AppData\Roaming\Adobe\FrameMaker\11 folder.

  • My iphone synced and on the bar( that shows the gigs) says i have all my music in my phone but when i look at my phone none of my music is there...

    I had a bunch of CD's i put in on my itunes and wanted to put it in my phone but it didn't work and swiped all my music previously that has been on my phone.  I dont know how to fix this and dont know how to sync my music in.  I keep syncing and it says on the bar where it separates (other, audio, video, etc) that my audio is sync with all my music but when i look in my library it has none of the music that has supposedly synced.  Please help me. 

    This can happen if iTunes gets confused about what is and isn't on the device. These steps should resolve.
    Backup the device.
    Restore as a new device.
    Restore the backup made earlier.
    tt2

  • How can I show the progress of web page loading only in the right bottom of screen?

    When I downloaded the first Firefox upgrade that had no progress bar, I somehow found out how to stop the new progress bar (that shows all the progress in web addresses rather than a progressive bar) from jumping around in the bottom left or right of the screen. I had it only appearing in the bottom right of screen. Now a new version of Firefox has been downloaded and is once again jumping around from left to right depending what else is showing on the screen. Most annoying, how do I get it to always appear & remain in only the bottom right again.
    Thanks in anticipation, Katnko.

    Hi Cor-el, thanks for your help. Is there a help file anywhere for Status-r-Evar? I don't understand which way to set all the Options, as it is great having the green status bar showin once again, but I wouldn't mind keeping the name of the file that is progressing as well. Do you understand what I mean? Thanks, Katnko

  • The bottom bar, which shows the URL, the "lock" on secured sites, etc, is NOT THERE on firefox but is on other browsers. What can I do?

    As above, the bar across the bottom, which shows the URL, the "lock" symbol on secure sites, etc., IS NOT THERE on any firefox page I open. It is there on other browsers but I would like to continue using firefox. What should I do?

    In Firefox 4 and later you no longer have the Status bar that showed the padlock in previous Firefox versions.<br />
    The padlock only shows that there is a secure connection and doesn't guarantee that you are connected to the right server.<br />
    So you might still be connected to the wrong server if you make a typo in the URL and someone has claimed that mistyped URL.
    The functionality of the padlock has been replaced by the [[Site Identity Button]] on the left end of the location bar.
    See also:
    * http://www.dria.org/wordpress/archives/2008/05/06/635/
    * https://support.mozilla.com/kb/Site+Identity+Button
    * http://www.mozilla.com/en-US/firefox/security/identity/
    You can use this extension to get a padlock on the location bar.
    *Padlock: https://addons.mozilla.org/firefox/addon/padlock-icon/

  • My ipad is in recovery mode that failed,it shows the progress bar but is frozen. Itunes shows the wrong name for the Ipad but the correct account.

    my ipad is in recovery mode that failed,it shows the progress bar but is frozen. Itunes shows the wrong name for the Ipad but the correct account.

    You're gonna have to restore the iPhone from your last backup with iTunes. You did do a backup before you attempted to update the software didn't you?

  • How to show the progress bar on forms?

    Hello ALL,
    How should we show the progress bar in our forms screen so we can see how much work is remaining?
    For example if we are performing some task through forms, what code and on which trigger we placed this code in order to show the progress bar that inform us about the task in progress.
    Thanks
    malan

    Hi,
    Shouldn't the oracle forms' support the progress
    bar?
    I prefer to have a code which shows progress bar on
    forms.
    Can some one have this code ?
    ThanksPJC progress bars are shown on the form and forms support progress bar and coding itit's relatively easy.
    If I were you I would take Francois' advice and type in "progress bar" in the lil search box :)
    It's a wonder what a lil search can show you
    Tony

  • HT201263 my iphone 3g Stops responding, showing the Apple logo with no progress bar or a stopped progress bar, for over ten minutes ..plz give me suggusition ?

    Stops responding, showing the Apple logo with no progress bar or a stopped progress bar, for over ten minutes

    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

  • Hello, my name is Todd, I recently dowloaded PS CC 2014. I have used PS for decades. The crop tool will show the progress bar, then at about 25% it will totally stop. What can I do? Thanks

    Hello, my name is Todd, I recently dowloaded PS CC 2014. I have used PS for decades. The crop tool will show the progress bar, then at about 25% it will totally stop, even on VERY small 72dpi images. What can I do? Thanks!

    Double check all the settings in the crop tool, and make sure you aren't telling it to create a HUGE image as a result of your settings.

  • When i turn my mac on i get the white screen and a progress bar that when finished shuts the computer down

    i recently came back from holiday and tried to start up my laptop (that stayed at home, just shutdown but plugged in). when i turned it on, i got the apple white screen, a timer wheel and a progress bar that when it reached the end of the bar, it just shut the computer down again. i cannot get past this screen and the mac will not turn on. does anybody know how i can fix this please?

    Your hard drive is dead and you'll need a new one. If you're the least bit handy, you can replace the drive yourself. You need to decide what capacity and speed you want out of a new drive.
    I'm hoping that you had backup schemes in place? If not, there's a chance that, with a tool such as DiskWarrior, you MIGHT be able to grab some data from your dead/dying drive.
    Clinton

  • My tablet started this new update about 4 hours ago, it said it would take 30 minutes...... in the progress bar it shows its downloading but its never changed from 0%. how pr what do i do? am i supposed to let it run all night?

    My tablet has been downloading the new update for over 4 hours now, though the progress bar still shows 0%!!! What do I do???

    Reply to myself...... Thank you, thank you, thank you chersgroupie!!!!  Turning the WiFi off worked and the update finished in about 5 minutes on 4G!!! Note: at the start of update my instructions  were: plug in if not full battery and use WiFi!!!!!  Hard to explain to your 3 year old why they can't have their tablet and you've done what you were instructed to do!!! I pay too much a month for this kind of preventable aggravation!!!

  • DFU and tried to recover but progress bar never showed up

      I recently tried to restore my extremely loaded and bugging iPhone 3Gs into a default state via DFU mode. I used a fw file with my 6.1.2 shsh stitched into it so I may recover to 6.1.2. Things went smooth when I put my phone into pwned DFU and choose the fw in iTunes. All that is after iTunes verified that the fw can be installed and prepair to do the recovery by booting into the "bar mode" (Don't ask, just the screen that shows the firmware install progress.) The phone will just try to boot itself up as normal and I recieve a random error like err. 1604, 1643 ect. I am doing it on a Mac but swaping to a windows doesn't help.

    Hello Cyrus,
    not "perhaps" but "sure": read the forums conditions....
    I am sorry, no way,

  • Progress Bar doesnt show

    why doesnt progress bar show on ie/ns?....Thank you all.
    <cfif isdefined('form.Process') and form.process eq "Process" and isdefined('Form.rosterfile') and form.rosterfile neq "">
    <cfset CurrDir = GetDirectoryFromPath(GetTemplatePath())>
      <cfset StorageDir = GetDirectoryFromPath(GetTemplatePath()) & "Storage\">
          <div id="display_while_running">
             <table align="center" border="0" cellpadding="0" cellspacing="0" style="border:solid 1px green; background : #backgroundcolor1#; width:600px;padding:5px; text-align:center;">
              <tr>
                <td >
                  <b>Please wait while it is processing...</b>
                </td>
              </tr>
              <tr>
                <td>
                 <img src="../imgs/progressbar2.gif" width="250" height="20">
                </td>
              </tr>
            </table>
          </div>
        <!---CFOUTPUT>#RepeatString(" ",300)#</CFOUTPUT--->
          <!---cfflush--->
          <cffile action="upload"
          destination="#StorageDir#"
          nameConflict="overwrite"
          fileField="Form.rosterfile">
          <cfset strFilePath ="#StorageDir##cffile.serverFile#">
          <cfset strFile ="#cffile.serverFile#">
          <cfquery datasource="#application.Orc#" name="GetFileName">  
            Select FILE_NAME from ops$rms.HR_File
            where
            lower(file_name) = lower('#strFile#')
         </cfquery>
        <cfif GetFileName.recordcount neq 0>
          <cfset msg = "This file has been already uploaded. Please upload a different one.">
        <cfelse>
            <cfflush interval="10">
            <cfset CurrFilePath ="#CurrDir##cffile.serverFile#">
            <cffile action = "copy" source="#strFilePath#" destination="#CurrDir#">
            <cffile action="rename" source="#CurrFilePath#" destination="#CurrDir#HrXls.xls">
            <cflock name="xlsloader" timeout="300" type="exclusive">
                  <cfset command = "java RMSHRFileReader C:\Inetpub\wwwroot\RMS\hr_loader\HrXls.xls">
                  <cfset syscmd = createObject("java","au.com.webcode.util.SystemCommand").init()>
                  <cfset result = syscmd.execute(command,"300000")> <!---5 mins, must be a string--->
                  <cfif result.getExitValue() neq 0>
                   <cfset msg = "The uploading process has been partially completed.">
           </cfif>
            </cflock>
            <cfquery datasource="#application.Orc#" name="InsFileName">
              insert into ops$rms.HR_File(file_name, updated_on, updated_by)
              values('#strFile#',SYSDATE,'#session.username#')
            </cfquery>
            <cfset stdout = 1> 
            <cffile action = "delete" file="#CurrDir#HrXls.xls">
        </cfif>
      <script language="Javascript">
          document.getElementById('display_while_running').style.display='none';
        </script>
    </cfif>

    Because ColdFusion code starts executing after the contents of the
    file to be uploaded is received by the server. In other words when
    you're trying to show the progress bar there's no need for a progress
    bar because the upload is at 100%.
    Mack

Maybe you are looking for