Changing time to the number of cycle

Dear Friends,
I will appreciate if anyone helps me.
I am trying to convert time to no. of cycle in my program. Actually I am reading temperature from externel device. I put my program in a loop and I can see temperature chart which varies with time. how can I get a out put of time from wavechart output and calculate it to no. of cycle?
I know the frequency of my external device which sends temperature to labview.
Regards,
Mehdi
Attachments:
Panel.JPG ‏178 KB
front panel.JPG ‏193 KB

In general, if you know the time the first sample was taken and the time between samples, a little simple math will tell you the time each sample was taken:
time_for_sample_n = start_time + (time_between_samples * n)
Given this, you can easily calculate an array of times for each sample, that you can then use for the x-axis of a graph.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • How to count the number of cycles in sine wave

    Hi,
    I am new to Labview.  I have labview 8.2 version and my dataacquisition is NIDAQPAD6015.  I could write a program to generate a sine wave of desired frequency through simulate signal. My question is how do i measure the number of cycles for this sine wave as soon as I run the program. Hope my question  is clear.
    Ravi Mokirala

    To find the offset (which in this case is the Y value midpoint around which the sine wave is symetrical):
    Capture more than one cycle.  Find the min and max values.  Subtract Min from Max and divide by 2.  Then subtract this result from the Max value (or add the result to the Min value).  This is the offset.
    To count the number of cycles where the offset is unknown, just use the first data point value as a reference.  If the next data point is more positive, then count the number of times that the first data point is repeated and the next data point is more positive.  Of course with DBL data type, you probably would not get the exact same value as the first data point, so you need to use In Range with a very tiny limit.  It all depends on your signal amplitude, frequency, and sampling rate.
    Example:  Lets say your first data point value is 0.5 and the 2nd point is 0.55.  You need to look for another value that is between 0.48 and 0.52.  Then read the very next data point value.  If it is greater than the previous value, add one to the cycle count.  If it is less than, you are at half a cycle, do not add to the count.
    - tbob
    Inventor of the WORM Global

  • How to improve the number of cycles on my MBA

    What is better to charge you MacbookAir every time you can find power or just when the battery is totally discharged? I need to know how to improve the cycles of my battery

    I would really like to avoid reducing the number of cycles
    Actually... you probably want to reduce the number of cycles, not "avoid" reducing the number of cycles.   As CW mentioned, you probably don't need to worry too much about your cycles and you should just generally use your MacBook Air as you need to.  However, if you want to prolong your battery life, you should run it plugged in the majority of the time.  You should not run the battery all the way down before recharging it again.  It is necessary to do this when calibrating the battery, but this is something which only needs to be done ever few months:
    http://support.apple.com/kb/ht1490
    The more you run on battery, the more your cycle count will go up.  In general, going through a cycle  or so a week is a good minimum.  A cycle is a full discharge and then full charge of your battery.  So... if your battery is at 100% and you let it discharge to 0% and then fully charge it back up to 100% again, that would be once cycle.  Likewise, partial discharge & recharges count as partial cycles.  For example, if your battery were at 100% and you let it discharge to 90% and then recharged it back up to 100%, that would be 1/10th of a cycle.  You would need to do that 10 times in order for it to count as one cycle.  So, you can see that you will increase your cycle count much faster the more you allow your system to run on battery before recharging it.
    These are really just general guidelines.  There may be times when you're just not by a power outlet so you have no choice but to run your battery down.  Regularly doing this will shorten the overall life of your battery.  But, once in a while will have little impact. 
    Here are Apple's guidelines for battery care:
    http://www.apple.com/batteries/notebooks.html

  • DropDownByKey display changes depending in the number of records

    Hello,
    I've noticed that the UI component dropdownbyKey change depending in the number of items it has, with few records it appears like a normal dropdown box and with a huge amounts of records it appears like a combobox (table). This is a great feature.
    However, I want to know the cause of this? What is the limit of records that causes this behaviour. It's possible to assign the way I want to display it?
    Regards
    SU

    hi soauniverse ,
                                  For what huge amount of records you are able to see the drop by key like a  combo box (table)...... like what is the numerical value of the huge amount , that behaviour u r able to see .
    if the values are less than 30 then we go for svs , for values more than 30 and less than 300 we use EVS and for value or record more than 300 we go for OVS .
    if you have done svs code for a feild and bind that value to the DD by key it remains to be normal Drop down by key and if the same field is bound to an input feild then the EVS will come .
    so what have you done can i know in detail please .....
    Please paste the scree shot of the UI (that is the combo box) .......

  • Is there a way to cycle a while loop on its own and only controlled by the number of cycles?

    Hello everyone, 
    Newcomer here, recenlty just took core 1 and 2 the past couple of months
    is there a way to cycle my while loop so that the daq assist receives the same outputs from the list box table? So pretty much I need the VI to be able to read the voltages and time values from the list box and then execute them, I've manage to do this, but then I need it to stop for a given time and then execute again the same voltages. This would be controlled by a control for "number of cycles" input. 
    Can someone tell me why my "Emergency Stop" button doesn't stop the VI?
    Why is my data logging only outputing one result if I have it to read ever min?
    My wave form graph isnt plotting the temperature results, does it have somthing to do with the while loop?
    I know this is a lot of questions, I'm just trying to solve this and learn from it.
    Attachments:
    TEST RIG 11 10-28-13.vi ‏298 KB

    You took core 1 and 2!!!  Please tell me NI didn't teach it.  I'm not trying to harp on you too bad because I think the instructor is more to blame.  You have many wires going the wrong direction, multple loops doing nothing, and one loop that will never stop so even if all the others did there would be no way to stop your program, a Stop button that is read only once at the start of the application and then is never read again (so stop will never work).  You have the inner loop running forever, but even if it did stop it would run the outer loop forever, your enums should be typedefed, uninitialized shift registers when not needed, dynamic data types, far too many express VIs...ouch.
    To answer your question.  If you have a while loop that needs to run 5 times, why not use a for loop? Then wire a 5 to the N terminal.  If you do have to use a while loop for what ever reason, use the i terminal as a condition to stop.  It will start at 0 and count up so a value of 4 means it will be executing the 5 time.  If the value equals 5 then stop.  Get the Array size of the Listbox and set your for loop to run for each item.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Alert about the loading time & Restrict the number of the rows retrieved

    Hi everybody, maybe the question is stupid, but I didn't find yet an answer...
    I'm using BIP 10.1.3.4.1
    Because I have many reports with a huge amount of data to display (in HTML format) and customers once clicked on "View" have to wait a lot of time, they asked me if there is the possibility to do the following things:
    1. restrict the number of the rows retrieved (this for each report); this request has to be dynamic (different rows' number for each report and for each user); so, I can't modify the query into the data template in order to retrieve a fixed number of rows;
    2. show an alert who says for example " The data loading will take 5 minutes. Do you want to proceed ? YES - NO" This to inform the users how much time they have to wait if they click on Yes.
    I checked under the Administrator TAB...but I didn't find nothing "native" about the two questions above.....
    So, I ask you if there is a way to activate these features (if they exist "native") or a workaround to implement what I described above.
    Any help will be appreciated.
    Thanks in advance
    Alex

    Hi Vetsrini, thanks for your answer.....but what does it mean ? There are no solutions for my requests ? I remember that Discoverer had the possibility to have an alert as I would like to have with BI Publisher and there was the possibility to choose how many rows it was required from the customer....Is it possible that with BIP is not applicable ?
    Have a good day
    Alex

  • I just updated to ios6 and now I have a hard time reading the number pad. Can I get the colors to go back to the way they were before? Or can I get rid of ios6?

    Can I change the colors on the number pad back to what they were before the update?

    Hi Idreier,
    I'd try starting Firefox in [[Safe Mode]]. If you don't have the issue while all of your add-ons, extensions, and themes are disabled, you can try adding them back in one by one until you find the culprit.
    Hopefully this helps!

  • Can I replace several elements of an array within one time? The number of elements are not fixed

    Hi all,
    I want to replace some elements of a 2D array, but the number of elements are not known beforehand. I dont want to do it with a loop, which may slow down the speed, and the update of elements will not happen simultaneously.  The indexes of elements to be updated are not continuous. I wonder if there is a way to do that efficiently? Do I have to programme it in LabWindows/CVI? Thank you.
    Best wishes,
    Bo
    My blog Let's LabVIEW.

    Use the replace elements function. For non-continuous replacements  of of multiple elements you would nee to iterate at least the number of continous pieces.
    For example:
    1,2,3,4,5,6,7,8,9
    Replace elements 1,2,5,6,8
    You would need 3 iterations in which you can replace (1,2), (5,6) and (8).
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • The Change time of the file is getting modified when no changes are made to the file content

    While doing save operation of a MS-WORD file, (in my example "1M.doc" ) with client (Windows 8) and server(either Win 2008 R2 or Win2012 R2). Observing the following scenario.
     After Renames are done(eg, xx.tmp renamed to 1M.doc) , all the file handles are being closed one by one.
    When the xx.tmp file is closed, immediately followed by Create of 1M.doc, the LastWrite time values between Close and Create are same but LastChanged time values are different. The LastChanged and LastWrite times are noted from
    the Close Response and Create Response packets.
    No modification is done on the file between this last close and next create. So, why LastChanged time values are different for the file? We are observing this almost everytime with Win8- Win2k8R2/Win2012R2, but not observed
    till now with Win8-Win2012.

    Hi,
    Is only word files have the issue? You could refer to the articles below to troubleshoot the issue:
    The "Modified time" file attribute of a registry hive file is updated when an application loads and then unloads the registry hive file without making any changes on a computer that is running Windows Server 2008 R2 or Windows 7
    http://support.microsoft.com/kb/983544
    File “Date modified” property are not updating while modifying a file without closing it.
    http://blogs.technet.com/b/asiasupp/archive/2010/12/14/file-date-modified-property-are-not-updating-while-modifying-a-file-without-closing-it.aspx
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Counting the number of cycles

    I have a program that runs until the stop button is pressed taking readings every xx seconds. I would like to display a number that counts haw many readings have been taken. I see that there is an accumulator that will add 1 to a number, but how do I start it off and keep it going?
    Thanks, Ringo

    Either use a shift register initialized to zero or wire the increment function to the iteration terminal of your while loop. I've attached a picture that shows both methods.
    Attachments:
    cycle_count.jpg ‏8 KB

  • Repeating numbers in a sequence as n=many times as the number

    I gave myself a small puzzle, to try to get the numbers 1-5 repeating as many times as their values: 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5
    My first attempt was quite simple. But i do not understand the results. Can someone explain to me why these are the results?
    SQL> SELECT
      2     Rownum,
      3     A
      4  FROM
      5     (SELECT Rownum A FROM Dual CONNECT BY Rownum <= 5)
      6  CONNECT BY
      7     Rownum <= A;
        ROWNUM          A
             1          1
             2          2
             3          3
             4          4
             5          5
             6          2
             7          3
             8          4
             9          5
    9 rows selected.

    Another way, probably what i was originally trying to figure out. It's backwards, but it relies on rownum, and the complete processing of the TABLE:
    SQL> SELECT
      2     A
      3  FROM
      4     (SELECT Rownum A FROM Dual CONNECT BY Rownum <= 5)
      5  CONNECT BY
      6     Rownum BETWEEN  ((A * A) - A) /2 + 1 AND ((A * A) + A) / 2 - 1;
             A
             1
             2
             2
             3
             3
             3
             4
             4
             4
             4
             5
             5
             5
             5
             5
    15 rows selected.
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • HT201441 what if i cant reach the previous owner of the iphone coz i just bought it on a buy, swap and sell site? i tried to contact the seller several times but the number he is using is not active anymore. im pretty sure that the phone is not stolen

    hello there peeps, i cant use the iphone that i bought from a local buy, swap and sell site. the phone was restored to factory setting and i used it for 4 months but after that a message appeared and said that this phone has been lost. i tried to restore it again but i need the previous owner's apple id and password.
    i tried to contact him but i cannot reach him already, i tried reaching him on the sell site's page but still no response. i am pretty sure that the phone is not stolen coz i was present when he restore it to its factory setting. i just wanna ask you people what else can i do with it to be activated again, i paid $200 for this iphone 4 and dont just want it to go down to the drain. PLEASE HELP.. thank you

    onyok13 wrote:
    ... i cant use the iphone that i bought from a local buy, swap and sell site.... i just wanna ask you people what else can i do with it to be activated again,
    The Apple ID and Password that was Originally used to Activate the iDevice is required
    If you do not have that information you will not be able to use the Device.
    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818

  • Is there a way of resizing the contents of multiple bounding boxes at the same time using the number fields in the tool bar?

    I'musing cs6 and need to resize an image and two text boxes to a specific pixel width.
    I try selecting all of the boxes and punching in 960 px in the resizing field in the tool bar but only the bounding boxes and not their contents get resized...

    Use the horizontal scale field (and include the units) rather than the width field.

  • HT1689 How can I extend the number of times my phone rings before going to answerphone

    How can I extend the number of times my Iphone 4s rings before it goes to answerphone

    Call you carrier and ask them how you can change this.  The number of rings before voicemail kicks in is set by your carrier.  Some have the option to do it from your phone if you know the sequence of codes to send, but you need to ask your own carrier how to do it for their system.

  • Finder crash & battery number of cycles error?

    Hello everyone,
    First of all, this is about my Macbook Air mid2011 13inch.
    I started to use this Macbook since beginning of August in 2011.
    Begin of September 2014, my battery number of cycli was 1159
    I use this Macbook like almost everyday since I bought it and even when I don't use it, I keep running it like 24/7.
    Calculation: Beginning of August 2011 - Begin of September 2014 = approx. 36 months = 1095 days
    Battery number of cycli in 1095 days = 1159
    Each day was around +1,05 cycli.
    But here is the problem:
    My battery was defect after reach the 1000 cycli, the Macbook was out of battery every 1 hour instead of 7 hour.
    I went to the AppleStore on 10th September to change my Battery.
    The employee has replaced a new battery for me. The battery number of cycli of my Macbook Air went to 1.
    That's a good news.. BUT after the replacement, I noticed that there are 2 problems with my Macebook Air.
    1. My Finder keep crashing all the time!
    2. I have only used 17 days after the battery replacement and the number of cycli is already 45!
    Each day is now around +2.64 cycli.
    I suspect that this Macbook wil reach number of cycli 1000 within 13 months.. why? 13 months = 365/12*13 = 395 days
    395 days * 2.64 cycli a day = 1042 cycli

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    For this step, the title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter the name of the crashed application or process. For example, if iTunes crashed, you would enter "iTunes" (without the quotes.)
    Each message in the log begins with the date and time when it was entered. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ User Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of crash reports. The name of each report starts with the name of the process, and ends with ".crash". Select the most recent report related to the process in question. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    If you don't see any reports listed, but you know there was a crash, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

Maybe you are looking for

  • How to do a POST on HttpsTunneling(referring javawldtip111)

    I have used jsse for https (thur SSL) communication. It suits with our requiremets and we have done with the work and tested successfully. Requiremens ARE, 1.Writing some Message to the webserver(IIS),      and ASP page which resides on IIS will rece

  • Has anyone encountered problem with VIRSA_CC_ACTUSAGE missing some data?

    Has anyone encountered a problem where the VIRSA_CC_ACTUSAGE table is missing some transaction activity? We have a situation where the monthly ST03 file shows that a user executed the MI31 transaction some time back in August.  However our ACTUSAGE t

  • Request Message Mapping Problem

    Hello friends, I am working in XI 2.0 and my senario is sap R/3->XI->File Adapter I take an idoc from the SAP R/3 system. and that comes properly to XI. I already created Data type, Message Type, Interface Type, Message Mapping and Interface Mapping

  • How to insert the new row after current row in RowIterator - Steve Muench

    Hi, Our client wants the new row to be added after current row on the front end instead of before current row. we were using "new JUActionBinding(this,iterBinding,JUActionBinding.ACTION_CREATE_INSERT_ROW);" this code inserts the new row after current

  • RE:BAPI for Create Material Serial Number

    Can anybody please suggest me any function module or BAPI available to Create Material Serial Number (transaction IQ04), and later Change Material Serial Number (transaction IQ02) for updating its class type, class and characteristic description?