Wait time in while loop: wait before all other code in the loop runs

My vi is attached. 
In the 'Check for Equilib' case, there is a while loop that takes data from a pressure gauge and compares it against data taken equilibTime seconds previous.  equilibTime is hooked up to a wait(ms) function inside the while loop.  Currently it appears that the code in the loop runs, and then the loop waits so many seconds before the next iteration.  I would like to reverse this process, i.e. in each iteration, the loop will wait so many seconds and then run the rest of the code in the loop.  I want to do this because I don't want there to be any delay between then time the 'check for equilib' code finishes and the start of the 'add shot' case.
Can anybody suggest an elegant way of implementing this?
Thank you
Attachments:
Take Isotherm.vi ‏294 KB

No.  Use Flat sequences they are far preferable to stacked sequences.  Functionally they are the same.  But a flat sequence is easier to read, doesn't hide code, and you don't have to worry about backwards wiring caused by sequence locals in stacked sequence.
Note, you have two oddities in your lower while loop.
1.  Write a value to an indicator's terminal node and to a local variable of the same indicator is pointless.  They do the same thing.
2.  Reading from a local variable of an indicator and writing to its terminal node is just as pointless, as you aren't doing anything.
In your middle loop "Add shot" case, you have the local variable of DC estimate righting to a right hand side shift register, but you never use the left hand shift register.  So you are saving that value for future loop iterations, but never use it.

