Global variable in the progress bar

I have an existing labview code that consists of a main vi, which is the GUI user, and several (about 70) under vi. I am trying to add a progress bar on the screen before (user GUI) which will be immediately after it hits certain sections of code. I write this using a global variable to store the value of the status and any attempt in the main on-screen progress bar after each increment. Is there a way to link the main progress bar value to the global variable so that it updates as soon as the value is incremented? The problem that I am facing is that when I update the global variable in a Subvi, the progress bar takes the value of the Sub - VI is finished, all the numbers to jump between the two. I know it's because I do not correctly write to the progress bar, but I don't know how to do. If this isn't a good method, are there any suggestions?

For example:

SubVi2 SubVi1 Vi main

(1-4)                (5-8)             (8-12)

Progress bar: 1 2 3 4 8 12

(I tried the Progress Bar Library OR offer, but I need a progress bar on the front panel, not a sound upward, so I can debug for code execution)

Thank you - Adam

I would go with a motor of Action update the progress bar VIA referance Server vi.  Here is an example of the use of a side effect I have to make this kind of progress bar.

If you have not read Ben nugget of action engine, it should be mandatory, you can find here

By building a "resource module" (a special AE that keeps a referance to the resource to act on) after initializint EI, you can call any 'method' on the resorce from anywhere in the instance of the application.  These babys really allow you to do interesting things to the GUI from around where the real action takes place.

Tags: NI Software

