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.

Similar Messages

  • Problems implementi​ng the elapsed time express vi into my vi

    I am trying to implement the Elapsed Time Express VI into my VI so that my VI runs for a specified amount of time. I currently have the express VI working, but now that I have implemented it into my VI, my graphing functions do not work. If anyone has any suggestions, I would greatly appreciate your help. I have attached my VI for reference.
    -Kelly
    Attachments:
    Inj&Sam_C348_C_wrt_File_and_Timed.vi ‏405 KB

    The way you have your VI configured, the outer while loop will only run once. It will run, but will not be able to continue until the inner loop has completed. The inner loop will continue to acquire data until the desired time has passed. A this time a true will be written to the stop terminal on the inner loop, and then passed to the stop terminal on the outer while loop, stopping it when it has only run through one iteration. I'm not sure what you are trying to do, but my guess is that you want your second while loop to be outside of the first one. You can then stop them both by using a local variable or some synchronization mechanism.
    Regards,
    Ryan K.

  • 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

  • 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 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 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 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • WebEx is not displaying the elapsed time.

    When watching a Webinar using WebEx with Safari or Chrome the elapsed time is not displayed in the block in the lower left hand corner of the screen. It is on my older Macbook Pro. I have talked to Apple support and Webex support and each blamed the other after a good faith effort. Clearly it is a difference between the operating systems. What can I do?

    I am using 10.10.3 not the version listed.

  • 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!

  • Show the elapsing time

    Hi all..
    I am trying to create a small application where I set the time from the control. In that particular amount of time I need to do the processing and should stop later. I also want to show the elapsing time.
    I would like to explain it with an example. Suppose I want to send read query to the instrument continuously for 50sec. I also want to show the time countdown and my process to take place. And once time is = 50sec the process should stop.
    Awaiting the response from u all..thanx

    Here is an example
    Tim
    Johnson Controls
    Holland Michigan
    Attachments:
    Time Out and Counter.vi ‏11 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.

  • Further info needed on the System Time Problem when using Bootcamp

    Hi, my query is an extension on the previously reported problems and fix with the Sytem Time being incorrect when using Bootcamp.
    As respected user 'SideStepSociety' very helpfully pointed out and posted in another thread, the cure for this problem is as follows:-
    In Windows, try this:
    Run > RegEdit


    Find: HKEYLOCALMACHINE > SYSTEM > CurrentControlSet > Control > TimeZoneInformation
    

Add key ( REG_DWORD type ): RealTimeIsUniversal


    Double-click and set value to 1
    However, unless I'm mistaken I have seen somewhere that the key type 'REG_DWORD' is 32-bit based and I am running Windows 7 x64 (64-bit) Bootcamp, therefore do I have to enter the QWORD 64-bit type key i.e. 'REG_QWORD' instead of the DWORD 32-bit type key i.e. 'REG_DWORD', or is it perfectly acceptable and fine to just enter both to cover myself should any of the components revert from 64-bit to-32 bit? ..which I have experienced happening once with Windows 'Gadgets' which normally always runs 64-bit, but once reverted to 32-bit.
    Advice appretiated, thanks.

    Thanks for advice.
    I had gone ahead and entered the DWORD value in the registry just after my post and a couple of week booting between the two OS's, there were no more problems with the time issue between OS X and Bootcamp.
    Shame this most frustrating of little problems where not resolved in a Bootcamp update patch, I had been experiencing this problem for a long, long time not knowing how to fix it and thinking it was my own MacBook Pro that was at fault. I do sympathise now with the possible hundreds or even thousands of Mac-Bootcamp users that are suffering this unbeknown that there's only a special registry fix that has to be manually applied to cure the problem. This is Tacky. I do wonder about Apple sometimes.

  • Data Blocks and the Elapsed Time

    Hi,
    I have created 3 tables with one column only. As an example Table 1 below:
    SQL> create table T8k( x char(2000));
    So 3 tables are created in this way i.e. T8k,T16K and T4K
    T8 = in the default database tablespace of 8k (11g v11.1.0.6.0 - Production) (O.S=Windows).
    T16 = I created in a Tablespace with Blocksize 16k.
    T4K = I created in a Tablespace with Blocksize 4k. In the same Instance.
    Each table has 290,000 rows and all the 3 tables have equal size of 555MB (2006(rowsize with overhead) * 290,000/1024/1024 = 555MB) to test Elapsed Time (set timing on).
    As these 3 tables are created under different block sizes so the allocated no. of data blocks are different as below:
    T8K = 97177 BLOCKS= 00:41:20.21 (Elapsed Time)
    T16K=41639 BLOCKS= 00:44:11.59
    BT4K=293656 BLOCKS=00:37:29.06
    Please note the difference. First table i.e. 8k block size, allocated blocks are 97177 and taking around 41 mins. Third table i.e. BT4K (in a 4k block size tablespace), allocated blocks(293656 ) are almost 3 times bigger, taking around 37 mins to execute the query. I mean the difference is only 4 mins hardly and blocks difference is 3 times.
    In case of any doubt, I've created these tables bigger than the memory used for my db(memory_max_size 408M) i.e. 555 MB that If Blocks are already in cache then reading the blocks and counting the rows will nearly be the same regardless of the block sizes or the number of blocks.
    Need solid suggestions and if possilble, links also which has some serious discussions regarding my issue.
    Bundle of thanks.
    Best Regards,

    Because I was not completely satisfied with the things last time. It doesn't seem so simple to me as people said
    I thought may some guru have a look today, not just to point out that i have created it again.
    And I have compact my question to avoid confusion.

  • How to display the elapsed time of a video (event video) in Captivate 6

    I have a Captivate 6 project which includes two separate videos and I am wondering how I can display an elapsed time for the videos - preferably one that stops if the individual stops the video.

    Hello and welcome to the forum,
    Are you talking about an inserted video, or about the Captivate file itself? I'm asking this because a lot of users refer to a published CP-file as a video.
    'Elapsed time': is this the real time spent by the user, or the time as you can see in the TOC (developer's time)? I blogged once about the difference.
    Lilybiri

Maybe you are looking for

  • Single Sign On (SSO) Internet Access via ASA

    Good Afternoon, I'm looking for a way for users to authenticate through the ASA to determine whether or not they are granted access to the Internet. I would like to provide two separate Active Directory groups, for example, GRP-NO-INTERNET and GRP-IN

  • Does anyone know the part number for the printhead for the HP Officejet 6500a

    My printer doesn't print, initally it didn't print black, then I soaked the printhead in hot water as instructed now it doesn't print at all, so I need to replace it.  Does anyone know the part number for the printhead for the HP Officejet 6500aThank

  • Why does my video say its turned off on Skype?

    I can see the other person but they cant see me. When i click the video button it says your video is turned off and i cant get it on.. how can i get it on?

  • Uploading two internal tables

    how to upload two internal tables at a time using standard class methods in to   internal tables. help required

  • Acrobat stopped working

    Recently I've come across the problem of Acrobat not opening. Not when I click on the application shortcut, not when clicking on the application in the folder and also not when clicking on an acrobat file. I'm currently using Vista and installed CS6