Bar de progression pour chargement executable

Bonjour à tous,
Voila, la question est dans le titre. J'ai crée un executable qui fonctionne très bien mais dont l'affichage de celui-ci est un peu lente. Admettons qu'un opérateur soit un peu " pressé" celui-ci pourrait double cliquer plusieurs fois sur l'icone de mon exe en se disant que le pc n'a pris en compte ces précédents clik par exemple. Le problème c'est que je ne souhaite pas que celui-ci ouvre plusieurs fois mon application. C'est pourquoi j'aimerai après un double clik sur mon icone d'exe que l'on voit une barre de progression indiquant que executable est bien en cour de chargement.
Cordialement

oui et non. il faut faire un "loader", "splash screen", qui va être le VI "principal", le main. Il va charger dynamiquement le VI, qui est ton ancien Top Level. Tu peux très bien gérer l'avancement, en utilisant un FIFO pour afficher l'état d'avancement : le VI va transmettre par un FIFO l'état +1
https://forums.ni.com/t5/LabVIEW/Help-creating-a-professional-splash-screen-in-LabVIEW/td-p/1061372
https://decibel.ni.com/content/docs/DOC-1086
https://decibel.ni.com/content/blogs/labview-news-english/2014/02/17/making-your-splash-screen-groovy
mais non, car ton IHM va "être bloquée" dès que tu vas faire "Run VI" tant que l'ensemble du code ne sera pas chargé en mémoire. APrès le code va être exécuté, et tu auras l'avancement.
Donc si tu as des problèmes de temps de chargement en mémoire, tu pouras "afficher" le spalsh screen, mais tu n'auras pas de barre d'avancement du chargement en mémoire.
Par contre si l'utilisateur clique 10000 x sur l'exe, il n'y aura qu'un seul exe qui sera chargé (sauf si modification du fichier ini qui permet l'ouverture multi-instances).
A+
 

Similar Messages

  • Pourquoi c'est si long pour charger l'ipad par le secteur

    pourquoi c'est si long pour charger l'ipad par le secteur

    How long do you think it should be?
    Combien de temps pensez-vous qu'il devrait être?

  • Recovery of this request is in progress error when executing the owb PF

    Hi All,
    When I execute the process flow in OWB it shows the status as completed successfully but it doesn't collects any data in the table and also at two of the steps status is shown as recovery RPE-01008:Recovery of this request is in progress. Does anyone have any idea on how we can resolve this issue.
    Thanks for your help.

    Hi,
    You need to look into the OWB control center log for more details about this error .
    Goto your <OWB_CONTROL_CENTER_HOME>\owb\log directory
    you will find the control center logs over there .
    Thanks,
    Sutirtha

  • Battery Icon is not visible in Task Bar - And is not charging. Please help

    Hi,
    I have a 3000 N100 series laptop. I got a problem, need your help.
    My battery is not charging for sometime now. The battery icon is also not there in the task bar.
    Please share your thoughts if you have any idea on what's going on.
    Thanks for your time.
    Dinesh

    make sure battery seated well and lock it.
    for system icons, take a look at this thread

  • Missing status bar or progress bar

    I just installed Yosemite and I am experiencing a strange problem. Whenever I perform a function that is not quick, like compressing a large folder or copying a large folder to another hard drive, I do NOT see any status or progress bar. Do I need to change something in my preferences or is this a glitch on older iMacs?
    Thanks!

    Neither of those normally do anything more than post a progress dialog. Are you sure it's not hidden behind an existing open window? Otherwise, the installation is defective. You should reinstall:
    Reinstall Lion, Mountain Lion, Mavericks or Yosemite without erasing drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu.
    Reinstall Lion, Mountain Lion, Mavericks, or Yosemite
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Today I got my iPad Mini, andI plugged it into my computer and next to the battery bar it says "Not Charging" what does this mean?

    Plugged in my iPad Mini into my computer and it would say next to the battery Bar "Not Charging" , and I'm wondering what this means. Thank you!

    The quickest way (and really the only way) to charge your iPad is with the included 10W or 12W (5W on Mini) USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (2.5W, most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    iPhone: Hardware troubleshooting (Power/Battery section also applies to iPad)
    http://support.apple.com/kb/TS2802
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    iOS 7 Battery Life Draining Too Fast? It’s Easy to Fix
    http://osxdaily.com/2013/09/19/ios-7-battery-life-fix/
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    iPad: Charging the battery
    http://support.apple.com/kb/HT4060
    Best Practices for iPad Battery Charging
    http://www.ilounge.com/index.php/articles/comments/best-practices-for-ipad-batte ry-charging/
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    How to Save and Prolong the battery life of your new ipad
    https://discussions.apple.com/thread/4480944?tstart=0
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    iPhone, iPod, Using the iPad Charger
    http://support.apple.com/kb/HT4327
    Install and use Battery Doctor HD
    http://itunes.apple.com/tw/app/battery-doctor-hd/id459702901?mt=8
    To Extend a Device’s Battery Life, Get to Know It Better
    http://tinyurl.com/b67c7xz
    iPad Battery Replacement
    http://www.apple.com/batteries/replacements.html
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
     Cheers, Tom

  • Progress Bar or Progress Monitor for a system command

    Hello,
    I am running a DOS copy command in a Java Swing application. I understand that I
    can implement a Progress Bar or a Progress Monitor if I open the first file, read it,
    and write to a second file. But if I have a need to use the DOS copy command,
    is there a way to implement a Progress Bar or a Progress Monitor for it. If there is,
    could you please point me to some example code?
    Thank you,
    Chris

    Hello Chris,
    you would have to write some native code which peeks or watches the DOS process and its progress. Surely not an easy task. But without that information, how will you set values for the ProgressMonitor?
    What you could do, however, is showing an Indeterminate JProgressBar at DOS process start and make it disappear at process end.

  • Volume bar and progression bar WILL NOT display durring music

    For some odd reason when I turn music on all I get is five little dots, and they don't even fill up or empty as I turn the wheel.
    I can turn volume up and fastforward music and such, but it won't display either bars. Only these five circles. I've had my iPod for a few months and never had such a problem.
    Any suggestions?

    Sometimes, if you don't allow the screen to refresh before pressing another button, it gets stuck.
    See this for help.
    iPod "stuck" on the artwork or rating screen.
    As you will see, updating the software can cure this.

  • JPROGRESS BAR without progress

    In one of my application i am using a JProgressBar
    now all is correct like
    dd.jpb = new JProgressBar(JProgressBar.HORIZONTAL,0,100);
    dd.jpb.setString("Download Status") ;
    dd.jpb.setStringPainted(true);
    jpb.setValue(0);
    jpb.setMaximum(contentLength);
    jpb.setValue(k);
    actually i have done all above correctly
    the program is downloading application
    the k is the file size downloaded at present time
    contentLength is the full file length
    but jpb does not show any progress gradually
    it disappears when downloading starts and appears when
    download is complete
    i want it to show the progress gradually while downloading
    please check if jpb.setValue (position );
    is correct to show progress gradually
    tell me how to rectify the problem
    please dont show the links to java tutorial...

    Here is test class for you. I do not have time to check your code. This code below is working code, i am posting it here so anybody can read and test it too. If you do not understand code, please read textbooks on threads:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public final  class progress extends JFrame {
         JProgressBar pb;
         progress () {
              Container c = getContentPane();
              JPanel p = new JPanel();
              JButton b = new JButton("progress");
              b.addActionListener(new ActionListener() {
                   public void actionPerformed (ActionEvent e) {
                        load(100);
               pb = new JProgressBar();
               pb.setStringPainted(true);
                  pb.setMinimum(0);
            pb.setString("Ready");
              p.add(b, BorderLayout.CENTER);
              p.add(pb, BorderLayout.NORTH);
            c.add(p);
            setSize( 200, 200 );
            setVisible( true );
    public void load(final int k) {
         Runnable r  = new Runnable() {
              public void run() {
                   doLoad(k);
              Thread t = new Thread(r);
              t.start();
    public void doLoad(int k)
    pb.setMaximum(k);
    pb.setString("Loading...");
    for(int i=0; i <k; i++)
    try{Thread.sleep(25);}
    catch(InterruptedException e){e.printStackTrace();}
    updateStatus(i);
    updateStatus(0);
    pb.setString("Done...");
    public void updateStatus(final int i)
    Runnable doSetProgressBarValue = new Runnable()
    public void run() {
    pb.setValue(i);
    SwingUtilities.invokeLater(doSetProgressBarValue);
    public static void main( String args[] )
    new progress();
    }

  • Displaying an Indeterminate Progress Bar While a DB2 Stored Proceedure Runs

    How do I display a dialog with an indeterminate progress bar while a DB2 query runs? Could anyone point me to an example or some strong docs?
    I learned Java about six months ago, so I'm relatively new to the language. Through searching and documentation, I've been able to find all the examples and answers I've needed so far. Now I've run into an issue I can't find anywhere. It seems like the most basic thing in the world. I have a DB2 stored procedure that takes about 5 minutes to run. While it's running, I want to display a simple dialog with a progress bar going back and forth (no buttons, no user interaction).
    I'm using Eclipse 3.3.1.1 as my IDE, and running the application from a JAR file. I have Java 1.6.0.30 installed. The DB2 query is running in response to a user clicking a button on the form (an ActionEvent). All of my forms are using Swing (JFrame, JDialog, etc.).
    The crux of my problem seems to be that I can bring up a dialog (which should contain the progress bar), but I can't get it to paint. All I get is a window that's the right size/location, but contains an after-image of what was behind it. I can't even get a dialog to display with a "Please Wait" label while the DB2 procedure runs.
    I tried separating both the DB2 stored procedure and the progress dialog into separate threads. I tried yielding in the DB2 thread to give the progress dialog a chance to update. I tried using invokeAndWait, but I got the following error:
    Exception in thread "AWT-EventQueue-0" java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
    It seems like I'm doing something wrong in my use of Theads, but I can't for the life of me figure out what it is. If anyone could help out a bit of a Java newbie, I would be extremely grateful.

    Demo:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ProgressBarExample2 {
        private JProgressBar bar = new JProgressBar(0,99);
        private JButton button = new JButton("Lengthy operation");
        private ActionListener al = new ActionListener(){
           public void actionPerformed(ActionEvent evt) {
                button.setEnabled(false);
                bar.setIndeterminate(true);
                new Worker().execute();
        private class Worker extends SwingWorker<Boolean, Boolean>{
            protected Boolean doInBackground() {
                try {
                    Thread.sleep(10000); //10 secs
                } catch (InterruptedException e) {
                return Boolean.TRUE;
            protected void done() {
                button.setEnabled(true);
                bar.setIndeterminate(false);
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new ProgressBarExample2();
        ProgressBarExample2() {
            button.addActionListener(al);
            JPanel cp = new JPanel();
            cp.add(button);
            cp.add(bar);
            JFrame f = new JFrame("ProgressBarExample2");
            f.setContentPane(cp);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • Macbook Pro get grey progress bar and shuts down

    Hello All,
    I have a macbook pro and I faced this issue out of nowhere. After shutting down the system last time, when I started the system, I could hear the apple chime, apple logo appeared with grey progress bar below it. The bar will progress to 1/3 or so and it will disappear and after few seconds laptop will shut down. I tried few times but same things was happening again and again.
    After going through few support forums, I booted by pressing D to run the Apple hardware test. It wouldn't do anything at all. Apple hardware test was stuck at pass number: 1 with elapsed time of 7 seconds. All retry were the same as the first one.
    I rebooted the laptop and pressed command + R and entered in  recovery mode/recovery disk. I clicked on Disk utility and select Macintosh HDD and started disk verification. I got hundreds of errors/warning, saying Missing thread recode (id = XXXXXXX) and it suggested to repair the disk. I tried to repair the disk but after similar message, pop window appeared with message that disk cant be repaired. I exited out of it and went back to recovery menu.
    I selected Reinstall OS X Mountain Lion and went through steps and at the point where I have to select my HDD, there was just one option and I couldn't select it. It gave message that This HDD is locked. I can't start in safe mode, and can't reinstall OS X
    I believe this is because of my hard drive might have crashed. can anyone help?
    Thank you,

    It does sound like your having mechanical or other issues with your boot drive.
    If your machine is under AppleCare or warranty you can take it to them.
    If you can user service your machine, you can opt to try to see if a new drive will work and install it yourself, or have a local geek do it for you.

  • Progress Bar using HTP.DIV -Help please

    Hi,
    Below is my Code to get a progress bar on the screen writen as a package
    PROCEDURE lp_progress_bar IS
    BEGIN
    htp.htmlOpen;
    htp.headOpen;
    -- Create Link to Style Sheet
    htp.linkrel(crel => 'stylesheet',
    curl => pk_constant.PATH_STATIC||'internal_body.css',
    ctitle => 'text/css');
    --Include the Javascript to Call the Progress Bar
    lp_js_copy();
    htp.headClose;
    htp.bodyOpen;
    --Define Attributes for the DIV tags to print the Progress bar
    htp.div(cattributes => 'id="bar"');
    htp.div(cattributes => 'id="progress"');
    htp.bodyClose;
    htp.htmlClose();
    END lp_progress_bar;
    and the JS for the progress bar
    NL CONSTANT VARCHAR2(2) := CHR(13) || CHR(10);
    PROCEDURE lp_js_copy
    IS
    vBodyCode VARCHAR2(500);
    BEGIN
    pk_js.js
    'var time = 10000;'
    || NL ||'var aCopy = 5;'
    || NL ||'var aCopyDone = 1;'
    || NL ||'function progress() {'
    || NL ||'parent.fr_buttons.btnCancel.disabled= true;'
    || NL ||'var bar = document.getElementById("bar");'
    || NL || 'alert(bar);'
    || NL ||'var aStep = (bar.offsetWidth -2) /aCopy;'
    || NL ||'var x = Math.round( aStep *aCopyDone); '
    || NL ||'var progress = document.getElementById("progress");'
    || NL ||'progress.style.width = x +"px";'
    || NL ||'aCopyDone++;'
    || NL ||'if( aCopyDone > aCopy) redir();'
    || NL ||'else setTimeout( "progress();", time /aCopy);'
    || NL ||'}'
    || NL
    || NL ||'function redir() {'
    || NL ||'alert("Copy Successfully Completed");'
    || NL ||'parent.fr_buttons.btnCancel.disabled= false;'
    || NL ||'parent.fr_buttons.btnSave.disabled=true;'
    || NL ||'}'
    END lp_js_copy;
    The stlye for bar and progress aere defined in the stylesheet internal_body.css as
    #bar
    MARGIN: 0 auto;
    WIDTH: 250px;
    TEXT-ALIGN: left;
    BORDER: 1px solid black;
    #progress {
    WIDTH: 0;
    BACKGROUND: darkblue;
    but I am not getting anything on the screen. What should I do to get it pop up on the existing screen.
    I had posted it on a the database thread too. But I guess it was th wrong category.Hence posting it new here.
    Please Help.
    Message was edited by:
    ora newbie

    Hi Dwijesh,
    U can use a OCX control. Make a OCX control and insert microsoft progress bar object into it. Then you can write codes into it accordingly to incerease the bar.

  • Progress bar using htp.DIV

    Hi,
    Below is my Code to get a progress bar on the screen.
    PROCEDURE lp_progress_bar IS
    BEGIN
    htp.htmlOpen;
    htp.headOpen;
    -- Create Link to Style Sheet
    htp.linkrel(crel => 'stylesheet',
    curl => pk_constant.PATH_STATIC||'internal_body.css',
    ctitle => 'text/css');
    --Include the Javascript to Call the Progress Bar
    lp_js_copy();
    htp.headClose;
    htp.bodyOpen;
    --Define Attributes for the DIV tags to print the Progress bar
    htp.div(cattributes => 'id="bar"');
    htp.div(cattributes => 'id="progress"');
    htp.bodyClose;
    htp.htmlClose();
    END lp_progress_bar;
    and the JS for the progress bar
    PROCEDURE lp_js_copy
    IS
    vBodyCode VARCHAR2(500);
    BEGIN
    pk_js.js
    'var time = 10000;'
    || NL ||'var aCopy = 5;'
    || NL ||'var aCopyDone = 1;'
    || NL ||'function progress() {'
    || NL ||'parent.fr_buttons.btnCancel.disabled= true;'
    || NL ||'var bar = document.getElementById("bar");'
    || NL || 'alert(bar);'
    || NL ||'var aStep = (bar.offsetWidth -2) /aCopy;'
    || NL ||'var x = Math.round( aStep *aCopyDone); '
    || NL ||'var progress = document.getElementById("progress");'
    || NL ||'progress.style.width = x +"px";'
    || NL ||'aCopyDone++;'
    || NL ||'if( aCopyDone > aCopy) redir();'
    || NL ||'else setTimeout( "progress();", time /aCopy);'
    || NL ||'}'
    || NL
    || NL ||'function redir() {'
    || NL ||'alert("Copy Successfully Completed");'
    || NL ||'parent.fr_buttons.btnCancel.disabled= false;'
    || NL ||'parent.fr_buttons.btnSave.disabled=true;'
    || NL ||'}'
    END lp_js_copy;
    The stlye for bar and progress aere defined in the stysheet internal_body.css as
    #bar
    MARGIN: 0 auto;
    WIDTH: 250px;
    TEXT-ALIGN: left;
    BORDER: 1px solid black;
    #progress {
    WIDTH: 0;
    BACKGROUND: darkblue;
    but I am not getting anything on the screen. What should I do to get it pop up on the existing screen.
    Please Help.

    Hi Dwijesh,
    U can use a OCX control. Make a OCX control and insert microsoft progress bar object into it. Then you can write codes into it accordingly to incerease the bar.

  • Preloader progress bar not move in IE, but move well in Firefox

    I have been in this problem for several days. I really got
    frustrated about it. Pls. anybody can give me some help.
    I created a general preloader using movieClipLoader object
    and draw a progress bar using movieClip. I set the progress bar's
    progress by setting bar_mc._x = percentage, and created as a swf
    file. when test it , it works well, when open it using firefox, it
    still work well, can show the gradual progress in the bar, but if I
    using IE 6 or 7 to open it, it will not show the gradual progress ,
    just jump from 0% to 100% after the whole file is completely
    loaded.
    I saw a note about progress bar not show graduate progress in
    Flash Player 9, so I uninstall it and install Flash Player 8 again,
    it is still like that.
    I really don't know what 's the problem. Could any friends
    give me some suggestion or idea, that will be greatly helpful.
    Thanks.

    Have you contacted Project VII support or searched their knowledge base?
    http://www.projectseven.com/support/index.htm
    Also, is there any way to remove unused styles (in an external CSS) in DW? Just it would be a pain to go through and remove the styles I've tried, but then later decided not to use.
    Not exaclty a DW answer, but I've used the free FireFox add-on to help me find unused selectors. Point it to a sitemap.xml and it can spider the whole site (as listed in that xml file).
    https://addons.mozilla.org/en-US/firefox/addon/5392
    But be careful with it. It apparently doesn't read JavaScript and your PMM triggers are actually used.
    Mark A. Boyd
    Keep-On-Learnin' :-)
    If you are reading this via email, be aware that it may not be an accurate representation of my message. Login to read the actual message and/or to reply.

  • Disguised Windows task bar if executable is running.

    Hi,
    I configured my vi in such a way that the Windows task bar is disguised while the vi is running. However, after I built an executable with the application builder, the Windows task bar remains visible while the exe is running. Why's that? How can I make the Windows task bar to vanish if the executable is running? I'd like to have the full screen modus, if the program runs.
    Thanks,
    Peter

    I'm not seeing the title bar when I run an exe in which it was removed in configuring the windows appearance. When you are building the application, check the settings under "VI settings" to make sure that they agree with what you configured in the vi itself.
    I built a very simple vi and when it runs there is a borderless frontpanel (see attached)
    Putnam Monroe
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    titlebar.JPG ‏23 KB

Maybe you are looking for