Log data when signal is for at least one hour stable

All, can you please help me out with the following;
I have data to log when one signal is for at least one hour between two values. If this is the case, all the data can be kept. If this is not the case, let's say after 30min that one signal is out of spec, previous measured data in those 30min may not be displayed in the log file. Does somebody have a solution for this?
Thanks in advance
Solved!
Go to Solution.

So, it means, you want to log data if pressure is between 8 and 12 bar. Else, discard data and continue monitoring of data. Monitor only value
Right?
you can compare the pressure value using an In Range function and put a case structure to log data only when the value is in range. use timestamps to know when the data was in range. so the file only contains data when the pressure is in range
Or, if you want to log data ONLY IF the presusre was between 8 and 12 bar AND for an hour or more, then, put a timer to check time elapsed since the last value change and then log if timer has counted an hour. Then instead of inrange, use a shift register to see the last value which changed and then turn on a timer. When the value changed next, update the shift register. when the timer is up, reset the timer and log data.
I will take time to put these two logics on code and post. instead, you can make a code of either of the two options and post back. we can review your progress.  
Almost forgot two questions: How are you reading the data? hardware used and data type? which file format do you plan to use?

Similar Messages

  • Ever since I got the new update 5.1 my iPod's been dying faster. It used to last for at least 3 hours, now it won't even last one hour and dies for no reason(even when it's in sleep mode, and not in use) What's wrong with it? Is it the update? lagging too

    Ever since I got the new update 5.1 my iPod's been dying faster, even after I charge it. It used to last for at least 3 hours, now it won't even last one hour and dies for no reason (even when it's in sleep mode, and not in use) What's wrong with it? Is it the update? It's lagging as well..

    Some Users have Reported that a  Restore as New  has helped Resolve issues...
    Backup and Set Up as New Device
    http://support.apple.com/kb/HT4137

  • My iPhone 3GS battery loses at least 30% charge when off for at least an hour

    My iPhone 3GS battery loses at least 30% charge when off for at least an hour, I took it in to an apple retail store at the end of 2010 and they told me it was fine but advised I restore and set up as a new iPhone which I did, it got better for about a month then went back to normal losing battery. I have no hardware coverage left and my specs are: iPhone 3GS 16gb  IOS 4.3.3 white. I have had it since December 2009.

    I'm afraid I don't. I don't know if the phone is still within warranty. I don't know which country you are in. I don't know what third party repair companies charge where you are.
    Hang on - I do know one thing: if your phone is still covered by warranty - it's free!

  • My IPhone has been charged for at least 3 hours still showing the low battery icon and not turning on, normally when my phone is in low battery it will automatically pop up the apple icon but now it's not turning on :( someone pleaseeeee help me!

    My IPhone has been charged for at least 3 hours still showing the low battery icon and not turning on, normally when my phone is in low battery it will automatically pop up the apple icon but now it's not turning on someone pleaseeeee help me! Thanks!

    Hi Windy08,
    If you are having an issue with charging your iPhone, you may want to start your troubleshooting with the steps in this article -
    If you can’t charge your iPhone, iPad, or iPod touch - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Check if a license exists for at least one day in each month

    How to check if a license exists for at least one day in each month for a given period ? Example : If we have a review period from Jan 25 2009 to Aug 15 2009. How to check if there is license for at lease one day in every month.

    Hi,
    Welcome to the forum!
    (1) construct a table or result set that has one row per month in the review period. [This thread|http://forums.oracle.com/forums/thread.jspa?messageID=3651350?] has a similar problem.
    (2) outer-join your actual data to that result set
    (3) use the aggreagate COUNT (x) function (where x is some column from your table) to see if there were any matches in each month. GROUP BY months.
    For a more specific answser, ask a more specific question.
    Post a little sample data (CREATE TABLE and INSERT statements), and the results you want from that data.
    It never hurts to say what version of Oracle you're using.
    Edited by: Frank Kulash on Jul 28, 2009 1:54 PM
    Maybe something like:
    WITH  all_months  AS
         SELECT     ADD_MONTHS ( TRUNC ( &period_begin_date
                                , 'MM'
                      , LEVEL - 1
                      )         AS month_date
         FROM    dual
         CONNECT BY  LEVEL <= 1 + CEIL ( MONTHS_BETWEEN ( &period_end_date
                                                          , &period_begin_date
    SELECT       m.month_date
    ,       CASE  COUNT (l.license_date)
                WHEN  0  THEN  'Nothing this month'
                          ELSE  'Some licenses issued'
           END     AS summary_txt
    FROM            all_months     m
    LEFT OUTER JOIN     license_table     l     ON  m.month_date     = TRUNC (l.license_date, 'MM')
                                     AND l.license_date     BETWEEN  &period_begin_date
                                                AND      &period_end_date
    GROUP BY  m.month_date
    ORDER BY  m.month_date
    ;Untested

  • Time Machine Backup "cleaning up" has been going on for at least 6 hours? is that normal?

    My Operating System crashed 3 nights ago, the Apple Store reinstalled my OS which is the current 10.8.2.  My last backup to my 1 TB external hard drive was on December 10th.  I left my computer on last night to do a "back up" and it has been going on for 14 hours now.  Currently when i woke up this morning it says.  "Cleaning up" and it has been on that status for at least 6 hours.  When I click on my time machine it shows that my current backup was from last night.  Should I stop the "Cleaning up" phase or just let it continue to take FOREVER!  I dont know why it would take so long, I havent added a bunch of files or anything since my last back up a few weeks ago.
    Thanks for your help!

    If you have more than one user account, these instructions must be carried out as an administrator.
    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.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Enter the word "Starting" (without the quotes) in the String Matching text field. You should now see log messages with the words "Starting * backup," where * represents any of the words "automatic," "manual," or "standard." Note the timestamp of the last such message. Clear the text field and scroll back in the log to that time. Select the messages timestamped from then until the end of the backup, or the end of the log if that's not clear. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message.
    If there are runs of repeated messages, post only one example of each. Don't post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Some personal information, such as the names of your files, may be included — anonymize before posting.

  • Report of Total GR qty/IR qty,date when last GR was passed (latest one)

    Dear all
           Kindly let me know how to get the below report using input of PO no:
    Report of Total GR qty,IR qty,date when last GR was passed (latest one),date when last IR was passed (latest one)
    Standard t.code such as ME2n.me2l is not giving the above report.

    Dear
    Try ME80FN and ME2N/L with the setting with Selection Parameters
    regds
    dev...!

  • So i have an apple ipod touch 1st generation and it is not charging! It shows the charging sign but its taking a really long time to charge. Ive had it charging for at least 3 hours and it still says under 20% so can someone help me figure this out??

    So i have an apple ipod touch 1st generation and it is not charging! It shows the charging sign but its taking a really long time to charge. Ive had it charging for at least 3 hours and it still says under 20% so can someone help me figure this out??

    Not Charge
    - See:      
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    - Try another cable.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar 

  • My iphone4 keeps shutting off on its own every 24-36 hours and I can't switch it back on unless I plug it into the charger n charge it. I didn't charge the iPhone for a long period the first time I used it and I charge it every night for at least 7 hours.

    My iPhone 4 shuts down automatically and I can't turn it back on unless I plug it into charger and charge it. This happens spontaneously. I didn't charge it for a long time before using it for the first time and I charge it nightly for at least 7 hours. What is the problem?

    My iPhone 4 shuts down automatically and I can't turn it back on unless I plug it into charger and charge it. This happens spontaneously. I didn't charge it for a long time before using it for the first time and I charge it nightly for at least 7 hours. What is the problem?

  • HT4623 how do i stop the ios 7 update; "verifying update" has been spinning for at least 7 hours

    how do i stop the ios 7 update;"verifying update" has been spinning for at least 7 hours.

    tanyanakai wrote:
    How do you get the ios 7 update for ipod touch 4? 
    You cannot. the iPod Touch 4th Gen is not compatible with iOS 7.
    See the very end of this link for Compatible Devices and Features...
    http://www.apple.com/ios/ios7/features/

  • Migration assistant has been stuck for at least 5 hours

    I was transferring files on my G4 from 10.4.11 to my new 10.5 leopard and everything seemed ok.
    Now, it's been stuck showing "transferring files from User Mary X-   1 hour, 13 minutes remaining"
    and it's ben like that for at least 5 hours
    anything I can/should do to help it along?

    To be clear, it has said, "1 hr. 13 mins. to go" for the last 5+ hours ??__ indicating nothing is happening ??
    Is this correct ??_____
    "Different drives in the same Mac "
    Are they on the same ribbon cable, as master and slave / cable select ?? ______  
    Are they jumpered properly for each position ??______
    Or do you have some other arrangement like one of the plugged into a card in a card slot ??______

  • Macbook air won't start without charger if powered off for at least 5 hours.

    Hi,
    I have macbook air and it doesn't turn on if I shutdown it for at least 5 hours and next time I need to start i have to plug the charger just one time after that It starts and can be used for whole day.
    I am not sure what the problem is I charger battery to 90% before shutting it down.
    Yes my battery cycles are too much. Details are :
      Health Information:     Battery cycles : 785
                                           Condition : Normal

    Hi there abhishekgahlot,
    You may want to try resetting the SMC as an initial troubleshooting step. Additionally, take a look at the battery condition. The articles below have more information.
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    OS X Mavericks: Battery conditions
    http://support.apple.com/kb/PH14197
    Note: The information in the article above applies to OS X 10.8 as well.
    -Griff W.

  • Whilst downloading the update to my ipad a screen is up ..the power plug a small arrow above and the itunes logo above that.. it has been there for at least 2 hours... why?? ..or what to do??

    whilst downloading the update to my ipad a screen is up ..the power plug a small arrow above and the itunes logo above that.. it has been there for at least 2 hours... why?? ..or what to do??

    wellllll.... it was fixed in 15-20 min at the store....  using the same method you suggested ...go figure....  perhaps my wi-fi was a bit wobbly.... who knows....   most of the info was restored through the cloud...  lost my pics, but thats not crucial......they are all elswhere...   so your tip was spot on, and i appreciate you help.... thanks again  !!

  • I am trying to copy more or less 30G from my MacbookPro to an external hard drive and it is stuck in the "preparing to copy" step. But that for more than one hour. What should I do to make it faster? Thanks a lot in advance!

    I am trying to copy more or less 30G from my MacbookPro to an external hard drive and it is stuck in the "preparing to copy" step. But that for more than one hour. What should I do to make it faster? Thanks a lot in advance!

    Thanks Shootist007, by blockd files I mean files that I have changed to blocked and when I tried to move then for the first time, I had to unblock again. I am trying to backup my pictures, my songs and other files like word documents and excel tables. First I put all of them as blocked, what caused the first problems on trying to move them. Then, I've unchecked the block option and if I try to move one by one, there is no problem. The issue is to move all together, because it gets stuck in the preparing to copy files step. Anyway, if I cannot do all by once, I'll do it one by one, event though that was not suposed to happen if we are talking about technology, right? Anyway, I thank you again for trying to help me!

  • G5 idle for more than one hour

    when i leave my G5 idle for more than one hour, when i enter my password, the system locks. i have to shut off the computer and turn it on again...

    Try restoring the iPod to factory settings/new iPod.
    If still problem then I would make an appointment at the Genius Bar of an Apple store and hear what they have to say.
    If a bad battery:
    Apple will replace it for $79
    A third-party place is less expensive. Here is one:
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace it yourself.
    iPod Touch Repair – iFixit

Maybe you are looking for

  • In popup step how do I get the "text on the button" in the report rather than button index?

    (1) How do I configure the POPUP step in "SEQ MAIN.seq" to execute the second step (IS OUT PUT IS 20?) in "SEQ 1.seq" when "IS OUT PUT IS 20?" button hit and execute the third step (IS OUT PUT IS 30?) in "SEQ 1.seq" when "IS OUT PUT IS 30?" button hi

  • To Update Custom field in mch1 table through MIGO Tcode

    Dear champs, I have added one custom field in mch1 table ( date ). Now , In MIGO Tcode when i am doing posting, MCH1 table is also updated. I want to know how to update my custom field in mch1 table at the time of posting. Please tell me where to wri

  • Hp 2211x monitor

    my hp 2211x monitor does notget input signal and constantly goes to sleep ,how do i fix?

  • Out standing expencess posting and clearing

    Hi, Can any one please give me the posting of “out standing payments and its clearing”. I mean to ask “I have to post outstanding salaries and I have to clear it later” can you please give me the transaction codes for these two activities. 1.     tra

  • Transaction FOTV

    Hello gurus, I am executing the transaction FOTV in order to obtain the VAT declaration of Belgium. In that transaction I can see that exist three options: - Display data only - Test transfer of returns. - Send returns directly The first option is cl