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

Similar Messages

  • How can i reset elapsed time VI

    I am using the elapsed time express VI along with an "in range" comparison VI as the exit control for a torque test.  If the voltage signal from the torque transducer is within the specified range for the target time, the loop exits.  If the voltage signal is out of range, the elapsed time resets to zero.
    My problem arises when i exit the loop prematurely due to excessive torque.  Like if torque reaches the transducer limit, I want to exit the loop to prevent damage.  When i exit the loop like this, the elapsed time VI continues counting even though the loop has been stopped.  The next time the program enters the state, it exits immediately (because torque is initially zero, and the timer has passed the set time).  After that iteration the program behaves as i expect it to, because the VI has reinitialized I assume.  I have been stuck on this problem for several days, and I'm going to start breaking company computers if i can't fix it.
    So my question(s)... is there a way to reset the elapsed time VI upon entering the while loop?  is there a way to reset the VI from the 'torque limit' state immediately following the exit?  I also use a 'resume test' button so the user can restart the test after checking the unit,hardware,etc.  can i wire something to that button press to restart the elapsed time VI?
    My 7.1 vi is attached, the elapsed time problem being in the 'exercise' state.  immediately following an 'exercise' torque limit, it goes to the 'torque limit' state, which i thought could be used to reinitialize the elapsed time somehow. 
    Thanks,
    Evan
    Attachments:
    DB6483 Test.vi ‏2932 KB

    I have a similar problem ,
    I use a elapsed tiem function ,with a target of 1s time.
    i want to caluclate mean of samples in this 1 second
    but what i see i get 8-9 mean values in 1 second
    i also wired my i of while loop to auto reset with case structure,but even then i see so many average sample values in a second
    to be more precise i want data like this:
    when my DAQ board gives some 1000 samples per second. i need mean of these 1000 samples,but not all 1000 sanmples.
    for this i included a elapsed time vi with taget of 1s. (didnt forget to reset after 1s).
    but what i see is it gives values like this
    12:12:01     d1 d2 d3
    12:12:01     d1 d2 d3
    but i expect like
    12:12:01   d1 d2 d3
    12:12:02   d1:d2:d3
     did i go any where wrong in my Vi.
    how can get out of it!

  • When using historical datalogging, is it possible to hide the elapsed time between tag updates when viewing on a graph?

    When my process stops, I am reading an array of tags(datapoints) and writing the max and average to memory tags for data logging. However, when viewing the data, the elapsed time between cycles spreads the data out unevenly. It could be 90 seconds between cycles or maybe two hours or longer. Is there a way to convert the time axis data to be just consecutive datapoints?? It would be like logging data based on a particular condition happening rather than time-based trending. Should I try to use the data set logger examples instead?? I would prefer to use the built-in datalogging features rather than writing to databases.

    You could export your data to a spreadsheet file and then actually write then again in a second database using this example program in the devzone
    http://zone.ni.com/devzone/conceptd.nsf/webmain/5A921A403438390F86256B9700809A53?opendocument
    Using this program (if you don't want to modify it, which would take a reasonable amount of time specially if you are not familiar with VI-Based Server) You would have to generate a collum in your spreadsheet file to be the timestamp, it would be a artificial timestamp.
    What you could do in your application is to first save the data to file and then read from file, substitute the collum timestamp for the "artificial one" and then write it to the database, again, with that you would not need to modify this program.
    However if you have the time and is willing to work with VI-based server you could try to modify the example program to be adapted for your purposes.
    I hope it helps
    Good Luck
    Andre Oliveira
    Applications Engineer
    National Instruments

  • How can I see the elapsed time on imported video?

    I'm trying to make a video in iMovie 11'.  I would like to be able to view the elapsing time of the song I imported so I can match video footage with audio.  With the older version of iMovie, I could see a time clock on the bottom of the video I was importing, so I could match the mouth to the lyrics. 
    In the older iMovie version, the entire audio would play when only part of the clips had been imported by me.  Now with this version, the song stops playing when the clips stop.  So partial completion of the video, doesn't allow a full time clock of the total song to allow me to match the voice on the audio with the film of someone singing.
    In short, I can't find the running time clock for the video player in the project library.
    Can you help me with thsi?  The help menu has not anweered my questions.
    Thanks.
    Dave Demoise

    I agree with Bengt W. There are many reasons, even in a simple movie, to want to know the timing of things. This is a surprisingly frustrating product. For want of timing information, you are requiring your users to pay $300?
    In my situation, I took some video of a show (with the performers permission) with an iPad and an iPod.  All I want to do is make a movie with one video as the main position with a series of cutaway clips from the other. It is incredibly frustrating to do this without knowing where you are within each clip.
    When helpful and capable forum participants like we have here have to spend time explaining how best to make do with a product, it's a clear indication of a fault with the product. Now, I either have to spend extra time in iMovie making due with this crippled interface, or I have to spend time looking for an alternative product.
    Consider this a feature request!

  • Reg: How to Stop Polling of JDBC Adapter without Scheduling the adapter

    Dear Gurus,
    Here I am having one requirement. My clients wants to send data from JDBC adapter (ORcale System table) to R3 system via RFC.
    His Requirement::
    1. He is not telling the time of data flow from Oracle server so that based on that we can schedule the adapter in the Communication Channel monitoring (Availablitiy Time Planning) or Else we can Schedule by deciding the setting of the polling interval time.
    2. He is telling that When ever he waants to send the data he will place one dummy file in the File Adapter FTP location so that it will became an Indication for u to poll the jdbc adapter and to transfer the data to R3.
    3. Untill he keeps the file or gives indication he doesn;t want to communicate with Oracle server due to some security and it s a most important data base he doesn't want to disturb that Oracle Server as so many business are running  on that.....
    We Proposed::
    1. Atleast you need to tell the scheduling time or poll interval time so that we can schedule our adapter.
    but he s not accepting for this
    2. Atleast U need to give access for Data base to enter one more extra field like STATUS CODE so that we will add one number and we keep on Update in the Update table and based on that Update table statement it will poll.
    but he s not even accepting for this
    3. Finally we prposed that to create another table in the Oracle SYstem as Dulplicate Table which is similar to Standard Orginal table when ever he wants to pick the data please keep that data in this Duplicate TABle so that JDBC adapter will pick the data from thsi TABLE instead of picking the data from that standard table so that it will not effect any standard table data in the table.
    but he s not even accepting for this
    We have done some R & D:::
    1. WE approached even through BPM and via switch conditions is one scenario
       FILE RECEIVE >SWITCH CONDITION> RECEIVE AND SEND or else EXIT
    2. Using correlation in anotehr scenario means correlating File adapter and JDBC and based on one dynamica value it will goes to SEND STEP ( RECE IVE --> RECEIVE --> SEND STEPS )
    Even though we know this...concept that...we jsut tried::
    In BPM we can control the flow in XI 3.0 but we cannot Stop the Polling of JDBC adapter at backend because one the data comes from FILE adapter it will keep on HOLD untill it receives the JDBC from Oracle then based on the condition or Correlation it will goes futher SEND step means after that file adapter is picking file or not ...what ever it may be JDBC will polls at backend and brings that data to BPM"
    Hence sugest me How to Stop Polling of JDBC Adapter without Scheduling the adapter or else using STATUS CODE Update statements in JDBC Tables 
    Regards:
    Amar Srinivas Eli

    Hi! All,
    Finally I decided to do the scenario in two steps:
    1: FILE REQ --> JDBC REQ -->JDBC RES --> FILE RECV
    2: FILE RECV --> RFC
    But I am getting issue while doing first scenario
    Desgn :
    I have created 2 Synchronous interfaces :
    1) FILE 2 JDBC REQ
    In this a) out put message is FILE  Req
              b) Input msage:; FILE RES
    2} JDBC2FILE RECV
            a) Output mesage;; JDBC REQ
            b) Input Msge :: JDBC Response
    Mappings:
    1) File REQ-->JDBC REQ
    2) JDBC RES-->FILE RES
    Interface mappings:
    1: FILE 2 JDBC REQ--> JDBC 2 FLE RECV
    CONFIGURATION ::
    1: One Seder File CC
    2: Two reciever CC's one is for JDBC RECEIVER and other s FILE RECEIVER
    3; One Sender Agreement
    4: 2 Recver agreements
    5: One Interface Determination and
    6: One RECCV Determination
    My Question;;
    1. First let confirm whether my development steps are right or not ?
    2: Another thing s I am not sure reg Configuration Steps means
    whetehr one interface determination and one Receiver Determinations are required or not as these are synchronous Interfaces
    3: main Issue is::::
    If my scenario s FILE2RFC2FILE then I will get RFC response automatically but here issue is this is JDBC
    My reqquirement is By sending one Field from fILE to JDBC REQ it needs to send entire TAbLE records as a Response to file as XML
    without having Sender JDBC how can I send the JDBC Res to FILE and If that is the case then again JDBC adapter is polling which is contradict to the client requuirement which i explained above.
    pleas suggest me the Detailed steps mainly Colloboration agreements and logical routings and
    also explain in detail if i can  go for BPM
    Also give cleear blogs but before giving make sure that it contains detailed screen shots because aIready gone thorugh
    Scenario File-JDBC-RFC
    File<-->JDBC Sync coomunication.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/file-rfc-file(Without+BPM)
    /people/luis.melgar/blog/2008/05/13/synchronous-soap-to-jdbc--end-to-end-walkthrough
    Regards::
    Amar Srinivas Eli

  • How to stop a elapse time

    Hi,
    I have an elapsed time inside a while loop and I want stop it (the elapsed time) when the user press a button.
    How can I do it?
    Thanks,
    ToNi.

    Here is a vi that I created for demonstration of how to keep track of running time with the ability to pause and continue by pressing a switch. Perhaps you will find it useful and can modify it, or use some of the code in your vi. If you want to control the pause and continue from another vi, you will have to pass the reference of the pause switch to this vi, and change this vi to use the reference instead of an actual pause switch. Hope this helps.
    - tbob
    Inventor of the WORM Global
    Attachments:
    PauseTimer.vi ‏41 KB

  • How can I display the elapsed time of the course using Advanced Actions in Captivate?

    I have a Captivate course which is approximately 35 minutes in length. On each slide I would like to display to the user, the current elapsed time.
    EXAMPLE:
    25/35 minutes complete
    The 35 would remain static, so I have been working with the elapsed time system variable in CP: elapsed:$$cpInfoElapsedTimeMS$$
    I can't seem to get the variable to properly display the elapsed time in minutes, rather than miliseconds. Attached is a screen shot of my advanced action.
    Can anyone provide guidence regarding how I should structure this differntly?

    I talked about that Timer widget in that blog post and pointed to another one:
    http://blog.lilybiri.com/timer-widget-to-stress-your-learners
    If you are on CP7, you'll have this widget also as an interaction, which means it is compatible with HTML5 output. Amd there is also an hourglass interaction, with similar functionality but... did not blog about that one
    PS: Check Gallery\Widgets to find all widgets. Default path is set to Interactions

  • How can I get the elapse time for execution of a Query for a session

    Hi ,
    How can I get the elapse time for execution of a Query for a session?
    Example - I have a report based on the procedure ,when the user execute that it takes say 3 min. to return rows.
    Is there any possible way to capture this session info. for this particular execution of query along with it's execution elapse time?
    Thanks in advance.

    Hi
    You can use the dbms_utility.get_time tool (gives binary_integer type value).
    1/ Initialize you time and date of beginning :
    v_beginTime := dbms_utility.get_time ;
    2/ Run you procedure...
    3/ Get end-time with :
    v_endTime := dbms_utility.get_time ;
    4/ Thus, calculate elapsed time by difference :
    v_elapsTime := v_endTime - v_beginTime ;
    This will give you time elapsed in of 100th of seconds...
    Then you can format you result to give correct print time.
    Hope it will help you.
    AL

  • How to keep Nano showing the elapsed time of song?

    Hi,
    I'm trying to figure out how to keep the page that shows the elapsed time / time remaining on instead of flipping back to the album artwork in 10 seconds. I need this function. any help would be appreciated.

    I don't think you can, sorry. But I have emailed Steve and sent feedback to Apple to fix various issues: http://www.apple.com/feedback/ipodnano.html

  • How to reduce the elapsed time on this query.

    Oracle10.2.0.5 on AIX6.1.
    Here is the awrsql report of a query for a one hour window.
    Here UNBILLED has 120million records which is partitioned and subpartitioned. It has 10 partitions and 312 subpartitions. One subpartition has 10M records, 10 others have 1M each and 270 subpartitions have 360K records each. And 31 subpartitions are empty.
    And BILLED has 300K records.
    Looking at report you can see that out of 984 seconds, 958 is used for IO. Machine is PowerPC_POWER5 with 8CPU and disk storage on EMC.
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                           984,327        5,561.2    28.6
    CPU Time (ms)                                40,760          230.3    29.8
    Executions                                      177            N/A     N/A
    Buffer Gets                               1,923,456       10,867.0    46.9
    Disk Reads                                  203,832        1,151.6    25.1
    Parse Calls                                       0            0.0     0.0
    Rows                                        106,200          600.0     N/A
    User I/O Wait Time (ms)                     958,766            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     1            N/A     N/A
    Sharable Mem(KB)                                 31            N/A     N/A
    SQL_ID akg45a750sh0u
    DELETE UNBILLED WHERE (MSG_ID, MSG_ID2,SPLIT_ROW_NUM) IN (SELECT MSG_ID,MSG_ID2, SPLIT_ROW_NUM FROM BILLED
    WHERE BILL_REF_NO = :B2 AND BILL_REF_RESETS = :B1 )
    Plan hash value: 3879210699
    | Id  | Operation                            | Name                          | Rows  | Bytes | Cost (%CPU)| Pstart| Pstop |
    |   0 | DELETE STATEMENT                     |                               |       |       |     1 (100)|       |       |
    |   1 |  DELETE                              | UNBILLED                      |       |       |            |       |       |
    |   2 |   NESTED LOOPS                       |                               |     1 |   112 |     0   (0)|       |       |
    |   3 |    TABLE ACCESS BY GLOBAL INDEX ROWID| BILLED                        |     1 |    65 |     0   (0)|     1 |     1 |
    |   4 |     INDEX RANGE SCAN                 | BILLED_XCB_BILL_REF_TRANS     |     1 |       |     0   (0)|       |       |
    |   5 |    INDEX UNIQUE SCAN                 | UNBILLED_PK                   |     1 |    47 |     0   (0)|       |       |
    ----------------------------------------------------------------------------------------------------------------------Is there way to improve the elapsed time( currently 5,561.2 msec per execution) of the query?
    Thanks for your time...

    user1014212 wrote:
    You're giving very interresting pointers.. Especially the one using the GTT table... Thanks...
    I was also looking from a DBA point of view, say increasing the DB_CACHE_SIZE from 5GB to 8GB as the machine has almost 32GB memory out of which 13GB is free memory. Because the timed event is "db file sequential read" which takes 95% of Total Call time.
    select * from V_$SGA_TARGET_ADVICE;
    post SQL & FORMATTED results using tags                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How common is it that the on/off button stops working? Time to throw away the ipod touch? Safe to fly? No more "print screen"?

    How common is it that the on/off button stops working? Time to throw away the ipod touch? Safe to fly? No more "print screen"?

    Place the iPod in recovery mode using one of these programs:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • How can I get the Elapsed Time express to output in milliseconds?

    I am trying to get the Elapsed Time express to output in milliseconds or in seconds to three decimal places. I am pretty new at this.
    Thanks in advance!

    I'm not sure I understand your question. The output of the Elapsed Time Express VI is a DBL. It's already a floating point number. The default format for a numeric indicator is 6 digits of precision. You can change this in the properties for the indicator.
    To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
    Attachments:
    Example_VI.png ‏4 KB

  • How do I pause the elapsed timer in keynote

    I have made a Keynote Presentation and at the 90 minute point I want to have a 10 minute break
    is there a way that I can PAUSE the "elapsed time Timer" in the presenters mode? and then restart it when I restart the presentation?
    Each of my slides have notes that show me ( as the presenter) where I should be  in the 3 hours presentation and If they dont come back from the break after exactly 10 minutes...then the times on my slides wont match the elapsed timer... so I'd just rather pause the elapsed timer..
    any help is appreciated

    is there a way that I can PAUSE the "elapsed time Timer" in the presenters mode? and then restart it when I restart the presentation?
    No, the timer runs continuously to inform you the duration at any point in the presentation.
    As this is a single presentation, the countdown timer must continue to provide accurate timing.  If you have a break during the presentation at 90 minutes, and reconvene when the timer shows 100 minutes, you know exactly where you are in the presentation.
    then the times on my slides wont match the elapsed timer
    Change the information to show the correct elapsed time.

  • How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file?

    How can we send only one message to a WCF service at a time? How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file? Can we do it by Host throttling?

    Hi Pawan,
    You need to use WCF-Custom adapter and add the ServiceThrottlingBehavior service behavior to a WCF-Custom Locations.
    ServiceThrottlingBehavior.MaxConcurrentCalls - Gets or sets a value that specifies the maximum number of messages actively processing across a ServiceHost. The MaxConcurrentCalls property specifies the maximum number of messages actively
    processing across a ServiceHost object. Each channel can have one pending message that does not count against the value of MaxConcurrentCalls until WCF begins to process it.
    Follow MSDN-
    http://msdn.microsoft.com/en-us/library/ee377035%28BTS.10%29.aspx
    http://msdn.microsoft.com/en-us/library/system.servicemodel.description.servicethrottlingbehavior.maxconcurrentcalls.aspx
    I hope this helps.
    Rachit
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • The elapsed time problem !!

    Hi ! am working on a program that calculates the elapsed time (for the needle of the gauge to reach a value which is previousely defined) also the elapsed time while the needle is maintained at the same value, which means there are two time counters, the first one stops when i reach the value and the second one stops when i leave it.
    everything works except that when i reach the value the needle gets stuck there and can't be moved so the second timer doesn't stop.
    regards...
    AR
    Solved!
    Go to Solution.

    ABDESLAM wrote:
    the program does exactly what u just said !
    but i don't understand the number 3 sentence.
    well am working on a project on a link flight trainer and i want to calculate the time that the pilot takes to go from 0 to 30 degrees for example on the Attituge gyro indicator then it calculates the time while he's maintaining this value.
    dial2 = the handle of the simulator
    AGI = attitude gyro indicator ( it indicates the degree of turn of the plane)
    i hope u understood what's it all about
    thank you
    What he's trying to say is he doesn't understand why the time delay is hanging off the end of the while loop like that.  Since it won't execute until after the first while loop is complete, what does it do?  If you're hoping it will induce a wait in between the two while loops, it might accidentally work that way, but since the second while loop and the time delay are running in aprallel, there's no way to determine which will happen first.
    BTW - if you already know what the code does, what, exactly, is your question?  How does what it is doing differ from what it should be doing?
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

