Converting a counter to relative time

Hello!  I have a fairly simple question if anyone has a moment.  I have a while loop with a 1000ms Wait inside, along with some other stuff that's irrelevant to the question.  Since my incrementer essentially counts the seconds elapsed due to the presence of the 1000ms Wait, I'd like to take the built in incrementer (i) and use it to display the relative time that has elapsed since the while loop began.  This loop will be running for 3 hours, so I'd like to display in HH:MMS format.  So basically, I'm looking for a way to convert the counter into a time value.  Any thoughts?  I know the Wait function isn't exactly accurate, but that's ok.  I don't need to be 100% accurate in this vi.  Just a rough estimate will be fine. It seems like there should be a relatively simple way to do this, but I can't figure it out...  Thanks!!
Solved!
Go to Solution.

The code could not get much simpler. You just wire a numeric indicator to the iteration terminal. Set the display format to absolute time and HH:MMS time format.
Message Edited by Dennis Knutson on 02-04-2009 09:00 AM
Attachments:
Simple Elapsed Time.PNG ‏2 KB

Similar Messages

  • Convert a counter to frequency

    Hi,
    I am using two counters on a 6023E board. I have two pulse generators which
    give 1000 pulses in one rotation.
    How can I convert the counts to frequency or speed in LabView?
    Greetings,
    Erik.

    We found that the best way of obtaining speed measurement from a pulse generator is to use the buffered period measurement and scan some period (more than one), then eliminate the first measure (first period measurement may be incorrect due to the uncertainty in the start of measurement with respect to the slope of the signal), next average the measures obtained.
    The next step is to divide base time used (internal base time of 20 mhz for example) by the average measure obtained in the preceding step: this is the average period measurement and must be multiplied by 60 and divided by n. of pulses per round: this gives you the rpm value.
    Step two can be put in a loop in orded to obtain a continuous measurement, provided that you restart the counter once obt
    ained a finished reading from it.
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • My Timeout not working , relative time is 3 Minutes, ??

    hi,
    I have an approval request Notification in my workflow. its return type is either Approve/Reject. I have another Timeout transition from that notification ,
    I set the Timeout's Relative time to 3 Minutes, 0 hours and 0 days. Because i want to test it, thats why i make it to 3 minutes. But its not working. Notification status is still OPEN. since i didnot approve or reject inorder to test it .
    And in the Loop Counter standard activity , i make the Loop Limit to 2. and From the Loop Limit activity transition goes to reminder notification, which have the same performer as Approval request notification.
    here is the transition flow.
    Notification ---> Loop Counter ---> Reminder Notification ---> back to the first Notification.
    appreciate your help
    thanks
    Is

    i have run two background process
    one with timeout parameter to Yes and Deffered to No
    second one with Timeout parameter to No and Deffered to Yes.
    I run this process from "Submit Request For" link in "Workflow Manager" page under "Oracle Application Manager" menu under "Workflow Administratr New" responsibility. I also got email notification from workflow saying that process completed with "normal" status.
    still my time out is not working.
    below is my timeout process details:-
    NotificationA ----> LoopCounter ----> ReminderNotification------>backto NotificationA
    NotificationA detail:-
    TimeOut = Relative time ,
    value = Day=0, Hours=0, Minutes=3.
    3 transition from this Notification
    a). Approve
    b). Reject
    c). Timeout
    LoopCounter details :-
    TimeOut =NoTimeOut
    LoopLimit(nod attribute) 2
    2 transition from here
    a) Loop to reminder notification
    b) Exit
    thanks

  • How can I convert multiple files at one time and not one at a time

    How can I convert multiple files at one time and not one at a time

    Hi Plissey1950,
    Sorry for the lengthy delay to a response.  Are you trying to convert multiple files to individual PDF files at the same time? (not combine them).  If so, you'll need to use Adobe Acrobat for this function. The CreatePDF service does not have the ability to convert multiple files to multiple individual PDF files.
    Thanks,
    David

  • How can I make a pdf book with "camera to pdf" option on phone? I can only convert one pic at a time

    How can I make a pdf book (single pdf file with several pages)  with "camera to pdf" option on phone? I can only convert one pic at a time. ( Or )how can I attach all those pictures converted pdf's into one pdf file which obviously results in to a single pdf file with several pages in it ?

    Adobe Reader on the iPhone is a PDF reading app. It's not a creation app.
    You need to get an app like Pages which is intended for page layout. It can place pictures from the phone and export PDF.

  • Counting how many times my app has been opened

    I want to be able to count how many times a user has opened my application, and so every time the application launches, this number is added by one.
    Does anyone know how I store a long-time variable like this that will still need to be available across different runs of the application? I imagine this value would be stored in the application's preference file in Library, but I don't know how to do this.
    Can any of you please lend me some advice/code to achieve this (I am using Objective-C)?
    Thanks in advance,
    Ricky.

    Hi.
    It has been a while - but I finally got around to slapping some code together. I have successfully created and retrieved the value from the preference file, but for some reason, adding 1 to my value each run is not working. It only adds by one after each BUILD. So I have to rebuild it every time I want it to increment. See my code below;
    [NSUserDefaults init];
    int numberOfTimes;
    numberOfTimes = [[NSUserDefaults standardUserDefaults] integerForKey:@"used"];
    numberOfTimes = numberOfTimes++; //It is that that is not working.
    [[NSUserDefaults standardUserDefaults] setInteger:numberOfTimes forKey:@"used"];
    NSLog (@"%d", [[NSUserDefaults standardUserDefaults] integerForKey:@"used"]);
    I can't seem to stop anything wrong, but then again it is late.
    Do any of you see any errors here?
    Thanks,
    Ricky.

  • Count number of times an instructor has taught a class

    Howdy Folks, I'm using a lifeline to see if i can get some help for a question. I apologoze in advance, i know this is a numbers forum, but i am working with an excel spreadsheet and was hopng someone could give me a push in the right direction. i want to count how many times an instructor has taught a class based on dates. The spreadsheet is filled out via an applescript so the instructor's name appears with every student. I've been trying to use the count if formula in excel but i cant make it work. any suggestions? it should count james as 2 since he taught classes on two different dates, and nub as 1. all information is fictional and used for demo pruposes.

    This will work for you... I hope:
    I had to add three columns to your existing table, then crete a second table (on the right) to summarize:
    The three columns can be anywhere but I added then right after column G
    The table on the right in this example will have to be a new sheet in excel.  On a mac Numbers is free (If you have Mavericks) so maybe you want to try to download from the App store.
    H2=IF(COUNTIF( $H$1:H1, F2&"-"&E2)=0, F2&"-"&E2, "")
    this is shorthand for... select cell H2, then type (or copy and paste from here) the formula:
    =IF(COUNTIF( $H$1:H1, F2&"-"&E2)=0, F2&"-"&E2, "")
    I2=IF(H2="", "", MAX($I$1:I1)+1)
    J2=IF(COUNTIF($F$1:F1,F2)>0, "", MAX($J$1:J1)+1)
    select H2 thru J2, copy
    select H2 thru the end of  column J
    paste
    In the new table (for Numbers) or sheet(in excel):
    A2=IF((ROW()−2)<MAX(Table 2::J), OFFSET(Table 2::$F$2,MATCH(ROW()−1, Table 2::J,0), 0),"")
    B2=IF(A2≠"", COUNTIFS(Table 2::F, A2, Table 2::I, ">0"), "")
    select A2 and B2, copy
    fill down as needed

  • How to remove time zone offset when we use a number as a relative time variable?

    Hi everyone!
    I've a small doubt in using a number as a relative time. If I change the display properties of a numeric to relative time, it takes default value "5:30 AM", may be because I'd set time zone to Indian time during installation ( India is 5:30 hours ahead of Greenwhich). I want it to take default value "12:00 AM'. Please help me how I do it?
    ( I can also subtract 5:30 hours and get the same. But I want that to have "12:00 AM" by default......?!)
    Thank you all..!
    pavamana

    pavamana_pk wrote:
    Hi everyone!
    I've a small doubt in using a number as a relative time. If I change the display properties of a numeric to relative time, it takes default value "5:30 AM"
    As Ravens already stated, you are using ABSOLUTE time.  Relative time can only be set to display hours, minutes, and/or seconds.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Bug report: Controls in the Data Entry property page reset when using relative time

    Create a blank VI.
    Drop a numeric control.
    Right click and select "Display Format".
    Change to a relative time.
    Switch to the "Data Entry" tab page.
    Uncheck the "Use Default Limits" boolean.
    Try changing the values and you will see that they return to their previous values (inf, by default). This persists even after pressing OK and opening the dialog again. It looks like the values are held in a cache and put back into the controls, since if you change a page and go back to the limits page, it shows the correct values. I also managed to get it to display the values using the correct format (relative time), which I assume is what it should be doing.
    This is in LabVIEW 8.6.
    Try to take over the world!
    Attachments:
    Relative Time Data Entry Bug.vi ‏5 KB

    I spent some time playing around with this in 8.6.1, and at this time do not consider it a bug - unless there is something I completely missed.
    When you set to relative time, the inputs for data entry are expecting HH:MM or HH:MMS, depending on which display setting you chose.  Typing a '7' is undefined - does the user mean hours? Minutes? Seconds? Parsecs ?
    Once we type in a value that matches the format and we get the display to change, it is true that from now on if we type '7' in the field, it will automatically coerce it to 7:00, if we type 36 it coerces to 36:00.  If we type 7.5, it does not change the value at all.  I think at this point, the user knows what is going on, so this behavior is acceptable.  After accepting the changes and re-opening the properties window, the limits are persistent.
    I was not able to reproduce typing a '7' in the limit, having it automatically coerce back to '-inf', then going to a different tab or clicking ok, and coming back and seeing it as 7:00. It was still '-inf'.  If you have some more details on this, maybe I can reproduce it, but from everything I tried, users are be able to enter values and these values are saved.
    Edit - I am aware of the other forum post and the CAR filed there...
    Message Edited by Robbob on 03-03-2009 11:20 AM
    Rob K
    Measurements Mechanical Engineer (C-Series, USB X-Series)
    National Instruments
    CompactRIO Developers Guide
    CompactRIO Out of the Box Video
    Attachments:
    2009-03-03_105522.jpg ‏51 KB
    2009-03-03_105336.jpg ‏58 KB

  • I have a mac book OSX 10.6.8.  I didn't convert my mobileme account in time.  Is there anyway to back up my computer to icloud with this version?

    I have a mac book OSX 10.6.8.  I didn't convert my mobileme account in time.  Is there anyway to back up my computer to icloud with this version?
    I have read that Snow Leopard isn't support by Icloud.  I am thinking of upgrading to Maverick, but first need to back up my computer.
    Also, if I upgrade, will my programs such as the Adobe Creative Suite stay on my computer?

    You cannot back up your Mac to iCloud; and you cannot use most of iCloud's facilities with Snow Leopard. You should get an external hard disk and make a clone - that's the safest possible backup as you can boot from it in an emergency.
    You will need to check that your Mac meets the requirements for Mavericks:
    OS X v10.6.8 or later
    2GB of memory
    8GB of available space
    and the supported models are:
    iMac (Mid 2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    Xserve (Early 2009)
    MacBook Air (Late 2008 or newer)
    Mac mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    Programs already on your Mac will stay on your Mac but  you should be aware that PPC programs (such as AppleWorks) will not run on Lion or above; and some other applications may not be compatible and need updating - there is a useful compatibility checklist at http://roaringapps.com/apps:table

  • I have a string 2012-05-22T23:23:42.263-07:00. so i want to convert in date with indian time zone   can any one help me out

    i have a string 2012-05-22T23:23:42.263-07:00. so i want to convert in date with indian time zone   can any one help me out

    What does this have to do with iPhone tech support?

  • How do you convert several videos at a time?

    how do you convert several videos at a time in itunes or whereever you can convert several at a time? because videora doesnt really work for me.

    exactly what the subject says:
    how do you convert several videos at a time in itunes
    because i have a very slow computer so it takes over
    and hour then right before its done it freezes. im
    getting really mad because i downloaded videos and
    now i cant figure out how to put them on my ipod.
    Select all the videos you want to convert, right-click and select "Convert Selection for iPod".
    You were using external software last time you were here.

  • How do I convert .m4v to Apple Quick-Time 5, 6, and 7 (.mov, .qt)

    how do I convert .m4v to Apple Quick-Time 5, 6, and 7 (.mov, .qt)??  Thanks!

    I once had a problem with a media player not handling .m4v files correctly. Simply changing the extension to .mov fixed the problem. Just delete the "4" and replace it with an "o". Ignore the warning that may appear regarding changing the file type - in fact it's preferable that you make a copy of the .m4v file beforehand.
    There's no guarantee that this will help with your particular issue, but worth a try!
    John

  • Help with converting hex to date and time

    Hi!
    I am using snmp4j libraries to walk the mib tree. The system date is getting returned in 11 hexadecimal octets. I require help in converting it to date and time. I looked up the RFC convention of what each octets represent. Require help with conversion.
    Eg: 07:db:06:0a:29:1d:00:2b:05:1e
    Thanks,

    Octets Contents Range
    1-2 year 0..65536
    3 month 1..12
    4 day 1..31
    5 hour 0..23
    6 minutes 0..59
    7 seconds 0..60
    (use 60 for leap-second)
    8 deci-seconds 0..9
    9 direction from UTC '+' / '-'
    10 hours from UTC 0..13
    11 minutes from UTC 0..59
    For example I just took the time an hour ago it came out as
    07:db:06:13:12:11:1a:00:2b:05:1e
    I have to convert this as a date long value to send it.
    Do I have to write an utility of my own to do it?

  • How to convert the counter input as a RPM

    Hello NI,
                          Could you tell me. how to convert the Counter input to the RPM. I am using Rotary encoder has a 5V amplitude with 500 PPR. i am going to measure the Engine speed as a rpm.
    I am using third party hardware, from the hardware i can get the Count as well as Frequency also.
    Could you suggest to me...?  i looked out some disscussion in these forum but i cant able to understand.
    can you please explain with simple way....
    if you have any simulation send me....
    Regards,
    Balaji DP

    Hi balaji,
    [email protected] wrote:
    ...I am using third party hardware, from the hardware i can get the Count as well as Frequency also.
    If you're able to read frequency as X pulses/sec(?) that seems to convert RPM as follows:
    X (pulse/sec) * 1/500 (rev/pulse) * 60 (sec/min) = X * 60/500 RPM (???)
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

Maybe you are looking for