Estimate of exponential decay time constant - taking tangent lines

Hello

How would you estimate a first order decay time constant? I have a system that loses heat very slowly and I wish assess the time constant of the first part of the data in order to allow more frequent tests (I know it will end by decomposing to).

I know I can make a good estimate based on the initial slope of the curve, but I don't know how to implement this in LabVIEW. Does anyone know how I can make the VI calculate a tangent line to a graph, and to find where it crosses another line?

 


Thank you

How about using the

VI exponential form

Have the Palette: Screw

Request: Full development system

Returns the exponential fit to a set of data (X, Y) using the method of least squares, less absolute residual or Bisquare.

This VI uses the General iterative least squares method and the method of Levenberg-Marquardt to adjust the data to a curve exponential of the General form described by the following equation:

f = aebx + c

where x is the input sequence X, a is the amplitude, b is depreciationand c is out of step. This VI find the values of a, b, and c that better observations (X, Y).

Tags: NI Software

Similar Questions

  • Rapid calculation of the exponential decay constants

    Hi all

    I try to develop a routine that quickly calculates the exponential decay of a given waveform constant.  I use two different techniques, dealing with the calculation of the directions and another using corrects successive integration (LRS).  The two usually give the correct time for the input waveform even constant with a significant amount of noise.  The LRS solution is significantly less sensitive to noise (desirable), but much more slowly (DFT computations run the order of 10s of microseconds for a waveform pt 1000, while the LRS, such that it is coded in Labview, running at about 1.5 ms).  The LRS technique has been developed by researchers at the George Fox University in Oregon, and they claim that they could perform some computation time on the order of 200 US for both techniques.  I have been unable to reach this time with the LRS technique (obviously) and attempted to use a node of the library Call to call a dll compiled this code in C.  However, at best, I get a growth factor 2 in speed.  In addition, additional calculations using the dll seem to be additive - i.e. for four calculations similar running in the same structure with no dependence on each other, the total computation time is about 4 times that of one.  In my case, this is not enough because I try to calculate 8 x to 1kH.

    Looking through the discussion, I have been unable to determine if I should wait for a performance for C gain well written on Labview well written (most seem to ask why you want to do something external).  In any case, I join the code, then you can be the judge as to if it's well-written, or if there is no improvement in performance.  The main function is the Test analysis Methods.vi that generates a wave exponential scale, offset and noise and then the decay constant tau is calculated using the VI is Tau.vi.  In addition, I am attaching the C code as well as the dll for solving the equations of LRS.  They were coded in Labview 8.6 and the C has been encoded using the latest version of Visual C++ Express Edition from Microsoft.  Themain VI uses the FPGA VI module ' Tick count to determine the rate of computation in microseconds, so if you do not have this module you should remove this code.

    Any thoughts are appreciated.  Thanks, Matt

    Hi Matt,

    After changing the summation loop in your calculation of CWR, the routine runs as fast (or faster) than the variants of the DFT... Anyway: check the results to be sure it is still correct.

  • generation of a graph of exponential decay

    Hey I'm trying to generate a graph of exponential decay. I tried a few types of different signal generator, but nothing was even close. Can anyone help?

    What have you tried?  Directly apply the math seems to work.

    Lynn

  • Graphing calculator that is derived from a function + tangent line on the same graph. 70% in fact, I need help :(

    Hi all!
    I'm using Labview 8.6, but the file is saved in labview 8.5.

    I'm almost done with this mission, but I can't understand how to draw a tangent line at the top of the chart with the derivative of the function.

    Can someone help me please?

    Thank you

    LabVIEW file:

    Analysis of the assignment:

    Hello

    here a solution how to add Ct to C

    Concerning

    Tinnitus

  • Calculation of available time after taking into account "outages".

    I have two tables, travel and failures. The shift table contains one record per person (identified by an ID unique person) by date and a time field start time and end. The failures table contains documents showing when someone is unavailable and has a start date/time and end date/time.

    What I need to do, is to create a view that returns one line per record shift, showing their hours available taking into account failures which cover this change. A failure may extend over several days, or there could be multiple failures within a single day. For example, if there is a power failure for a person from 12/01/2009-08:00 (DD/MM/YYYY HH24) and ends at 2009-02-12 10:00 and the movement of people both at the time is 08:00 - 16:00, it should return zero hour availability for 2009-01-12 and the availability of 6 hours for 2009-02-12. Similarly, assuming the same displacement from 08:00-16:00, a shift with 2 failures from 08:00 - 10:00 and 15:00 - 16:00 must return the availability of 5 hours. Failures for one person may not overlap.

    Any ideas on how to go about it?

    Hello

    Welcome to the forum!

    Not counting failures, the total duration (in days) is end_time less start_time, assuming that these columns are DATEs.
    Subtract the total time when outages overlap shift multiply by 24 to change the units from days to hours.
    One way to do that is:

    SELECT     s.*     -- or whatever columns you want
    ,     24 * ( (end_time - start_time)
              - NVL ( ( SELECT  SUM  ( LEAST    (end_time,   s.end_time)
                            - GREATEST (start_time, s.start_time)
                            )
                     FROM    outage
                     WHERE   person_id  = s.person_id
                     AND     start_time < s.end_time
                     AND     end_time   > s.start_time
                   )
                 , 0
                 )
              )     AS hours_available
    FROM     shift     s
    ;
    

    Maybe it's not obvious why the conditions

    ...                 AND     start_time < s.end_time
                     AND     end_time   > s.start_time
    

    say if failure overlaps with shift.
    Look at it this way: in which case failure to NOT overlap? They do not overlap when either
    (a) the breakdown begins after the end of the SHIFT (i.e. start_time > s.end_time), or
    (b) the failure ends before the start of the transition (i.e. end_time<>
    The conditions of the query are the negation of these two conditions.

    It would be in reality a little more correct to say that failure and shift overlap when

    ...                 AND     start_time <= s.end_time
                     AND     end_time   >= s.start_time
    

    which would include cases where you start at the exact moment the other ends. Given that the total duration of such an overlap is 0, I left these cases limits out of the query.

    This requires that start_time<= end_time="" in="" all="">
    I made a few other assumptions, too. If I have something wrong, or if you need assistance for any reason, after the informatipn as mentioned centinul.

    Published by: Frank Kulash, November 1, 2009 19:23

  • now subtract the time constant of the stamp

    I thought it would be easy.

    I was expecting "Subtracted the time" to display the difference between "Fixed time" and "currently".

    While it of countdown minutes and seconds as planned, the hours indicator is several hours off the coast of the expected value.

    The date "subtracted the time' is 1903, so it's time zero stamping.

    So basically, how can I get the patch for montrer.sss?

    Here are some of the things I've tried:

    I tried the 24-hour format. I have tried most every properties button.

    I tried to adjust the indicator "Subtracted the time" relative time in the properties. But I had two problems related to the definition of this property.

    In 'Default Edit Mode', the selections of absolute time and Relative are grayed out. So I couldn't change it, if absolute time was that all two blue grayed out and highlighted.

    Then I switched to "Advanced Editing Mode", played with the format of time codes Relative, absolute and digital and all that seemed to be getting was a red LED when I tried different combinations of "Insert into String Format". I had to go back to 99% of the time. When I don't have no 'come back' it made no difference in the result.

    Do not use a timestamp indicator.  Use a regular digital indidcator and set the display of relative time format.

  • SQl query to find out time between the different lines of transactions

    (See both images from an attachment to get the clear picture of the data and understand the question correctly.)

    I have a set of data like this in one of my paintings. (This is a simple representation of the original data.)

    Reference table1.jpg

    Id        | Type               | Value | Start_date | End_date

    ----------------------------------------------------------------------------------------------------------------------

    ZTR0098 | ALLOW | 0 | 1 JUN | 2 JUN |

    ZTR0098 | ADTAX | 0 | 1 JUN | 2 JUN |

    ZTR0098 | MXTAX | 0 | 1 JUN | 9 JUN |

    ZTR0098 | ALLOW | 4. 3 JUN | 15 JUN |

    ZTR0098 | ADTAX | 44.00 | 3 JUN | 17-JUNE |

    ZTR0098 | MXTAX | 2. 10 JUN | 17-JUNE |

    ZTR0098 | ALLOW | 5. 16-JUNE | 20 JUN |

    ZTR0098 | ADTAX | 55,34 | 18 JUN | 22 JUN |

    ZTR0098 | MXTAX | 1. 18 JUN | 25 JUN |

    ZTR0098 | MXTAX | 6. 26 JUN | 31 AUG |

    ZTR0098 | ADTAX | 20.09. 23 JUN | 23 JUL |

    ZTR0098 | ALLOW | 8. 21 JUN | 31 AUG |

    ZTR0098 | ADTAX | 45. 24 JUL | 31 AUG |

    each line has a type and a rasthaus id to it. ID belongs to other parent tables. the value of each type is given, and the validity of each value is followed by a field start_date and end_date.

    All values start from 1 - JUN and expires on 31 - AUG. Now my requirement is to obtain a report that gives three columns for three different types (ALLOW, ADTAX and MXTAX) with combination of unique values in the effective time interval. Let me put the result below.

    Reference table2.jpg

    Id         | ALLOW | ADTAX | MXTAX |  Start_date | End_date

    --------------------------------------------------------------------------------------------------------------------------------------------------

    ZTR0098 | 0 | 0 | 0 | 1 JUN | 2 JUN |

    ZTR0098 | 4. 44.00 | 0 | 3 JUN | 9 JUN |

    ZTR0098 | 4. 44.00 | 2. 10 JUN | 15 JUN |

    ZTR0098 | 5. 44.00 | 2. 16-JUNE | 17-JUNE |

    ZTR0098 | 5. 55,34 | 1. 18 JUN | 20 JUN |

    ZTR0098 | 8. 55,34 | 1. 21 JUN | 22 JUN |

    ZTR0098 | 8. 20.09. 1. 23 JUN | 25 JUN |

    ZTR0098 | 8. 20.09. 6. 26 JUN | 23 JUL |

    ZTR0098 | 8. 45. 6. 23 JUL | 31 AUG |

    As you can see there are no duplicate rows for a combination of (ALLOW, ADTAX and MXTAX) with their respective dates in force. resulting in the above table. the first step is to convert lines to the column which is pretty obvious to do that by grouping on start_date and end_date colum, but the real deal is the time interval during which the combination of the values (ALLOW, ADTAX, and MXTAX) has remained constant.

    I wrote under query using Group by.

    Select

    ID,

    NVL (max (decode (type, "ALLOW", value)), 0) as ALLOW

    NVL (max (decode (type, 'ADTAX', value)), 0) as ADTAX

    NVL (max (decode (type, 'MXTAX', value)), 0) as MXTAX

    Start_date,

    End_date

    from my_table

    Group of start_date, end_date, id

    start_date, end_date

    the results it gives are like this:

    Reference table3.jpg

    Id       | ALLOW | ADTAX | MXTAX |  Start_date | End_date

    ------------------------------------------------------------------------------------------------------------------------------------------------

    ZTR0098 | 0 | 0 | 0 | 1 JUN | 2 JUN |

    ZTR0098 | 0 | 0 | 2. 1 JUN | 9 JUN |

    ZTR0098 | 4. 0 | 0 | 3 JUN | 15 JUN |

    ZTR0098 | 0 | 44.00 | 0 | 3 JUN | 17-JUNE |

    ZTR0098 | 0 | 0 | 2. 10 JUN | 17-JUNE |

    ZTR0098 | 5. 0 | 0 | 16-JUNE | 20 JUN |

    ZTR0098 | 0 | 55,34 | 0 | 18 JUN | 22 JUN |

    .   .

    . .

    like wise

    but I'm not able to determine the time intervals by using the SQL query.

    with

    Table1 as

    (select the id 'ZTR0098', 'ALLOW' type, 0 val, to_date('1-JUN','dd-MON') start_date, end_date Union to_date('2-JUN','dd-MON') double all the)

    Select 'ZTR0098', 'ADTAX', 0, to_date('1-JUN','dd-MON'), to_date('2-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'MXTAX', 0, to_date('1-JUN','dd-MON'), to_date('9-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'ALLOW', 4, to_date('3-JUN','dd-MON'), to_date('15-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'ADTAX', 44.00, to_date('3-JUN','dd-MON'), to_date('17-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'MXTAX', 2, to_date('10-JUN','dd-MON'), to_date('17-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'ALLOW', 5, to_date('16-JUN','dd-MON'), to_date('20-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'ADTAX', 55.34, to_date('18-JUN','dd-MON'), to_date('22-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'MXTAX', 1, to_date('18-JUN','dd-MON'), to_date('25-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'MXTAX', 6, to_date('26-JUN','dd-MON'), to_date('31-AUG','dd-MON') of all the double union

    Select 'ZTR0098', 'ADTAX', 20.09, to_date('23-JUN','dd-MON'), to_date('23-JUL','dd-MON') of all the double union

    Select 'ZTR0098', 'ALLOW', 8, to_date('21-JUN','dd-MON'), to_date('31-AUG','dd-MON') of all the double union

    Select 'ZTR0098', 'ADTAX', 45, to_date('24-JUL','dd-MON'), to_date('31-AUG','dd-MON') of the double

    ),

    days like

    (select level - 1 dte + to_date('1-JUN','dd-MON')

    of the double

    connect by level<= to_date('31-aug','dd-mon')="" -="" to_date('1-jun','dd-mon')="" +="">

    )

    Select id, allow, adtax, mxtax, min (dte) start_date, max (dte) end_date

    (select ID, dte, max (allow) allow, max (adtax) adtax, max (mxtax) mxtax,

    ROW_NUMBER() over (order by dte) row_number() - courses (partition by order max (allow), max (adtax), max (mxtax) by dte) gr

    go (select id, dte,

    -case when type = 'ALLOW' and dte between start_date and end_date then end val 0 otherwise allow.

    -case when type = "ADTAX" and dte between start_date and end_date then val 0 otherwise end adtax.

    -case when type = "MXTAX" and dte between start_date and end_date then val 0 otherwise end mxtax

    Table 1 t,

    days d

    where d.dte between t.start_date and t.end_date

    )

    Group by id, dte

    )

    Group by id, gr, allow, adtax, mxtax

    order by id, gr

    ID ALLOW ADTAX MXTAX START_DATE END_DATE
    ZTR0098 0 0 0 01/06/2015 02/06/2015
    ZTR0098 4 44 0 03/06/2015 09/06/2015
    ZTR0098 4 44 2 10/06/2015 15/06/2015
    ZTR0098 5 44 2 16/06/2015 17/06/2015
    ZTR0098 5 55,34 1 18/06/2015 20/06/2015
    ZTR0098 8 55,34 1 21/06/2015 22/06/2015
    ZTR0098 8 20.09 1 23/06/2015 25/06/2015
    ZTR0098 8 20.09 6 26/06/2015 23/07/2015
    ZTR0098 8 45 6 24/07/2015 31/08/2015

    Concerning

    Etbin

  • How do I either set channel name of a graph of cluster or get a 1 d waveform chart to start different time (t0) for each line of the waveform?

    I have a chart single 2D out a conditional of a loop indexing output such that over the rows of the table are not the same size. -Basically, they have different starting and ending points and sizes. -Not so concerned by the endpoints, because as soon as I get correctly starting points, everything shows fall in place.

    The challenge is that when I try to have the variable t0 (start time) for each line, the wave of construction vi form would always keep each line at the same starting point.

    I used the approach bundled with success (the cluster approach ensures that each waveform starts at different times according to the guidelines of my t0 defined for each line) but then I'm not able to get in the channel names I could make using the graphical approach (wave generation) waveform.

    In essence what I get here, I'm losing here.

    Because I don't want one of my mentors, Bob and Altenbach have fed up with me I have attached a vi this time

    Attached VI shows a combination of the two attempts (first with the waveform graph) and then with the graph of cluster

    1. with the first (graphical waveform), I get my channel names as you wish, but the alignment of the wave is not correct.

    2. with the second (graphical cluster), the alignment is good, but I can't do the names of channel in the chart, even if they are present in the cluster.

    I read some reviews that mentions that attributes can be displayed with waveform and data Dynamics (not clsuters) so I guess that's why.

    I saw another report indicating the start time for a waveform 1 d will always remain the same for the rest lines defined for the first line even if changed for the following lines in a loop.

    So I guess my question is: what is the way around questions like that?

    First of all, let me be the first to the congratulate and thank you for finally posting a code!  I'm not 100% certain I understand your question or your code, but I have an idea, perhaps, of what you want to do, so I wrote a little VI who made something simple that could be relevant.

    You mention waveforms of different lengths and beginning at different times.  You also want everyone to have a unique attribute (although I'm not sure what you want to do with the attribute).  So, I did the following:

    1. Generated an array of 100-sample random to represent one second of a waveform.
    2. Created 4 waveforms on this 100-sample basis.  The first waveform (channel 0) is just these 100 points.  The second, 1 channel, is the concatenation of string 0 with the base of 100 samples, or a waveform "double".  Channel 2 is 1 string concatenated with the base, and channel 3 is 2 string concatenated with the base.
    3. In order to trace the four channels that they rest 'on' the other, the waveform has the number of the channel added to it.  Channel 3 is 3 + (4 copies of the basis of 100 points), a waveform 400-point random centered around a shift of 3.
    4. All channels have dt value 0.01 (but I guess I could have varied, as well).
    5. To make the channels start at different times, I started channel N N seconds before channel 0 (by subtracting the index of the loop, I, T0).
    6. For each channel, I created an attribute called "Chan" equal to "Channel N" (where N = 0, 1, 2 or 3, as the case may be).

    This is the plot that results. Scale X is the absolute time value (no Date) using the 24-hour HH: mmS format.  You can see that the plots are 1, 2, 3 and 4 seconds of time, and are offset from each other by a second.  I used the trace attributes to change the name to the respective attribute.

    The code to do this is very simple - I almost don't need to show it, because I think it is completely described by the text above, but this is here:

    Now, it was not that much faster that some of your previous posts, when you refused to your postcode, "guess us" what you wanted (but not to not correctly guess), you tried to "push" us in the right direction (still refuses to post code), and no one seemed very happy?

    Bob Schor

  • MY COMPUTER GUARD LOCK UP TO 5 - 10 TIMES A DAY. LINES DIAGONALS IN A VARIETY OF BACKGROUNDS COLORFUL WHEN CELA SE PRODUCT.

    My computer continues to be locked.  When this happens there are diagonal wavy lines (bottom left to top right) on screen.  This happens 5-10 times a day.  I have to press the button power 5-7 seconds to power off the coast.  The diagonal lines are different colors, with different colored backgrounds.  There is no consistency in the colors.  They range from red to orange to blue to white.  I'm ready to throw it off the roof!

    Various colored lines are usually an indication of a problem either with your graphics drivers or a graphics card fault.

    Go to the Web site of the manufacturer of your laptop computer-graphics/computer card > drivers and downloads Section > key in your model number > look for the latest Vista drivers > download/install them.

    If the above does not fix it: try changing the graphics card, if a desktop computer.

    If a laptop computer, contact the manufacturer.

    See you soon.

    Mick Murphy - Microsoft partner

  • I was invited to run HP on diagnosis of line on my laptop which is under XP SP3. Since that time, a purple vertical line appeared about a third through the screen & moved the desktop icons. I can move the icons, but the line remains.

    I tried all the usual 'household' and the system restore, but this does not solve the problem.

    It is unlikely that a) HP online diagnosis has caused the error. and (b) that it is a software problem. However, because I don't know what made the diagnosis online and why you did, start with the easy things. Download the video driver for your laptop from the HP website and reinstall. If this fixes things, very well. If this isn't the case, it is probably a hardware failure on your video screen of chip and/or laptop. This isn't something you can fix yourself then call HP technical support. MS - MVP - Elephant Boy computers - don't panic!

  • calculate the time difference between several lines

    Hello

    I have a table as below:

    create table select TEST_CASETBL (ID, CASE_NUM, CASE_STATUS, CASE_SUB_STATUS, LAST_UPD_DTTM)

    112, 123-456', 'open', 'Work', TO_DATE (11 March 2015 13:00 ',' dd/mm/yyyy hh24:mi:ss') of the DUAL union all select

    113, 123-456', 'Open', 'pending on the admin', TO_DATE (10 January 2015 15:00 ',' dd/mm/yyyy hh24:mi:ss') of the DUAL union all select

    114, 123-456', 'Open', 'client expectation', TO_DATE (10 July 2015 09:00 ',' hh24:mi:ss' of dd/mm/yyyy) of the DUAL union all select them

    315, 123-456', 'open', 'Work', TO_DATE (September 15, 2015 10:00 ',' dd/mm/yyyy hh24:mi:ss') of the DUAL union all select

    219, 123-456', 'Open', 'pending on the admin', TO_DATE (January 9, 2015 08:00 ',' dd/mm/yyyy hh24:mi:ss') of the DUAL union all select

    651, 123-456', 'open', 'Work', TO_DATE (August 20, 2015 10:00 ',' dd/mm/yyyy hh24:mi:ss') from DUAL;

    I would like to calculate the duration total (days ideally) to CASE_SUB_STATUS, so have a set of lines:

    CASE_NUM of work waiting on admin waiting on customer

    -------------------------------------------------------------------------------------------------------------------------------------------------------

    123-456 70days 6 hours

    Here is the explanation of the pattern:

    ex: for everyday business computing (timestamp timestamp of ID:651 - ID:219) +(timestamp of ID:315-timestamp of ID:114) + (ID:112 stamp - current_time) = 11 days + 21 days 22hrs 23hrs 36 days 9 hours

    still waiting on admin

    (ID:219 timestamp - timestamp of ID:315) + (ID:113 timestamp - timestamp of ID:112)

    still waiting on the client

    (ID:114 timestamp - timestamp of ID:113)

    I would appreciate any idea how to solve this, ideally as an SQL

    Thank you

    Should he not?...

    with test_casetbl (id, case_num, case_status, case_sub_status, last_upd_dttm) as)

    Select 112, 123-456', 'Open', 'Work', TO_DATE (11 March 2015 13:00 ',' dd/mm/yyyy hh24:mi:ss') of all the DOUBLE union

    Select 113, 123-456', 'Open', 'pending on the admin', TO_DATE (10 January 2015 15:00 ',' dd/mm/yyyy hh24:mi:ss') of all the DOUBLE union

    Select 114, 123-456', 'Open', 'client expectation', TO_DATE (10 July 2015 09:00 ',' dd/mm/yyyy hh24:mi:ss') of all the DOUBLE union

    Select 315, 123-456', 'Open', 'Work', TO_DATE (September 15, 2015 10:00 ',' dd/mm/yyyy hh24:mi:ss') of all the DOUBLE union

    Select 219, 123-456', 'Open', 'pending on the admin', TO_DATE (January 9, 2015 08:00 ',' dd/mm/yyyy hh24:mi:ss') of all the DOUBLE union

    Select 651, 123-456', 'Open', 'Work', TO_DATE (August 20, 2015 10:00 ',' the hh24: mi: ss' dd/mm/yyyy) double

    ),

    t like)

    Select case_num,

    case_sub_status,

    (last_upd_dttm, 1, sysdate) ahead of diff last_upd_dttm (partition by order of last_upd_dttm case_num).

    of test_casetbl

    )

    Select case_num,

    trunc (a) | "day (s). TO_CHAR (date ' 1-1-1' + a, "fmhh24" 'mi' minute (s) "ss" second (s) hour (s)"") "work."

    trunc (b) | "day (s). TO_CHAR (day 1-1-1' + b, "fmhh24" 'mi' minute (s) "ss" second (s) hour (s)"") 'Waiting on admin',

    trunc (c) | "day (s). TO_CHAR (day 1-1-1' + c, "fmhh24" 'mi' minute (s) "ss" second (s) hour (s)"") "waiting on customer."

    t

    pivot)

    Sum (diff)

    for case_sub_status in)

    'Work' is.

    B "waiting on admin',

    C "customer expectation."

    )

    )

    CASE_NUM Working Waiting on admin Waiting on customer
    123-456 63 day (s) 22 hour (s) (s) 50 minute 49 second (s) 19 day (s) on 20 (s) hour 0 minute 0 second (s) 27 day (s) on 4 hour (s) 0 minute 0 second (s)
  • Between two lines, how do you at the same time several distant equal lines outside?

    I've done this before in Quark and then in InDesign, but in Illustrator I have not yet found it by doing a search on these forums. I think it would be a part of the "Move" dialog box, but not here... To save an additional frustration I have to ask, and I do not know Illustrator can handle this easily, but I need your help...

    I selected two parallel lines, both of equal length, one copy of the other and spaced several inches outside. I would like to "fill" a selected number of rows between the two existing lines, to make a graph, spaced at equal distance from the apartment. Should what element of the dialog or menu I go to do that?


    TIA,

    Ken

    you want the gradient tool. It is in the tool palette. You can also press 'w' for it is shortened. Select the gradient tool, then click on a line, then the other. It will fill with the specified parameters. to change the settings, select your mixed forms, select the gradient tool and press return, this will bring up the options

  • Calculation of the time differences between several lines

    Hello

    I have a table as below:

    EVENT ID DATE
    1. start 05/03/2012-13:00
    1. stop the 15:00 05/04/2012
    1. start 09:00 05/07/2012
    1 stop on 05/09/2012 10:00
    Start 2 08/06/2012-08:00
    2 stop on 08/07/2012 10:00

    I would like to calculate the duration (in hours ideally) between 'Start' and 'Stop' for each ID, so having a set of lines:

    ID TimeSpan
    ---------------------
    1 75
    26 2

    I would appreciate any idea how to solve this, ideally as a SQL solution or maybe a function.

    Thank you very much!
    Tom

    The difference between two dates is a number, where 1 = 1 day. Multiply by 24 to get hours.

    Use the LAG, as stated above, to compare the date prior to the current date.

    create table T(TID, EVENT, TDATE) as select
    1, 'start', TO_DATE('03/05/2012 13:00:00', 'dd/mm/yyyy hh24:mi:ss') from DUAL union all select
    1, 'Stop',  TO_DATE('04/05/2012 15:00:00', 'dd/mm/yyyy hh24:mi:ss') from DUAL union all select
    1, 'start', TO_DATE('07/05/2012 09:00:00', 'dd/mm/yyyy hh24:mi:ss') from DUAL union all select
    1, 'Stop',  TO_DATE('09/05/2012 10:00:00', 'dd/mm/yyyy hh24:mi:ss') from DUAL union all select
    2, 'start', TO_DATE('06/08/2012 08:00:00', 'dd/mm/yyyy hh24:mi:ss') from DUAL union all select
    2, 'Stop',  TO_DATE('07/08/2012 10:00:00', 'dd/mm/yyyy hh24:mi:ss') from DUAL;
    
    select tid, round(sum(hours)) hours from (
      select case
        when EVENT = 'Stop' then 24*(TDATE - LAG(TDATE) over(partition by TID order by TDATE))
        else 0 end hours,
      TID from T
    )
    group by tid;
    
    TID HOURS
    --- -----
      1    75
      2    26
    
  • display the same value in a times column in multiple lines

    Dear all:

    I have a table id, with the following data values

    ID VALUES
    ===============
    EG001 5888314
    EG001 5888315
    EG001 5888316
    EG002 5888317
    EG002 5888318


    I want to display a query to display the result as follows:

    ID VALUES
    ===============
    EG001 5888314
    5888315
    5888316
    EG002 5888317
    5888318


    Kind regards

    Hassan

    Hello
    Try:

    WITH test_tab AS (
    SELECT 'EG001' REC_ID, 5888314 VALUE FROM DUAL UNION ALL
    SELECT 'EG001', 5888315 FROM DUAL UNION ALL
    SELECT 'EG001', 5888316 FROM DUAL UNION ALL
    SELECT 'EG002', 5888317 FROM DUAL UNION ALL
    SELECT 'EG002', 5888318 FROM DUAL)
    -- end test data
    SELECT LTRIM(CASE WHEN row_num = 1 THEN REC_ID ELSE NULL END || ' ' || VALUE) VALUES
      FROM (
    SELECT REC_ID, VALUE,
         ROW_NUMBER() OVER (PARTITION BY REC_ID ORDER BY VALUE) row_num
      FROM test_tab)
    
    VALUES
    ----------------------------------------------
    EG001 5888314
    5888315
    5888316
    EG002 5888317
    5888318
    
  • Parallel tasks within the Vision of script Wizard

    Hello

    I am new to the wizard of vision of NOR, I think I can miss a clear interface tool, but I can does not seem to find anything.

    I need to have parallel tasks in a script to identify a certain area. Basically I want to reuse a result of intermediate treatment several times before taking the lines together for the answer.

    That is to say to have task 3 then Task4, 5 in the other branch.

    Task 1-> task 2-> task-> task-> response 6 3

    Task 1-> task 2-> Task 4-> task-> task-> response 6 5

    Hey Mike,

    You might go on your application is to use the image in the buffer stage. The basic idea of this method would be as follows:

    1.) your image

    (2.) your first steps

    (3.) your image to a buffer store

    4.) take next steps on the image

    5.) performs the logical comparison between your current image and the image contained in the buffer.

    This method is not necessarily parallel treatment, but would be a way to accomplish what it seems you are trying to do in NI Vision Assistant. See the attached example for some clarification on the method, I proposed.

    Hope this helps,

    -Ben

    (The sample script is in vision) 3.6 So also attached is a screenshot of the steps. Is also attached the image of the sample used for the script)

Maybe you are looking for