Similar Questions

  • Update the progress bar

    Hello

    When the records are saved in the database SQLite in my application I want to show the progress, because it may take a few seconds, if the amount of data to be backed up is large. So I defined a variable of the ProgressBar:

    private var _pbSaveContent:ProgressBar = new ProgressBar();
    

    Initializing the user interface I define the attributes and add it to the scene, but still manage not visible (I do that only when the feature there is place to save records is requested):

    with (_pbSaveContent)
    {
        width = 624;
        x = 200;
        y = 250;
        height = 10;
        visible = false;
    }
    
    addChild(_pbSaveContent);
    

    Now, when the function is executed to save records in the database I first make visible progress (among others) bar:

    _pbSaveContent.visible = true;
    

    then count the number of records to be created and then use this number to update the progress bar after every saved recording:

    _pbSaveContent.progress += _numProgressStep;
    

    I was expecting to the progress bar would be updated every time with the above statement, but the progress bar (filled to 100%) is displayed after all records have been created.

    How can I solve this?

    Unless there is a way to force the Flash to operate on a synchronous cycle frame, you cannot get this to work without changing your stuff of SQLite to use asynchronous support.  I never heard speak in a kind of routine "updateNow()" who would be able to do this, but I'm not a Flash developer for a long time so I could easily just have heard of him yet.

    Search the openAsync() call in the SQLConnection documentation to learn more about the switch to asynchronous SQLite stuff, where the database work is done in another thread and does not prevent your UI to update normally.

  • When I use the mail merge with excel file, after I press ok the progress bar indicates "NaN", mail project window crashes. My record is nice little CVS n

    When I use the mail merge with excel file, after I press ok of the progress bar indicates "NaN", mail project window crashes. My file is in the correct format and small size (4-column 4 raws). I use an English version of thunderbird after accidentally, I installed one in my tongue.

    I am attaching the screenshot

    I solved the problem
    has been st@pid excel

    I created a CSV file in openoffice calculator and everything went smoothly

  • iPad 2 Mini stuck on the progress bar with the Apple logo and progress bar is not loaded, his impasse

    I pressed on restart all the settings on my iPad Mini 2, so it loaded but it drained. So I rebooted it until he turned back when he turned his back, it was still showing the progress bar, but it was quite moving. I tried to hold down the lock button and the home button, but still, it loads, its stuck on the progress bar and did not progress. I tried to connect to my computer to connect to itunes, but it does Duke host because its deadlock on the progress bar with the apple logo.  .pls help me!

    Try restoring your backup and recovery mode: If you cannot update or restore your iPhone, iPad, or iPod touch - Apple Support

  • where is the progress bar for the logic more downloading sounds

    where is the progress bar for the logic more downloading sounds?  I would like to see how many time or content that remains to download.

    Hello

    It's been moved to a discreet place in the LCD display area.

    Click to reveal a 'progress bar' and time display

    TDC

  • MacBook Pro opens to the screen and progress bar gray, freezes when the progress bar ends. Have tried several options to get into safe mode and suggested strikes, but can't. Any suggestions?

    MacBook Pro opens to the screen and progress bar gray, freezes when the progress bar ends. Have tried several options to get into safe mode and suggested strikes, but can't. Any suggestions?

    Here are some links from Apple which may help

    How to choose a boot on your Mac - Apple Support drive

    On the screens, you see when you start your Mac - Apple Support

  • Display the progress bar when you use the Calculate function

    Hello

    For my project, I need to convert the raw values of a signal in physical quantities.

    To do this, I use the function "calculate".

    Because I have a lot of data, it takes time, and the user does not know if it works or not.

    The first thing I did, is to Add Dialog.BeginWaitCursor and Dialog.EndWaitCursor which works well, but is not enough.

    To view activity, I want to display a progress created bar before calling 'Calculate' and stopped after that.

    The progress bar does not need to show real progress, but displayed only a movement of progress even if it again to zeor until the end of the calculation.

    I have read some information on the progress made on this forum, but he did on selfmade function and tiara not call functions.

    This is why it is not useful to me.

    I don't know how to do this using vbs.

    Is it possible to create something like this?

    The best solution would be to get the status of the function of 'Calculate' to see where he is, but the function is not created to do this.

    Thanks for all the ideas,

    Best regards

    CFOE

    Hey CFOE,

    I asked R & D at the same time, because I thought I remembered seeing a progress bar continued in tiara before, but I didn't know if it was something we might call with a VBScript command.  I just heard back that you can, and it's here...

    Call AutoLoopInit
    MsgBox "ready to stop the progress bar?
    Call LoopDeInit

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Vista hangs at startup cannot go beyond the progress bar/longhorn error

    Dell Inspiron 1545 windows vista 32 bit

    re-installed vista 5 times

    It cannot cross hangs on the progress bar on the start

    cannot start in safe mode

    has run the Startup Repair

    Journal of recovery system:

    the following options will be added:

    Name: Windows (TM) Code Name: "Longhorn" preinstallation environment (recovered)

    Path: Windows

    Windows Device: Partition = D: (15000 MB)

    A copy of current boot configuration data will be saved as:

    C:\Boot\BCD. Backup.0001

    I ran the system repair option on 05/02/11 at 12:09 (Pacific standard time) and I stopped it 06/02/11 09:52 he ran 21 hours and nothing happened im still at the same point.

    When I clean install it hangs after "will now start windows for the first time.

    It comes to my friends laptop, no new hardware/software without any major changes... help.

    Dell Inspiron 1545 windows vista 32 bit

    re-installed vista 5 times

    It cannot cross hangs on the progress bar on the start

    cannot start in safe mode

    has run the Startup Repair

    Journal of recovery system:

    the following options will be added:

    Name: Windows (TM) Code Name: "Longhorn" preinstallation environment (recovered)

    Path: Windows

    Windows Device: Partition = D: (15000 MB)

    A copy of current boot configuration data will be saved as:

    C:\Boot\BCD. Backup.0001

    I ran the system repair option on 05/02/11 at 12:09 (Pacific standard time) and I stopped it 06/02/11 09:52 he ran 21 hours and nothing happened im still at the same point.

    When I clean install it hangs after "will now start windows for the first time.

    It comes to my friends laptop, no new hardware/software without any major changes... help.

    Hey dodgerfan13

    Run dell diagnostics using F12

    http://support.Dell.com/support/eDOCS/systems/WS340/en/UG/DIAGS.htm

    and contact dell about problems with their recovery software

    http://support.Dell.com/

    Also try the dell support forums

    http://en.community.Dell.com/support-forums/default.aspx

    Walter, the time zone traveller

  • Vista will not start - stuck on the progress bar with MS logo

    Yesterday afternoon, my HP desktop PC would not initialize. The progress bar would be continually scroll down with MS logo, and it will never change. I tried unplugging all USB ports and running system recovery. This morning, the PC said something to the tune of «this machine could not be restored...» If you have recently made a hardware change try to return to your old configuration. If problems persist, please contact your administrator. »

    We had the machine for about 18 months with no problems at all. It is equipped with AMD processors and is running 32-bit Vista Home Premium. I currently have anti-virus protection of software and spyware. I don't think that the office came with a recovery CD. There is a restore disc but I don't know if that was consulted. I tried to boot normally and repair the command prompt startup files with no luck.

    I hope that we bought the extended warranty from Staples, but meanwhile information or suggestions would be greatly appreciated.

    Thank you

    lucasmartin,

    The Advanced Boot Options menu lets you start Windows in advanced troubleshooting mode. You can access the menu by turning on your computer and pressing the F8 key before Windows starts. Try the loads up in safe MODE , there may be some drivers that are corrupt or using last known good Configuration.

    For more information http://windowshelp.microsoft.com/Windows/en-US/Help/f9c50a72-04ec-4088-9fd4-a4f979eef5a71033.mspx#EAF

    Engineer Support Justin M. Microsoft Answers visit our Microsoft answers feedback Forumand let us know what you think.

  • The progress bar just kept scanning without generating a list of updates or error messages

    I have a hp G70-463 CL portable 2009. It works well until March 2016 when it could not download updates Windows 7 Ultimate. The progress bar just kept scanning without generating a list of updates or error messages. I reinstalled Windows, but this does not solve the problem. The PC otherwise works fine. I can download the software successfully. What is going on?

    You can reset the Windows Update components by running the Fixit on this page. But if there is malware present, she will continue to reset the connection to the update servers:

    How to reset the Windows Update components

    http://support.Microsoft.com/kb/971058

    Suggest you download and save the Fixit. Then configure the system before the clean boot by running:

    How to troubleshoot a problem by performing a clean boot in Windows Vista/Windows 7

    http://support.Microsoft.com/kb/929135

    Once the Fixit has been downloaded and the system is started in the pure State, check that the native Windows Firewall is now on if a 3rd party firewall has been used previously. Now run the Fixit and choose the default mode. Restart once it's done and see if the system can be connected to the update servers. If he can't, then rerun the Fixit and choose aggressive mode. Turn it back on when he finished the race and updates.

    I suggest before you stop and install the updates, disconnect from the Internet, first.

  • BlackBerry Smartphones Blackbold does not start after the progress bar screen. any help

    I have a problem with my blackberry bold 9700. When I reboot, the next screen that comes after the progress bar screen is my network name of phone, and nothing happens. I get a screen of "vodafone" with their logo.  nothing happens after and I am not able to access blackberry. What's wrong. any help on how to run again

    Hello and welcome to the community!

    I recommend that you try to start safe mode:

    • KB17877 How to start a smartphone BlackBerry in Mode safe

    It will take several attempts to get the combination of keys ESC (press/release/hold) OK, so be patient. When properly in Safe Mode, see what happens.

    If the behavior continues, then well... think what happened just before this behavior started? A new application? An update? A theme? Something else? Think carefully that the slightest change can be causal... and try to undo all that was.

    But if the behavior continues mode without failure, you may need to consider more drastic measures - WIPE, OS Reload, BBSAK Wipe/Reload and the process of reloading OS 'skeleton '. To prepare, you should be sure that you have a full backup of your PC... Please see the Backup link in my sig auto on this post for instructions.

    Good luck and let us know!

  • Can someone tell me how to change the color of the progress bar?

    Can someone tell me what we called the part highlighted in the below attachment & can I change the color from green to what I choose?

    http://i72.Photobucket.com/albums/I176/Tyrone787/ColorBar.jpg

    Hello

    There is no option in Windows to change the color of the progress bar. I suggest you to browse the Internet using the search engine and look for the applications (or even topics) that can change the color of the progress bar.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • When I select a sequence of five frame to render HDR in Lightroom it merges files in a preview very well. But when I click on the Merge option, the progress bar is obstruction of about 42% complete. I suspect a memory problem, so I spent a few hours Unite

    When I select a sequence of five frame to render HDR in Lightroom it merges files in a preview very well. But when I click on the Merge option, the progress bar is obstruction of about 42% complete. I suspect a memory problem, so I spent a few hours uninstalling a bunch of useless software on my laptop and still photography will not merge the HDR sequence. It worked once before, but now it does not work. Help!

    I just 8 GB of RAM and have been able to put together five separate images HDR images. I compared these files 5-image HDR with files - 2 and 3-image and see improvement very few (if any) using all five. Your results may vary, but you can try to reduce the number of images until you get your new laptop.

  • Whenever I try to install Photoshop, the progress bar is 84% and then quits without completing the installation.  What can I do?

    Whenever I try to install Photoshop, the progress bar is 84% and then quits without completing the installation.  What can I do?

    Please see the download and installation of the below help documents:

    Download cloud creative to troubleshoot and install questions

    Adobe Creative Cloud Desktop App could not be installed error

    Download error, installation or update of Cloud Creative applications

    The problems with the installation logs

    You can also try to download from here:

    Direct download links of Adobe CC 2015 : designer Cloud 2015 release

    Guinot

  • How to make the progress bar display in the icon in the taskbar for WIN 7?

    How to make the progress bar display in the icon in the taskbar for WIN 7? I see Eclipse Helios can show the loading progress bar in the icon in the taskbar of WINDOWS 7 at startup.

    Is not the feature that provides JavaFX, you must write a native connection called technology such as JNI to make specific Windows API call for updating the icon in the taskbar for the application.

    Maybe you could go through the Eclipse source code to see how Eclipse and see if you can make use of the same mechanism in your application.

    More tips on how you can implement this are outside my area of expertise.

Maybe you are looking for