Similar Messages

  • Program times out while looping at internal table with huge records - Needs fine tuning suggestions

    Hi,
    I am trying to execute a report. It times out while looping at vbap internal table. This internal table has 140000  records and does the validation within this loop and geenrates data for the output. Due to this huge volume, the program times out when executed foreground.
    There are no nested loops, so I cannot apply 'Parallel Cursor' here.
    Is there any way I can fine tune the program so that it doesn't timeout? Is it possible to apply 'Parallel Processing' . If yes, how?
    Thanks,
    Pavan

    Hi Pavan ,
                  ->sort your internal table by all primary key for vbap.
                  ->Read a Record from the table (use your condition here)
                  ->if record satisfys your where condition ,get that record index .
                  ->loop the table from the index (without condition) .
                  its like parallel cursor only but for single loop .;-)
                  ->use field symbols ,wherever possible .
               if still dump is coming ,contact your basis team .
    regards,
    Krishna.

  • The computer that I first used to download iTunes is no more. I have a new computer that I set my wife up on.  While I can see all my music in the iTunes library I cannot sync my iPod

    The computer that I first used to download iTunes, to buy songs and to sync my iPod Nano to iTunes is no more.  I have a new computer that I inadvertently set my wife up on.  When I sign in, while I can see all my music in the iTunes library, when I tried to 'sync', I have lost all my music in my iPod and I now have my wife's library on there instead.
    I subscribed to iTunes Match, thinking that this would help.  It hasn't and I'm not happy!
    I have arranged to take my iPod into an Apple store next Tuesday but isn't there something you can tel me to do that ties my iPod wth my music and leaves my wife's music for her iPod?  Please help, I am so frustrated and have wasted so much time on this, reinstalling iTunes, restoring my iPod....
    Can anyone help? 

    Have you read for possible solutions over in the "More Like This" thread over here?----------------------->
    Check out the following KB Articles:  http://support.apple.com/kb/HT1329 How to use your iPod to move your music to a new computer
    http://support.apple.com/kb/HT4527 iTunes: How to move your music to a new computer

  • Since upgrading to FF v4, every time I open a "new window", all other instances of FF windows open, how can I keep this from happening?

    Since I started using FireFox version 4, every time I open a "new window", all other instances of FireFox windows open up. This is annoying as it often covers up instances I am currently using with instances that I don't wish to use right now. I can't seem to find a way to keep this behavior from occurring.

    Try go to '''about:config''' search for '''browser.startup.homepage''' change its value to:
    '''about:home''' - default page<br>
    '''about:blank''' - blank page<br>
    '''url''' - a page that you want
    Also:
    *[https://support.mozilla.org/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in safe mode]
    *[https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems Reset Firefox]
    *[https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware Problems caused by malwares]
    *[https://support.mozilla.org/kb/how-to-fix-preferences-wont-save Preferences won’t save]
    *[http://kb.mozillazine.org/Preferences_not_saved]

  • I can not get my email to send through my iPad email. The email works for all other options. The error says I need to enter a password in setting, but I have entered the password numerous times to no avail. Any ideas?

    I can not get my email to send through my iPad email. The email works for all other options. The error says I need to enter a password in setting, but I have entered the password numerous times to no avail. Any ideas?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
     Cheers, Tom

  • How do I go about deleting mulitple song files all at one time as opposed to deleting them all individually off of the latest version of iTunes

    How do I go about deleting mulitple song files all at one time as opposed to deleting them all individually off of the latest version of iTunes?
    Also I have tried authorizing my computer to play the songs I purchased off of iTunes when I had an iPhone 4 and it will not allow me to play them whatsoever. I now have an iPhone 5 and wish to load these past song purchases onto my new phone. How do I solve this issue?

    what you're missing to export multiple files is the batch export command available in the file menu or by control clicking on the items in the browser.  You can export multiple sequences/clips at full resolution with this.
    This has been available in fcp for a long long time.
    Wow, you are right.  Now that you mention it, I can't believe I never noticed that.  Thanks.
    Only if you have the 'Self-Contained' box checked.  Otherwise you'll end up with a reference movie.
    Correct.  That box is typically checked by default.  There are other default settings you could change that would not result in a full-quality version, but what I meant was hitting that option from the pull-down menu, then changing nothing and hitting ok.

  • Is there and app that does the following. Multiple apps are showing a clock in different rooms, all are synced together, one ipad is a master ipad and if you change the time on it all other ipads change the time

    Is there and app that does the following. Multiple apps are showing a clock in different rooms, all are synced together, one ipad is a master ipad and if you change the time on it all other ipads change the time

    None of the spreadsheet apps that work with Excel files offer anything like full native support in iOS.  Apple's own Numbers app pairs down features for the iOS version.  The hardware is simply not up to what a true computer is capable of, so all apps like QuickOffice, DocumentsToGo, Numbers and so forth offer reduced features from their computer-version counterparts.
    I think a custom app will be your only real choice, be it a fully standalone app, or something built in filemaker or some other db-based platform.

  • All other buttons on the my internet banking is working except the log on button

    Macbook Pro 13-inch Mid 2012 (Newly bought 5-6 months)
    Porcessor 2.5 GHZ İntel Core i5
    Memory 4 GB 1600 MHz DDR3
    472.55GB free of 498.88 GB
    OS X Yosemite Version 10.10.1
    I use my Macbook Pro to do internet Banking. İn the internet Banking(HSBC Turkey) there is a LOG ON botton. That botton use to work before I upgraded to Yosemite, now it doesn't work but all other botton on the my internet banking is working except the log on botton. The weirdest thing is that if I log out to my Admin user and change to Guest User, then go to my internet banking site, the  LOG ON botton is working without any problem.
    One more thing, ever since I upgraded to Yosemite, when I turn off my MacBook Pro and turn on again, it start up very slow, is shows a counter while staring up, granting that I only used around 26-28 GB on the storage it should starts up without any delay.
    Please help me!
    Thanks,
    Arnel
    <Re-Titled By Host>

    Regarding the internet banking site log on, I had a very similar problem with a different internet bank. It was resolved by Safari Menu > Clear History and Website data.

  • What's all that code at the top??

    Hi. Just switched to Flash CS4 and things aren't quite the same.
    When I publish a file and look at the generated html file, there's a mile of code at the top of the page above the code which calls the swf.
    What is that?  I'm used to there being simply a call to an external javascript file. In fact, while working with CS4, I've still been using that. I replace all that code with the old call for the javascript. Is that okay?  What is that code anyway? Is there a way to set a preference to make it behave the old way?
    Thanks!

    Thanks! But does that code ever change depending on different publish settings?
    What I'm getting at is, if I make an external javascript file, could I just keep on using that over and over for any Flash I make?

  • Loading xml data before any other code

    I am able to load xml but i want to load xml data before any other code so that i can use xml data in other time line......
    In output i am getting like that.....
    hiiiiiiiiiiiiiiiiiiiii in vertical
    xmlData.servername in verr=undefined
    hiiiiiiiiiiiiiiiiiiiii in vertical
    xmlData.servername in verr=undefined
    sunil
    sunil
    sunil
    sunil
    hiiiiiiiiiiiiiiiiiiiii in vertical
    xmlData.servername in verr=DIN66003188
    sunil
    sunil
    sunil
    sunil
    xmlData.servername   is loading so late that it is taking undefined value.
    So please suggest somthing.

    the code is like that
    import com.utils.GlobalVarContainer;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    var _xml:XML;
    var xmlData:XML = new XML();
    loadXMLFile();
    var server;
    var msgListGroup:XMLList;
        function loadXMLFile():void
       var loader= new URLLoader(new URLRequest("server.xml"));
       loader.addEventListener(Event.COMPLETE, loadedCompleteHandler);
       function loadedCompleteHandler(e:Event):void
       xmlData = new XML(e.target.data);
         GlobalVarContainer.vars.servername=xmlData.servername;
       GlobalVarContainer.vars.projectname=xmlData.projectname;
       msgListGroup=xmlData.servername;
    i want to use this GlobalVarContainer.vars.servername within other movieclip.....so i m taking global variable but it is also not working.
    this i m using in other movieclip...
    var localhost=GlobalVarContainer.vars.servername;
    var prjectName=GlobalVarContainer.vars.projectname;
    compare_btn.addEventListener(MouseEvent.CLICK,compare_btnClick);
    function compare_btnClick(e:Event){
      trace("hi");
      navigateToURL(new URLRequest("http://"+localhost+":8080/"+prjectName+"/web/vertical45.jsp?page=1"), "_self");
    and this i cant put in COMPLETE event handler function bcoz this compare_btn code is in three frame.
    plz advise.

  • After recent upgrade to IOS 7 i an seeing systems rebooting very frequently. it just goes offline and comeback online after some time. IS this hardware issue or others also facing the same

    After recent upgrade to IOS 7 i an seeing systems rebooting very frequently. it just goes offline and comeback online after some time. IS this hardware issue or others also facing the same

    Hello there, Kishoresaraogi.
    The following Knowledge Base article provides some great steps to troubleshoot your issue:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Particularly:
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • I have an Iphone 4 and it keeps kicking in the 3G instead of using my wifi. My wifi works well with all other devices and the password is fine. I connect and it show the connection then goes back to 3G.   Thank you

    I have an Iphone 4 and it keeps kicking in the 3G instead of using my wifi. My wifi works well with all other devices and the password is fine. I connect and it show the connection then goes back to 3G.   Thank you

    This crap just happened to me this morning where I was sent 90% data plan threshold warningfrom AT&T (while sleeping at 7:09am) then 5 minutes later getting the Overage data plan warning from AT&T.  This is all while I'm asleep right next to my phone plugged into a (non-Apple) dock on my clock radio.
    Android has a limiting feature, why can't the "smart" guys at Apple learn from this??

  • How to create a custom control of a button where the look will be applied to all others but not the Boolean text?

    Hi all
    I would like to create a customized button as a master so that if I change the look of the master all other buttons will change too.
    I have done this with a custom control as a "strict type def" otherwise the look will not change BUT If I do this as a strict type def I cannot change the Boolean text anymore which should be different on every button.
    How can I create a master control of a button where the look will be applied to all others but not the Boolean text?
    Stay Hungry, Stay Foolish
    Solved!
    Go to Solution.

    Steve Chandler wrote:
    I don't think you can do that. I just looked and as I suspected the Boolean text property is read only for strict typedefs so you cannot use property nodes to change the text.
    As a workaround just make it a typedef. When you want to change the look open the typedef and make it strict, make your changes, then make it non strict again. You will have to update the Boolean text again for all instances. Kind of a pain. Maybe this is something for the idea exchange.
    Kudos for being sneaky.
    I like these creative work-arounds!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • In Contacts version 8, how can I print ALL information in each individual card? When I select the print command the only thing printed is the name and address. I need phone number(s) and all other information in the cards.

    In Contacts version 8, how can I print ALL information in each individual card? When I select the print command the only thing printed is the name and address. I need phone number(s) and all other information in the cards. We enter various pieces of data, other than the standard name address & phone numbers and we print all information on each card so it fits in a 5x7 inch loose binder. We have used InTouch software for many years and it has served us extremely welll, however, the publisher (The Prairie Group) has not, and apparently has no plans to update their software to be compatible with any Mac OSX OS beyond 10.6. Any help will be appreciated!

    You can select what you want included in a list format. In the Print command from Contacts, click the Show Details button. Then in the Style pulldown menu select "Lists" and there you'll be able to select what you want included. You can also select what you wish included if you select the Pocket Address Book style.
    If neither of those options will work for you, then you will need to look to third-party software. Here's one possibility that seems to get good reviews:
    https://www.macupdate.com/app/mac/15485/labels-&-addresses
    I haven't done more than try it to make sure that it works with OS X 10.9's Contacts, which it does, but you can download their demo and try it yourself.
    Regards.

  • When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    Hi,
    I would suggest you to uninstall Adobe Reader using the cleaner tool and then re-install the latest version.
    Adobe Cleaner Tool:- Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs.
    Latest version of Adobe Reader:- http://get.adobe.com/reader/
    If you still experience the same issue, please share the following information:-
    - Screenshot of Adobe Reader showing printer options
    - Screenshot of Microsoft Word showing printer options
    - Screenshot of control panel- Control Panel\All Control Panel Items\Devices and Printers
    Regards,
    Nakul 

Maybe you are looking for

  • How to permanently boot up in verbose mode?

    Hi, I want to always boot up OS X Mavericks (10.9.2) in verbose mode (debug mode) as I pressed Cmd+V everytime. I remember an old command which I used on Snow Leopard for doing this: « sudo nvram boot-args="-v" » but I don't know if it's still valid

  • How do I create a ringtone for my iPhone 5 from garage band?

    How do I create ringtones from my music in iTunes for my iPhone 5 using Garage Band? Thanks

  • How do i attach DTF to a mssg so that incident (for the mssg.) fires DTF?

    When an error is thrown (business or system), there are cases where incidents are raised explicitly. These incidents are created using seeded error messages. What i've heard is that there is a way to attach a diagnostic test(DTF) to an error message.

  • LocalConnection and BitmapData

    Hi. I have a promlem with transferring BitmapData from one swf to another by using LocalConnection: //1st swf sending_lc.send("lc_name", "functionName", 1, "2", myBitmapData); //2nd swf receiving_lc.functionName = function(a,b,c){ trace(a);// output

  • Create new library item

    I have redesigned the header for my website and would like this code to be a library item so that it can be the same on all pages and be easily updateable. The code it is replacing *was* a library item, but that was from two years ago and in an earli