Stopwatch without pausing the program

I was wondering how to make a stopwatch which recorded time, but did not actually stop the program. The wait function actually waits at that part of the program, and my idea was to take the time stamp at the beginning and then the timestamp at the end and see the difference, but I had trouble formatting the timestamp to ashow me ms, which I need. Is there any other VI which does this?
Solved!
Go to Solution.

I am attaching a stopwatch VI I just made. It has the 'Lap' function built into it as well.
You can put the main execution code in the execution 'while' loop. This way, there would be no pause or delay in the stop watch or the your main program. You can even control the execution of the main program by passing some control parameter from the stopwatch loop to the main loop.
Hope this helps.
Cheers!!!!
Message Edited by Mani's World on 12-28-2008 02:32 PM
Attachments:
Stopwatch.vi ‏86 KB

Similar Messages

  • In Snow Leopard, there was a quick look feature that allowed you to look at files without opening the program.  It doesn't show up in Lion on my iMac.  Any ideas?  Thanks

    In Snow Leopard, there was a quick look feature that allowed you to look at files without opening the program.  It doesn't show up in Lion on my iMac.  Any ideas?  Thanks

    While in Finder, select the file (click on its icon once) then press the Spacebar.

  • API to pause the program

    Hi All,
    What is the API to pause the program, then after user hit the "enter" key, it continues. Thanks

    Try this
    public class Test
        public static void main(String[] args)
            throws Exception
            System.out.println("Press enter to continue...");
            int dummy = System.in.read();
            System.out.println("Thank you!");
    }regards
    Jesper

  • How to make a pop up that pause the program (during pop up) and click button to continue OR stop the program

    Hi people,
    I am using LabVIEW to create a testing program to test a power system. The testing lasts for a loop of 90 minutes. 
    I would like to make a pop up when the testing is completed. When the pop up message appear, the whole program should be paused (NOT STOP) and when the two buttons (continue, stop) are pressed, the program should continue to run OR stop. [To start another loop of testing in order to make sure data collected is accurate and consistent.]
    How do I make this kind of pop up window? I have totally no idea how to work on this. I will be very appreciated if someone could give me some suggestions/help regarding this.
    Thank you.
    Regards,
    Vanessa

    VanessaWen wrote:
    Hi Blokk,
    In my actual program I have 3 while loops. In while loop A, it is used as counter, to transfer rows of data from an array (row by row) to loop B. For loop B, device drivers are used so that my program can be used to control the devices (it is for automated instrument testing). Loop C is then used for DAQ, data at different test points will be recorded at every second.
    I would prefer something simple in controlling all the while loops as my program is quite complex.
    Thank you so much.
    Vanessa
    I do not see why you need these 3 while loops. This task could be done with a single while loop, or max 2. Why you need loop A? You could generate data from this array inside loop B. You must use the DAQ and device control part in separate while loops? Maybe you could simplify you code to have one single while loop: at every iteration you could send a new control command to your device(s), and after this do a DAQ measurement.

  • How to upgrade from CS6 windows Educators version to a Mac version without buying the program again?

    I have an educators windows box version of CS6 Master Collection never installed that I bought in Jan. 2013 and I now have a Mac Pro. How do I go about getting a cross-grade option? I don't want to have to buy the program over again do I have any other options?

    Order an Adobe product platform swap or language swap
    Mylenium

  • Will a program that is not responding ever respond without quitting the program and losing information?

    working on a final draft and the program stopped responding, it's been about an hour, will it ever start responding again? Do I have to quit the program and lose everything or is there a way of saving this?

    Some programs, such as iWork and Office for Mac, will autosave periodically in case the application stops responding. However if it has been unresponsive for a extended length of time it is unlikely it will start responding again. You will likely have to force it to quit and then re-open it.

  • I want to close the iMessage window without quitting the program

    Hi,
    I have run into this problem before and I figured it out before but now it is an issue again and I can't change it. When I let a friend borrow my computer, I logged out of iMessage and now after relogging in, I find that my iMessage program quits once I close the window. This makes it quite difficult if I am running a full screen app and it takes me out of it as soon as I get a message. I don't want to have iMessage on "offline" and this box is unchecked when I quit but it still puts me on "offline". How can I remedy the situation by being able to close the window but not quit the program itself? I just want the notifications on the top but not the whole window to open on me during work or class. Please help

    HI,
    It should, and I repeat should, close the Window Only if you use the red blob to close the window.
    The Messages Window (See Window Menu > Messages CMD + 0) should come back into view using the Window Menu or the keystrokes.
    I tend to run Messages with my Buddy list showing.
    I have used the red Button to "Hide" all of these.
    The red button on the Messages window did not close/Quit the app for me.
    Having said that you seem to be describing different behaviour.
    I rechecked by logging out all my Buddy lists so that the Messages window would be the only window on view.
    It still does not quit the app when I use the Red Button.
    The indicator under the icon in the Dock remains in place.
    I went one stage further and logged the iMessages Account Off Line as well and still the Red Button did not Quit the app.
    IN the Finder > Go Menu > Go to Folder type in ~/Library/Preferences in the Dialogue box that appears.
    Find com.apple.ichat.plist  (this holds the Window locations and actions).
    Drag it to the Trash
    Restart Messages.
    The will recreate the .plist
    You may need to change some settings in the Preferences if you are not using defaults (Font, Colour of Balloon etc)
    10:34 PM      Wednesday; January 16, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Run Button without execute the program

    Hi,
    Normally, when I am pressing the "run button", it will run the program. How do I prevent from executing the program until I want to enable? For example, I have 3 power supplies on my pxi box, and I don't want to run the program until I have all my value set: voltage, current limit, output function and etc...Then, I will press the button like (enable or set) to set a certain voltage at certain power supply. I am using Labview 8.6. Thank you.
    Solved!
    Go to Solution.

    Move the Set button outside that inner loop.  It should be inside the True case but not inside the inner loop.
    To run it again for another power supply, you need to control the outer loop with a separate stop button.  Remove the boolean constants from the True and False cases that are wired to the stop sign.  Wire the new stop button to the stop sign.  When you are done setting all power supplies, press the new stop button.
    If you know you will only be using two power supplies, you could replace the outer while loop with a For loop with a constant value of 2 wired to the N.  Then the loop will execute for the first power supply setting and then repeat for the next.
    - tbob
    Inventor of the WORM Global

  • Wiped hard drive at apple store and now need to reinstall programs (Photoshop) I should be able to do this without purchasing the program again??

    My computer was turning on, but never getting past a gray loading screen. I took it to an apple store and they ended up having to wipe my hard drive clean. I now want to reinstall photoshop and microsoft office, which are programs I had purchased and had on my computer previously, and I'm thinking there should be some way to do so without having to purchase those programs again?

    Yes. Download the current trial and make it permanent with your serial number:
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us&PID=2159997

  • How to get the alv saved in background mode without modifying the program?

    Hi all,
    I have to run a standard report(IW39) in background and save the result ALV as excel or text file.
    How to get the result saved in excel / text format if I don't want to customize the standard program?
    (In the spool, there is an option to save list in file "Spreadsheet", but the saved format is not what we expected.
    It is expected the data to be put is separated in each column / tab-delimited in the text file....)
    Many Thanks!

    I don't have any ready made coding examples, but using the F1 help on SUBMIT statement will help to get you quite a way:
    DATA list_tab TYPE TABLE OF abaplist.
    SUBMIT 'RIAUFK20'
    USING SELECTION-SCREEN
    EXPORTING LIST TO MEMORY
                  AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
    IF sy-subrc = 0.
      CALL FUNCTION 'WRITE_LIST'
        TABLES
          listobject = list_tab.
    ENDIF.
    Edited by: Micky Oestreich on May 18, 2009 8:18 AM

  • How do I exit a procedure without exiting the program?

    I just want to exit a procedure so that I do not execute the rest of the code below the point of where I would like to exit the procedure. Is there anyway I can do this?

    Here is a clever bit of code that only makes sense if you have ever had multiple blocks and didn't want to exit with multiple return statements.
       boolean isOk = true;
       do  // Only do everything in here once.
          // This is a clever bit of code that allows us
          // to only have one exit point.
          isOk = step1();
          if (!isOk) break;  // This is the clever part
          isOk = step2();
          if (!isOk) break;  // This is the clever part
          isOk = step3();
          if (!isOk) break;  // This is the clever part
          } while (false);  // Yes, false

  • I downloaded 3.6.6 and now Firefox will not proceed to page 2 of searches, or allow subsequent searches without reloading the program; you get one shot and that's it.

    I upgraded to 3.6.6. After that when I do a search, the results come up, but when I try to go to the second page of the results, it says "done" in the status bar and goes nowhere; also, I cannot refine the search by putting in subsequent search terms in the search bar, as that results in the same "done" message at the bottom. The "workaround" is to quit and start all over again with a new try, in which I get one shot on that one. Very frustrating.
    == This happened ==
    Every time Firefox opened
    == After I downloaded 3.6.6

    See
    https://support.mozilla.com/en-US/forum/1/716464

  • Enable null values assignments in javascript..without stopping the program flow. Same code is ok in IE8

    I have the following code which is falling over in Firefox, while in other browsers like IE, Chrome and Opera is passing through even though the value in the array at that point of time is null.
    var vitemp = document.getElementById('F06_'+ij).value;
    In firefox, i get the error below.
    [18:59:35.747] TypeError: document.getElementById(...) is null @ http://
    How can i change the firefox parameters so as to be less strict for null value assignments ?

    Use code like this to test if that id exists.
    <pre><nowiki>var vi_id = document.getElementById('F06_'+ij);
    var vitemp = vi_id?vi_id.value:null;</nowiki></pre>

  • How to stop the "Elapsed Time" counting without stop the program running?

    我使用Labview 8.2,配合USB DAQ來做測試治具。目的:
    當檢測到某個電壓(Analog Input)到達某個電壓值(5V)之後,開始啟動計時。若是在15秒之內,另一個電壓值降為0之後為正常​,此時停止計時(但是數值不能歸零);若是超過15秒還沒有降到0伏,則表示錯誤,此時亮起紅色 indicator警示,但是時間仍然繼續計時,直到電壓降到0為止才停(但是數值不能歸零)。
    我使用 Elapsed Time 模組來使用,可是問題是如何讓該模組停止計時同時不能將時間歸零?因為此模組只有 "Reset" 控制功能,一但將條件結果輸入到 Reset input 之後,電壓達到零之後就會將此 Elapsed Time 歸零了。有沒有解決辦法?

    Elapsed Time 確實會將時間reset,如果你想要保留時間的話其實有很多做法
    例如使用 tick count,他會顯示出相對時間數值,先放一個tick count在迴圈開始前
    記得用sequence以確保他會在回區尚未開始運作前先記錄時間
    然後再放一個tick count在迴圈內,再用case或select讓電壓等於零時記錄下tick count的值
    再將兩者相減即可
    Chris

  • Is data stored anywhere in the system without SAVEing the file manually

    Hello All,
    I need to know whether the data is saved anywhere even before I save the document manually ?
    If so, where can I find that temporarily saved data?
    Ex: While writing any WORD document, you can see the draft version of any file saved after 2 mins without save.
    Regards,
    Vijaya

    Hi, data is not stored in system without SAVEing the program.
    However, if you have pressed F8 ( executed the program without saving), then a message come REPS<reportname> temporarily saved (program gets buffered for temporary compilation) .
    If after this you close your session and try to open the report in new session, a popup would come giving you option of using saved version or temporary version.
    This is the closest SAP gets to MS WORD file crash recovery style.

Maybe you are looking for

  • Is CPA Cache refresh linked with  ftp or file pooling process in XI?

    Hi, I have a file to file scenario using Transport protocol as FTP in XI 3.0 SP 15. When we try to sends some file using ftp protocol where we are using FTP  connection parameters Server                          = <CORRECT IP>, Port                  

  • Is it possible to take songs off of your ipod and put it them on itunes

    by accident i permanately deleted all my songs off my computer and cant get them back ,,,trust me i tried everything. im wondering is possible to take songs from your ipod and put them on your itunees library?

  • PPro CC crashes when using Track Select tool

    This is probaby the most bizzare bug i have encountered so far - everythig works - i can scub, play and adjust footage, apply effects, titles and time remapping, but when i select Treack Select tool and click on the timeline, Premiere Pro crashes. Th

  • Anyone having problems listening to iTunes radio?

    I can listen to 2 or 3 songs then it just pauses out. It used to be a joy to listen to but not any more.

  • Excise calculated at migo is wrong

    hi friends.         i have maintained tax code for 8%, 2%, 1%, for bed, ecess, and secess respectively and 4% vat the Bed calculated at migo is wrong, it is calculating little more, what is the procedure to rectify this, please give all respective hi