Confusion in tracking time difference in APEX

Hi,
I am using the following code to track the the time difference in APEX:
<code>
select nvl(decode(trunc(max(end_time)-min(start_time)),0,'',null,'',trunc(max(end_time)-min(start_time))||' Days ') ||
decode(trunc(mod((max(end_time)-min(start_time))*24,24)),0,'',null,'',trunc(mod((max(end_time)-min(start_time))*24,24))||' Hours ')||
decode(trunc(mod((max(end_time)-min(start_time))*24*60,60)),0,'',null,'',trunc(mod((max(end_time)-min(start_time))*24*60,60))||' Minutes'),'No End Time') as time
from xyz
where page_num between 200 and 207
and id = :APP_USER;
</code>
The above code works fine in DB 11.1 version, when I migrated the project to DB 11.2, the above code doesn't give me the exact values.
Suppose if the actual time taken was 4 minutes, it is displayed as 2 hours 16 mins in DB 11.2 version.
Can someone help me to fix this?

>
Please update your forum profile with a real handle instead of "935799".
I am using the following code to track the the time difference in APEX:
&lt;code&gt;It's <tt>\</tt> not <tt>&lt;code&gt;</tt>:select nvl(decode(trunc(max(end_time)-min(start_time)),0,'',null,'',trunc(max(end_time)-min(start_time))||' Days ') ||
decode(trunc(mod((max(end_time)-min(start_time))*24,24)),0,'',null,'',trunc(mod((max(end_time)-min(start_time))*24,24))||' Hours ')||
decode(trunc(mod((max(end_time)-min(start_time))*24*60,60)),0,'',null,'',trunc(mod((max(end_time)-min(start_time))*24*60,60))||' Minutes'),'No End Time') as time
from xyz
where page_num between 200 and 207
and id = :APP_USER;
The above code works fine in DB 11.1 version, when I migrated the project to DB 11.2, the above code doesn't give me the exact values.
Suppose if the actual time taken was 4 minutes, it is displayed as 2 hours 16 mins in DB 11.2 version.
I think you must be missing something. Is the data exactly the same? Are the database/host configured exactly the same (clock settings; timezones etc)?
Create a reproducible test case of the form:with xyz as (
select &lt;data that reproduces the problem&gt; start_time, &lt;data that reproduces the problem&gt; end_time from dual
union all
select &lt;data that reproduces the problem&gt; start_time, &lt;data that reproduces the problem&gt; end_time from dual
union all
select nvl(decode(trunc(max(end_time)-min(start_time)),0,'',null,'',trunc(max(end_time)-min(start_time))||' Days ') ||
decode(trunc(mod((max(end_time)-min(start_time))*24,24)),0,'',null,'',trunc(mod((max(end_time)-min(start_time))*24,24))||' Hours ')||
decode(trunc(mod((max(end_time)-min(start_time))*24*60,60)),0,'',null,'',trunc(mod((max(end_time)-min(start_time))*24*60,60))||' Minutes'),'No End Time') as time
from xyz

Similar Messages

  • Time Difference Span Over Midnight

    I am trying to calculate time difference for things that happen before and after midnight...
    Example - Call Time of 23:58:22 and an Arrival Time of 00:02:50...
    Gets all screwed up with <cfset response = DateDiff("s", calltime,artime)>
    I need the final value in seconds...
    Can't seem to figure this one out...
    Thanx,
    Merle

    I'm going to try elaborate further and add some coding for any help to others...
    First things first... CFFORM
    Time Vaildation Errors on the seconds...
    <cfinput type="Text" name="WhateverTime" required="Yes" message="Please Enter Time (HH:MM:SS)" size=6 validate="time">
    It will not take 26:11:22 nor will it take 13:76:33 - but it would take 17:55:77 (obviously 77 is no good)
    This will accept the entry but error on Database Insertion/Validation...
    Here is code to force appropriate time entry - to avoid the user error - data entry problem...
    It forces only good numbers...
    <cfselect name="aiqtimeh" class=verd8>
       <option value="00">00</option>
       <option value="01">01</option>
       <option value="02">02</option>
       <option value="03">03</option>
       <option value="04">04</option>
       <option value="05">05</option>
       <option value="06">06</option>
       <option value="07">07</option>
       <option value="08">08</option>
       <option value="09">09</option>
       <option value="10">10</option>
       <option value="11">11</option>
       <option value="12">12</option>
       <option value="13">13</option>
       <option value="14">14</option>
       <option value="15">15</option>
       <option value="16">16</option>
       <option value="17">17</option>
       <option value="18">18</option>
       <option value="19">19</option>
       <option value="20">20</option>
       <option value="21">21</option>
       <option value="22">22</option>
       <option value="23">23</option>
    </cfselect> :
    <cfselect name="aiqtimem" class=verd8>
       <option value="00">00</option>
       <option value="01">01</option>
       <option value="02">02</option>
       <option value="03">03</option>
       <option value="04">04</option>
       <option value="05">05</option>
       <option value="06">06</option>
       <option value="07">07</option>
       <option value="08">08</option>
       <option value="09">09</option>
       <option value="10">10</option>
       <option value="11">11</option>
       <option value="12">12</option>
       <option value="13">13</option>
       <option value="14">14</option>
       <option value="15">15</option>
       <option value="16">16</option>
       <option value="17">17</option>
       <option value="18">18</option>
       <option value="19">19</option>
       <option value="20">20</option>
       <option value="21">21</option>
       <option value="22">22</option>
       <option value="23">23</option>
       <option value="24">24</option>
       <option value="25">25</option>
       <option value="26">26</option>
       <option value="27">27</option>
       <option value="28">28</option>
       <option value="29">29</option>
       <option value="30">30</option>
       <option value="31">31</option>
       <option value="32">32</option>
       <option value="33">33</option>
       <option value="34">34</option>
       <option value="35">35</option>
       <option value="36">36</option>
       <option value="37">37</option>
       <option value="38">38</option>
       <option value="39">39</option>
       <option value="40">40</option>
       <option value="41">41</option>
       <option value="42">42</option>
       <option value="43">43</option>
       <option value="44">44</option>
       <option value="45">45</option>
       <option value="46">46</option>
       <option value="47">47</option>
       <option value="48">48</option>
       <option value="49">49</option>
       <option value="50">50</option>
       <option value="51">51</option>
       <option value="52">52</option>
       <option value="53">53</option>
       <option value="54">54</option>
       <option value="55">55</option>
       <option value="56">56</option>
       <option value="57">57</option>
       <option value="58">58</option>
       <option value="59">59</option>  
    </cfselect> :
    <cfselect name="aiqtimes" class=verd8>
       <option value="00">00</option>
       <option value="01">01</option>
       <option value="02">02</option>
       <option value="03">03</option>
       <option value="04">04</option>
       <option value="05">05</option>
       <option value="06">06</option>
       <option value="07">07</option>
       <option value="08">08</option>
       <option value="09">09</option>
       <option value="10">10</option>
       <option value="11">11</option>
       <option value="12">12</option>
       <option value="13">13</option>
       <option value="14">14</option>
       <option value="15">15</option>
       <option value="16">16</option>
       <option value="17">17</option>
       <option value="18">18</option>
       <option value="19">19</option>
       <option value="20">20</option>
       <option value="21">21</option>
       <option value="22">22</option>
       <option value="23">23</option>
       <option value="24">24</option>
       <option value="25">25</option>
       <option value="26">26</option>
       <option value="27">27</option>
       <option value="28">28</option>
       <option value="29">29</option>
       <option value="30">30</option>
       <option value="31">31</option>
       <option value="32">32</option>
       <option value="33">33</option>
       <option value="34">34</option>
       <option value="35">35</option>
       <option value="36">36</option>
       <option value="37">37</option>
       <option value="38">38</option>
       <option value="39">39</option>
       <option value="40">40</option>
       <option value="41">41</option>
       <option value="42">42</option>
       <option value="43">43</option>
       <option value="44">44</option>
       <option value="45">45</option>
       <option value="46">46</option>
       <option value="47">47</option>
       <option value="48">48</option>
       <option value="49">49</option>
       <option value="50">50</option>
       <option value="51">51</option>
       <option value="52">52</option>
       <option value="53">53</option>
       <option value="54">54</option>
       <option value="55">55</option>
       <option value="56">56</option>
       <option value="57">57</option>
       <option value="58">58</option>
       <option value="59">59</option>  
    </cfselect>
    So here lies the orignal problem...
    Data entry for the report is by hand...
    So it is not done automatically...
    A CreateTime Now() will not work for any entered time...
    As it might be a report from a week ago... Or as related spans across midnight...
    With this reporting system - there is no real chance of moving out further than 1 day - an incident is mitigated without spanning several days...
    If times are all lined up properly - and not spanning over midnight - no problem...
    ie:
    <cfif calltime LTE ConcTime>
    <cfset callduration = DateDiff("s", calltime,conctime)> - (forgive the different time notes calltime / enrtime - there are several that are being tracked/used)
    </cfif>
    <cfif calltime GTE ConcTime>
    <cfset sec=DateDiff("s",calltime,conctime)>
    <cfset days=int(sec/86400)>
    <cfset hours=int((sec-(days*86400))/3600)>
    <cfset minutes=int((sec-(days*86400)-(hours*3600))/60)>
    <cfset seconds=(sec-(days*86400)-(hours*3600)-(minutes*60))>
    <cfset callduration=((hours*60*60)+(minutes*60)+seconds)>
    </cfif>
    If Call time is Less ThanConclusion Time - Works fine... Dandy - if on same day...
    If not - GTE code is invoked...
    Took someone to figure out the math etc...
    From the Forum - if u are passing the dates...
    <cfset oneDateTime = createDateTime(2011,04,23,09,35,26)>
    <cfset twoDateTime = createDateTime(2011,04,24,12,15,13)>
    <cfoutput>#dateDiff("s",oneDateTime,twoDateTime)#</cfoutput>
    I'm not passing the dates - and would have to create the same
    <cfif calltime LTE ConcTime> etc...
    or
    <cfif calltime GTE ConcTime> etc...
    To start manipulating the date functions...
    So it is half a dozen of one or another...
    Hopefully this helps anyone with a similar problem...
    Merle

  • How to solve the problem with time difference?

    Hi,
    I work in India with time difference about 12 hours faster than American time.
    I put a validation in my application as follows:
    IF :P2_FINISH_DATE > SYSDATE THEN
    return false;
    else
    return true;
    end if;
    Today (13-Mar-09) at 9:30 am according to my system, I entered 13-Mar-09 as FINISH_DATE.
    But it returned false with an error message: "Finish date cannot be greater than system date."
    I changed my system time as 13-Mar-09, 9:30 pm. Then it accepted 13-Mar-09 as FINISH_DATE.
    How can I solve this issue.
    Would appreciate your help.
    Thanks,
    Guy

    Hi Arie,
    Thanks for the code.
    Your code works perfect in SQL Commands.
    But I don't know how to use the code in my application.
    Would appreciate if you can help me know the followings:
    - How to define two application processes -- before header and after submit (before any processing) – with the proper alter session statement.
    - How to use the APEX VPD field to do the same.
    FYI, I use the following codes:
    - For file upload
    If (:p2_SUBMIT_FILE is not null) then
    insert into PM_DOCUMENT (id, name, blob_content, mime_type, PROJECT_NAME, SUBMIT_TIME, SUBMITTED_BY)
    select id, :p2_SUBMIT_FILE, blob_content, mime_type, :P2_NAME, SYSDATE , :P2_UPDATED_BY
    from apex_application_files
    where NAME = :p2_SUBMIT_FILE;
    Delete from apex_application_files where name = :p2_SUBMIT_FILE;
    end if;
    - For Data entry validation
    IF :P2_START_DATE > :P2_FINISH_DATE
    OR :P2_START_DATE > :P2_TARGET_DATE
    OR :P2_FINISH_DATE > SYSDATE THEN
    return false;
    else
    return true;
    end if;
    Thanks,
    Guy

  • How to calculate the % of time difference between different state

    Hi there,
    The below query returns the follwoign outptut. I need to calculate the % of time period that a specific state ( state ex: open or closed or all report )exists.
    I have to find the time difference between the 2 states . How could I do that ?
    The first row shows null for the previous state . How could get actual previous state for the first row?
      SELECT si.station_name,
                    vppstation.avi_control_state_code.STATE_SHORT_NAME,
                    ash.state_id ,
                    lag(ash.state_id) over (order by ash.STATE_EFF_DATE desc) previous_state,
                    TO_NUMBER(TO_CHAR(ash.state_eff_date, 'SSSSS')) "periods in sec",
                    TO_CHAR(ash.state_eff_date, 'dd-mon-yyyy hh24:mi:ss am') "Date"
               from vppstation.avi_state_history ash
    left outer join vppstation.avi_control_state_code
                 on ash.state_id = vppstation.avi_control_state_code.state_id
    LEFT OUTER JOIN vpproadside.stations_installed si  
                 ON ash.station_id = si.station_id               
              where ash.state_eff_date >= to_date('28/02/2010', 'dd/mm/yyyy')
                and ash.state_eff_date <= to_date('03/03/2010', 'dd/mm/yyyy') ;
           group by si.station_name
                         ash.state_id
           order by ash.state_eff_date asc ;
    STATION_NAME                   STATE_SHORT_NAME STATE_ID               PREVIOUS_STATE         periods in sec         Date                   
    IRDNCST02                      Open             1                    NULL                  85166                  01-mar-2010 23:39:26 pm
    IRDNCST02                      All Report       3                      1                      85159                  01-mar-2010 23:39:19 pm
    IRDNCMT01                      Closed           2                      3                      81376                  01-mar-2010 22:36:16 pm
    IRDNCST02                      Open             1                      2                      78723                  01-mar-2010 21:52:03 pm
    IRDNCST02                      All Report       3                      1                      76023                  01-mar-2010 21:07:03 pm
    IRDNCMT01                      Open             1                      3                      55922                  01-mar-2010 15:32:02 pm
    IRDNCMT01                      Closed           2                      1                      54931                  01-mar-2010 15:15:31 pm
    IRDNCHA01                      Closed           2                      2                      41291                  01-mar-2010 11:28:11 am
    IRDNCAS01                      Open             1                      2                      38847                  01-mar-2010 10:47:27 am
    IRDNCAS01                      All Report       3                      1                      37947                  01-mar-2010 10:32:27 am
    IRDNCST02                      Open             1                      3                      35332                  01-mar-2010 09:48:52 am
    IRDNCST02                      All Report       3                      1                      32632                  01-mar-2010 09:03:52 am
    IRDNCST02                      Open             1                      3                      31502                  01-mar-2010 08:45:02 am
    IRDNCST02                      All Report       3                      1                      28802                  01-mar-2010 08:00:02 am
    IRDNCHI01                      Open             1                      3                      25368                  01-mar-2010 07:02:48 am
    IRDNCHI02                      Open             1                      1                      23939                  01-mar-2010 06:38:59 am
    IRDNCMT01                      Open             1                      1                      20696                  01-mar-2010 05:44:56 am
    IRDNCCH02                      Open             1                      1                      13452                  01-mar-2010 03:44:12 am
    Edited by: Indhu Ram on Mar 11, 2010 1:34 PM
    Edited by: Indhu Ram on Mar 11, 2010 2:20 PM

    If you look at the table which is output of the given query , there is column called "STATE_ID" It shows the current state ie open or closed or all report.
    The column 'PREVIOUS_STATE' shows the state before the current state. .In the table in 2nd row in previous_state column there is state_id = 1 (open)which is the state before 'all report state'

  • How to measure time difference between zero crossing of a sine wave and rise time of a pulse on a same graph?

    I have a 50Hz sine wave and a pulse signal on a same graph. The phase difference between two is between 0-90 degrees.
    Now I need to calculate the time difference between (when the sine wave crosses zero volts) and (when the pulse rises). The frequency will stay approximately same for both signals.
    The application is for a three phase generator. In simple words, when the time difference between the zero-crossing of sine wave and the pulse rises increases, that means that the load on the generator has increases.
    I am a beginner user of LabView (version 9, 2009), maybe it is a very simple problem but I've been pulling my hair out for the last few days and coudln't figure anything out. Any help would be greatly appreciated. I am using DAQ USB-6008 to measure these voltages and pulse from the generator and a sensor
    I have attached a jpg (a graph that i just made with excel to explain). The time 't' is what I am trying to measure
    Cheers
    Awais 
    Message Edited by awais.h on 03-30-2010 11:20 PM
    Message Edited by awais.h on 03-30-2010 11:21 PM
    Solved!
    Go to Solution.

    Hi
    Thanks for the code but I'm afraid it won't work. Like you said the probability of choosing a value that is on both graphs may not happen. This is something that I would like the code to do automatically.
    But I did use the previous code posted and made some modifications to it and it seems to work perfectly. Now the next thing is to be able to get just that one value that tells you the first time difference.
    Here is what I get using that code.
    As you can see from the t Values. I only need the one that is highlighted. If there is a way to filter out the rest it would be great.
    I was thinking of a while loop and as soon as the value is higher than 3E-5 it would store the number and stop the loop, but I'm not too familiar with arrays in labview.
    Here is the the code modified.
    As you can see, it wasn't that big of a modification and it still is your code.
    I will keep trying.
    Thanks for the help
    Attachments:
    FinalShockSpeed.vi ‏55 KB

  • Lost connection detection time difference

    Having a problem understanding why a broken JDBC connection is detected under Windows much quicker than it is under Linux.
    I have an process that opens a connection to MSSQL using JDBC, a Stored Procedure is then executed and the result set
    processed, this execute step is repeated every 60 seconds or so. If any exception is thrown then resources are closed, sleep
    for 60 seconds, the connection is reopened (if fails then sleeps and repeats), once reopened the process continues. There is logging throughout
    the above steps.
    On Windows Vista 64bit Sun Java platform the process runs fine, if I deliberately break the connection (stop MSSQL service), the process
    logs a problems within 60 seconds and starts handling the error, when the MSSQL comes back then within 60 seonds the connection is remade
    and the process continues as expected.
    Under Ubuntu 10 64bit both Sun and OpenJDK the process runs fine, until the connectionis broken, as it takes about 17 minutes for the exception to be thrown
    for the broken connection (stopped MSSQL) to be detected, as opposed to under Windows taking seconds. Once detected then the process works as expected, retrying
    and reconnecting as it should.
    The libs and code used are the same the only difference between the windows and linux versions are the logging path parameter, have tried with different versions of Java
    and with different MSSQL JDBC drivers.
    What could be the reason for the time difference in the lost connection detection between Windows and Linux? Any help tips would be most welcome.
    Thanks.

    The connection is only made once and used throughout, it is only closed if there is a problem. This runs absolutely fine with logging for weeks, the execute and processing take millisecondsIt is pointless to keep the connection in that situation. Create it every time.
    Doing that might even fix your problem. But regardless you should still not keep it.
    Have jujst checked the timings and if the db connection is broken the on Linux (Ubuntu) the exception generated by step 4. takes up to 15 minutes 35 seconds to move on to step 7. on Windows though it is instant, there is a log message output prior to the execute statement this outputs then the exeception logged.You have an existing connection.
    Then you attempt a request which I am guess takes 17 minutes to timeout. (That happens because you are testing by stopping the server.)
    That is the problem.
    First verify the connection url. It might have timeout values in it.
    If not then the next most likely cause is that someone changed the OS (not java) TCP timeout values. Bad idea if they did. And the only way to fix is to change them back to something reasonable. You can code around this by using two threads. One that sets a timer and the other that runs the request. If the timer fires then attempt to cancel the request (see the jdbc api.)

  • I have an iPhone 4S, iPad and MacBook Air.  I'm looking for an app or program where I can track time spent of specific projects each day and also document details of each project.  Is there anything available that is synced through iCloud?

    I have an iPhone 4S, iPad and MacBook Air.  I'm looking for a program or app that I can sync though iCloud that will allow me to us all of these devices to track time spent on projects each day along with the ability to add specific information about each project.  Any suggestions are appreciated! Thanks!

    I recommend you consider Omnifocus.  It is a task management program which runs on the Mac, Iphone & Ipad. I use it for task management and project management.  It let's you store additional information as well.   I sync all three devices through a Mobile Me account and I can enter data on any device and it is available on all devices.  I believe you can also sync through Dropbox.  I'm not sure that you can sync through iCloud yet.  The link to their website is:  www.omnigroup.com.  There may be less expensive alternatives, but this one meets my needs and syncs very well across all devices.

  • How to find out time difference between 2 consecutive characters coming in

    Hi
    Data is coming on serial port and m taking this data in a input stream.I need to know the time difdference between consecutive characters.Any ideas?

    What do you mean? If you meassure the time between two characters, you want to calculate how accurate it is? First you would need to find out how accurate the System.currentTimeMillis is on the platform you run on. That may be easy
    long start = System.currentTimeMillis();
    long end;
    while ((end = System.currentTimeMills()) == start);
    long delta = end - start;But sometimes (on win98) it reports 50, other times 60. So its not quite accurate. But you could redo that test a couple of times and take the avg or the max.
    Then if you get a time difference of 0ms between two characters, you know it will be somewhere 0 and 60ms. If you get 60ms between two characters, you know it will be somewhere between 0 and 120 ms. It's +/- delta seconds accurate.
    Would this be a way to calculate the percentage accuracy: 100.0-100.0*delta/(time+delta)
    Still better to meassure the time over more than just 2 characters unless it is a very slow stream.

  • Execution time difference between SELECT & UPDATE statement in JDBC Sender.

    Hi Experts,
    In my scenario, I have used the JDBC Sender Adapter with the SELECT and UPDATE statement.
    Now the problem is in between the execution of Select and update statement, few more entries are coming in the same DB Table.
    So result of this is updation take place for those entries which are not even picked up by the select statement.
    Can we avoid this execution time difference between the SELECT & UPDATE statemet on JDBC Sender side???
    Thanks & Regards
    Jagesh

    Hi
    Use serializable option in additional parameters, now all new entries would also be updated.

  • How to find the date and time difference in InfoPath 2013?

    Hi All,
    My date and time format is like: 2013-12-24T10:47:38 and have three fields Start date, End date and Actual time taken.
    If start date and end date filled then actual time taken field should automatically should fill, for example 2 days 12 hours 48 min 3 sec.
    How to achieve this?

    Hi Sam,
     I believe we had discussed the same issue in the below thread. Can you please refer the below one?
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d93e16ff-c123-4b36-b60b-60ccd34f6ca7/calculate-time-differences-in-infopath?forum=sharepointcustomizationprevious
    If it's not helping you please let us know
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • How to get exact date and time difference?

    Hi,
    When i am using the below sql statement:
    SELECT (TO_DATE('7/27/2006 05:00:15 PM','MM/DD/YYYY HH:MI:SS PM') - to_Date('7/27/2006 8:30:13 AM','MM/DD/YYYY HH:MI:SS AM')) * 24 hours FROM DUAL;
    the output is:
    Hours
    8.50055555555556
    But Actually it is 8.30
    So how can i get exact days and time difference between two dates in Oracle?
    Thanks....
    Regards,
    Suman Sakinala
    Edited by: SSN on Sep 19, 2008 1:27 AM

    Or more clearly (this time I have my date_from and date_to the right way around hehe!)
    SQL> ed
    Wrote file afiedt.buf
      1  WITH t as (select TO_DATE('7/27/2006 05:00:15 PM','MM/DD/YYYY HH:MI:SS PM') as dt_to,
      2                    TO_DATE('7/27/2006 08:30:13 AM','MM/DD/YYYY HH:MI:SS AM') as dt_from FROM DUAL)
      3      ,d as (select (dt_to-dt_from)*24 as diff_hrs from t)
      4  -- end of dates
      5  SELECT TRUNC(diff_hrs) as hours
      6        ,TRUNC(((diff_hrs) - TRUNC(diff_hrs))*60) as mins
      7        ,TRUNC(((((diff_hrs) - TRUNC(diff_hrs))*60) - TRUNC(((diff_hrs) - TRUNC(diff_hrs))*60))*60) as secs
      8* FROM d
    SQL> /
         HOURS       MINS       SECS
             8         30          2
    SQL>

  • Send the same   message to two receivers with some  time difference..

    Hi
      I want to send the same message to Two receivers  with the slight time difference.. becuase  but not at the same time.. if the same time means.. just we can  specify the two receivers in the one receiver determination..
       but  if i want to send the   same message to Two  reveivers with the time difference means..(after sending the  message to first receiver.. after  some time gap.. i need to send the  message to second receiver..
      this type of scenarios how can we do.. is it possible to do with out BPM...  please suggest me the solution..
    Thanks
    Jain .P

    Hi Jain,
    With BPM you can easily do it.
    i am giving you the steps:
    1)first add a receive strep to get your message
    2)then, put a receiver determination step with a multiline receiver container element assigned to its Receivers property.
    3)then, put a block in dynamic mode(ie. ForEach/ParForEach mode) and assign the multiline receiver container element to its multiline element and assign a simple(single line) receiver container element to its current line property.
    4) add a send step within the block, choose Receivers List in its Receiver From property and choose the current line receiver element in its Receivers property.
    5) then add a wait step in the BPM, in its type select Wait Specified Time Period and then mention the duration in your desired time unit.
    **Reward points if helpful...
    --Sankar Choudhury

  • Stopping a while loop using the time difference of two tick counts

    Hi Guys,
    I'm currently writing a code which test how long does it take for a formula node to perform its operation. The program uses a while loop to perform the calculation, and the program stops after calculating when tick count has reached 10 seconds. The program then displays the number of iterations it does in 10 seconds. 
    So initially I created 2 frames of sequence structure. In my first frame I have my initial tick count, and in my second frame I have my final tick count and the while loop. I used the subtract function and divide the output by 1000 to get the time difference. Then using the comparison function, I set if output > 10 then the program should stop, to do this I linked the output of the comparison function to the stop button inside the while loop. 
    However, when I tried to run the code, the program just didn't run. Hence I created a similar program which puts the last tick count in new frame sequence. When I ran this code, the program never stopped. 
    Do you guys have any idea what went wrong with my codes.
    Thank you!
    Erry
    Solved!
    Go to Solution.
    Attachments:
    1. Tick Count.vi ‏27 KB
    tickcoun2.vi ‏27 KB

    Dataflow!
    In both VI's the stop terminal of the while loop is controlled by a boolean whose source is ouside of the while loop.  So that loop will either run once, or run forever, depending on the value of the boolean that is calculated before the loop starts and shows up at the tunnel going into the loop.
    I would recommend looking at the online LabVIEW tutorials
    LabVIEW Introduction Course - Three Hours
    LabVIEW Introduction Course - Six Hours

  • Calendar time difference

    Hi, I have a problem, when I sync my Nokia 6300 with my Outlook calendar the appointment time gets changed on my phone to an hour earlier somehow. It has only recently started doing this, it was fine before. I would appreciate any suggestions. Many thanks

    check to see that both your computer and your phone are set in your correct time zone. If they are not the same the phone could be trying to make up for the time difference by altering the alarm times by an hour.
    You do not say where you are so I cannot give you your exact time zone.
    Have you removed your battery from your phone recently and had to reset the time perhaps? This might have caused the problem
    iPhone 5 32GB
    MacBook Pro Retina 15" Mac OS X Mountain Lion 10.8.4

  • Calculate time difference in Labview from excel file

    I am reading in values from a excel files, the file contains date and time data in one cell, then either an On or Off value in the cell next to it. I would like to find the time difference between the on and the off cycles. The VI I have so far brings in the Excel file but I don't know how to subtract the dates. Any help would be appreciated. I have attached the vi and hopefully I can attach and example excel file.
    Attachments:
    Hobo Import.vi ‏156 KB

    Hi Bryan!
    I made a small VI (in LabVIEW 7.1) that converts to strings (of your format) to timestamp datatype and then subtracts them resulting in a difference measured in seconds. There might be a more optimal way to do this in your application, but I thought I'd at least try to contribute. Also, notice that there is a Y3K bug in there :-)
    Hope this helps!
    Travis H.
    National Instruments
    Travis H.
    LabVIEW R&D
    National Instruments
    Attachments:
    FormattoTimeStamp.vi ‏38 KB

Maybe you are looking for