Maybe you are looking for

  • Settings for Cash and liqudity report

    Hi, all As per your response i have done all the setting and i cheked FF7A and FF7B for cash and liquidity forcase but still i am not able to get the Persons line items in that report for M1, M2 and s1, i am ble to view only F1 line item. M1 means Pu

  • How to put the trace messages in JSP DynPage

    Hi, How to put the trace messages in JSP DynPage components. What settings I need to do and where do I see the trace log. Can I also print the values of some variables in trace. If yes, how to achieve this? Thanks in advance, Regards, Madhu

  • 2nd level of Drill Down

    Hello, I am making the Drill Down configuration. 1st Level is - Area 2nd Level is -Branch 3rd Level is -Shops After I make above configuration, I test this on the BI Answers. ex) Area New York Tokyo Paris 1. I click the column "Tokyo". 2. Then the re

  • Path.To.MovieClip?

    Hi, I have this event which is not working and I am stumped! on(rollOver) { _root.mc_home.gotoAndStop("over"); _root.mc_home.mc_homemove.gotoAndPlay("rollover"); Instance mc_home consists of 2 keyframes labelled 'out' and 'over'. Keyframe one has a s

  • Simple tutor for motion tween in AS3

    i am searching one simple tutor for motion tween in AS3. Does any body know website ?