Selecting data for analysis

I have a column of conductivity measurements overtime at 1/10 s intervals. In preparation for data analysis I isolate each individual event which begins when at the point dye is introduced to the system, the pulse then travels to the measuring device and the recorded conductivity values increase until they peak and then decline back down again. Finally, the event "ends" when the next pulse is introduced. The problem is that the dye input time was not at regular intervals, so the tails of the events are of varying lengths, thus I need to truncate the data in a more systematic manner.  I would like to truncate the data at a point after the peak, somewhere in the tail when the average of 5 consecutive values are < 0 (I need to specify after the peak because sometimes negative values occur before the peak and I need to keep this information). I think using a while loop and running it until the criteria is reached is the way to do it. But I am not sure how to structure my criteria.
thanks
PS I am using Labview 8.6
Solved!
Go to Solution.

I have attached an example of the data from one event. The graph shows a plot of the data and ~ where I would like to truncate it (done in excel). Hope this clarifies things.
Attachments:
test_data.txt ‏17 KB
Graph.pdf ‏166 KB

Similar Messages

  • Collecting samples of data for analysis

    I’m afraid I am quite new to labview so excuse the simple line of questioning. I am receiving values from a plc and I am looking to collect two different samples of data for analysis:
    I would like to collect 40 values and once collected, rotate the sample so the oldest value is replaced by the new one, but maintaining an array of 40 values. This is to calculate the rolling average of the latest 40 values for the duration of the while loop.
    Secondly, I would like calculate the average of all values collected for the duration of the while loop. This means the sample will keep growing for the duration of the while loop and I will need an array of increasing size to be analysed.
    I know the array functions can do this, however I am unable to figure out how. Any assistance or examples to help achieve this would be greatly appreciated.
    Best regards,
    Stuart Wilson

    Here is a quick (and dirty) way. I know that there are more elegant ways, can't look at them at the moment, but this may give you ideas.
    P.M.
    LabVIEW 7.0
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    rotate values.vi ‏31 KB

  • Stock viewing on a selected date for Valuated materials

    Dear all
    I have materials which are split maintained with 4/ valuation type. I want to view the stock on a particular date for recon. activities for each valuated tyepe material, how to find it  / what is the Txn code for that. MB5B does not solve the issue.
    Thanks
    sam

    Hi Samuel
    If you want to view the  stock on a particular date  for each of the Valaution type
    Then use the  transaction MB5B
    1. Donot select anything in the SETTINGS area of the transaction
    2.execute the transaction (F8)
    3.Select current display variant (Ctrl+F8)
    4.from the hidden fields get the Valuation type shifted  to the left hand column
    5. copy
    You will find the valuation type against the posting dates
    Hope this helps
    Regards
    Vikrant

  • How to edit data selection(Date) for an Init Delta Infopackage

    Hi Experts,
    We have a Process Chain which contains an Delta Infopackage.
    This Delta Infopackage has a Data Selection (Date) condition which is till 12/2008. As well the same date selection is present in the init method as 12/2008.
    Also we need to change the date selection in the data sources in R/3 side.
    *Is there a way to edit the Init condition so that we can pull 2009 data without deleting the present Init and recreating a new Init?????? please suggest us with the procedure for the same.
    Also could you tell us the impact of changing the date selection in BW and R/3 side??
    Appreciate your response.
    Thanks
    Vivek Das Gupta

    Hi Ajeet,
    I followed the steps you mentioned.
    I created a new infopackage, gave the condition (01/2009 to 12/2999) and did a Init without Data transfer.
    1. Now if we do a Delta load, will the loading be based on both Init Selections (01/2004 to 12/2008 and 01/2009 to 12/2999)  or will it take the recent Init condition only(01/2009 to 12/2999)??
    2. After doing the New Init(01/2009 to 12/2999), the Delta InfoPackage still shows the old Data Selection (01/2004 to 12/2008) In Selection Tab of IP, do we need to change the Date Selection  as 01/2009 to 12/2999?
    3. Where can we the Data selection in R/3 (TCODE)??
    Vivek Das Gupta

  • Auto-fill calender date and validate other fields depending upon selected date for infopath forms

    I have a calender box in infopath form which i want to autoselect when user opens the form..Ex..i am opening form on 14th march the calender should show as 19th march and also i have to perform few validation and action such as if i am selecting date with
    more than 5 days gap should open other field which is a dropdown..How can i perform this..

    Do you have Excel Services? if so, this article may be of use to you:
    http://sergioblogs.blog.co.uk/2013/01/08/infopath-2010-and-excel-services-in-sharepoint-15407321/
    You can configure an excel workbook to validate if a date is a working day and then use formulas to workout the working date for 5 days after the date you enter, then link your InfoPath form to connect to the excel workbook and return the result of your
    calculation.
    Regards
    Sergio Giusti
    http://sergioblogs.blog.co.uk/
    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".

  • Urgent!How to set the default selected date for an OAMessageDateFieldBean

    Hi,
    There is messagetextinput on the page.the dataType is Date.
    if I do not input anything on this messagetextinput ,when I click on the date icon,the default selected date is today.
    But I want to set the default selected date base on another messagechoice.
    Is that possible?
    binghao.

    Sumit/Binghao,
    When u set deafult date in the OAMessageDateFieldBean, the OAInlineDatePickerBean (which are referring as datepicker popup windows), takes the default value from OAMessageDateFieldBean.
    If you explore OAMessageDateFieldBean in framework, u will find its nothing but a onClick js event is called on the imageicon attached with messagetextinput bean(in case the type is Date) and OAInlineDatePickerBean is opened in a modal js window.
    So, here is code for setting default value both in both in OAMessageDateFieldBean and OAInlineDatePickerBean :
    OAMessageDateFieldBean dateField = (OAMessageDateFieldBean)webBean.findIndexedChildRecursive(<item id>);
    dateField.setValue(pageContext,new Date(100, 06, 04)/* 4th July 2000*/);
    One more important thing, here Date class is java.sql.Date.I hope i am clear.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error while selecting data for mara table from KOTG516 table

    Hello all,
    I am trying to select the data from mara table with respect to KOTG516 table . but i am not getting the value into t_mara table as t_kotg516-matnr is empty . but the t_kotg516 conatins the matnr value . here is the code . i am not getting where i went wrong . please help .
    TYPES: BEGIN OF Y_KOTG516,
            KAPPL TYPE KAPPL,
            KSCHL TYPE KSCHG,
            VKORG TYPE VKORG,
            VTWEG TYPE VTWEG,
            KUNAG TYPE KUNAG,
            MATNR TYPE MATNR,
            DATBI TYPE KODATBI,
          END OF Y_KOTG516.
    DATA: T_KOTG516 TYPE STANDARD TABLE OF Y_KOTG516,
          E_KOTG516 TYPE Y_KOTG516.
    TYPES: BEGIN OF Y_MARA,
            MATNR TYPE MATNR,
            MEINS TYPE MEINS,
          END OF Y_MARA.
    DATA: T_MARA TYPE STANDARD TABLE OF Y_MARA,
          E_MARA TYPE Y_MARA.
        SELECT KAPPL
               KSCHL
               VKORG
               VTWEG
               KUNAG
               MATNR
               DATBI
         FROM KOTG516
         INTO TABLE T_KOTG516
       WHERE VKORG IN S_VKOR
         AND VTWEG IN S_VTWE
         AND KUNAG IN S_KUNAG.
            IF NOT T_KOTG516[] IS NOT INITIAL
                    and SY-SUBRC EQ 0.
              SELECT MATNR
                     MEINS
                FROM MARA
                INTO TABLE T_MARA
               FOR ALL ENTRIES IN T_KOTG516
               WHERE MATNR EQ T_KOTG516-MATNR
                 AND MEINS EQ 'CS'
                  OR MEINS EQ 'IT'.
              ENDIF.
      FOR T_KOTG516 I HAVE VALUE but matnr is not getting selected from mara table as i cheked t_kotg516-mara is empty . i cant use with header line . please advise .
    Regards

    hi,
    SELECT KAPPL
                 KSCHL
                  VKORG
                 VTWEG
                KUNAG
               MATNR
                DATBI
               FROM KOTG516
              INTO TABLE T_KOTG516
              WHERE VKORG IN S_VKOR
               AND VTWEG IN S_VTWE
                 AND KUNAG IN S_KUNAG.
    if sy-subrc = 0 .
    SELECT MATNR
    MEINS
    FROM MARA
    INTO TABLE T_MARA
    FOR ALL ENTRIES IN T_KOTG516
    WHERE MATNR EQ T_KOTG516-MATNR
    AND MEINS EQ 'CS'
    OR MEINS EQ 'IT'.
    ENDIF.
    regards
    deepak .

  • How to select data for nested object (Object based on another objects)

    Hi,
    I have written the following code, but I am not able to fetch data as I fetch from normal table, Plz help.
    Following is the sample code -
    CREATE TYPE A_OBJ IS OBJECT (
    A_NAME VARCHAR2 (100),
    A_DESC VARCHAR2 (100)
    CREATE TYPE A_TAB IS
    TABLE OF A_OBJ
    CREATE TYPE B_OBJ IS OBJECT (
    B_NAME VARCHAR2 (100),
    B_DESC VARCHAR2 (100)
    CREATE TYPE B_TAB IS
    TABLE OF B_OBJ
    CREATE TYPE H_OBJ IS OBJECT (
    A A_TAB,
    B B_TAB
    create type H_TAB is table of H_OBJ
    -- Created the function to fill the data into my objects.
    Create or Replace Function ABC RETURN H_TAB IS
         l_data H_TAB := H_TAB();
         v_loop_count BINARY_INTEGER := 1;
         obj1 A_TAB;
         obj2 B_TAB;
    begin
         for i in(SELECT AG_PROD_MOD_NR, COMM_NM FROM BV_PRODUCT WHERE AG_PROD_MOD_NR = 'E4440A') loop
              obj1 := A_TAB();
              obj1.extend;
              obj1(obj1.last) := A_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
              obj2 := B_TAB();
              obj2.extend;
              obj2(obj2.last) := B_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
              l_data.extend;
              l_data(l_data.last) := H_OBJ(obj1,obj2);
         end loop;
         Return l_data ;
    end;
    -- used this SQL for fetching the data using the function -
    select *
    FROM the ( SELECT cast(ABC ()
    as H_TAB) FROM dual )
    the above SQL not gives me the data in the as a normal table returns, plz suggest me how to write SQL for above case.
    Thanks in Advance,
    Deepak

    First try to move your obj1 and obj2 initialization outside of the for loop. Not sure if this is even the issue, but it can't be helping.
    obj1 := A_TAB();
    obj2 := B_TAB();
    for i in(SELECT AG_PROD_MOD_NR, COMM_NM FROM BV_PRODUCT WHERE AG_PROD_MOD_NR = 'E4440A')
    loop
      obj1.extend;
      obj1(obj1.last) := A_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
      obj2.extend;
      obj2(obj2.last) := B_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
      l_data.extend;
      l_data(l_data.last) := H_OBJ(obj1,obj2);
    end loop;

  • Selecting Dates for a  Restore

    In looking at the time line in the TM window, I see that it has back-ups for every day from Aug 1st onward. Everything before that is weekly back-ups. Is there a way to access a day between them? For example, I wanted to restore a document that was on my machine on July 23rd and 24th, but the backups are July 22, and July 29th. I don't see any way to pull up anything in between. The item was deleted later on.

    Uncle Otto wrote:
    I've also watched the tutorial for TM, and it is mute on the issue too. Maybe the missing dates can't be accessed any more once it goes to weekly backups?
    Correct. Time Machine "thins" your backups, per the schedule on the TM Preference Window:
    |

  • Creating report based on user selected Date Range

    Hello.
    I am trying to display an Apex report that selects data for the report based on a user entered date range.
    It's a simple page with two date picker fields (p18_start and p18_end).
    The report region SQL looks like this:
    SELECT *
    FROM prj_items
    WHERE LM_DT BETWEEN :p18_start AND :P18_end
    One table, one field on the table to search and two Apex variables.
    I thought this would be fairly simple, but I am obviously missing something.
    I not even sure what other information is needed to help me figure this out.
    -Jody

    Hi,
    You can set defaults for the datepickers if you need to - this could be done in a computation on the page for each item and conditional on the item being null.
    When I've done something similar to this, I've created two hidden page items - eg, :P19_FIRST_DATE and :P19_LAST_DATE and populated these with the earliest/latest date that the user could reasonably select (perhaps, in your case, the MIN(LM_DT) and MAX(LM_DT) values).
    Then your SQL would be:
    select * from PRJ_ITEMS
    where LM_DT BETWEEN TO_DATE(NVL(:P19_START,:P19_FIRST_DATE), 'DD-MON-YY')
    AND TO_DATE(NVL(:P19_END,:P19_LAST_DATE), 'DD-MON-YY')If you don't want to set default dates, you could do something like:
    SELECT * FROM PRJ_ITEMS
    WHERE (:P19_START IS NULL AND :P19_END IS NULL)
    OR (:P19_START IS NOT NULL AND :P19_END IS NULL AND LM_DT >= TO_DATE(:P19_START,'DD-MON-YY'))
    OR (:P19_START IS NULL AND :P19_END IS NOT NULL AND LM_DT <= TO_DATE(:P19_END,'DD-MON-YY'))
    OR (LM_DT BETWEEN TO_DATE(:P19_START,'DD-MON-YY') AND TO_DATE(:P19_END,'DD-MON-YY'))There are various reasons why your two dates are being cleared when the page is reloaded. Firstly, you should check the branch that returns to the same page - make sure you are not clearing the cache for the page. Then, have a look to see if there is a "reset page" process (usually created for you when you create a form page). Then, check the Source settings for the items. Typically, these would be "Only when current value in session state is null" and a Source Type of "Static Assignment" with the "Source Value or Expression" left empty.
    Andy

  • Select data from database via XML

    I want to select data for display and insert data to tables via XML, and I want
    to do this from a browser.
    I am using "Oracle8i Enterprise Edition Release 8.1.7.4.0" on HP-UX server
    with "JServer Release 8.1.7.4.0.".
    The oracle documentation says I need the following in order to do this.
    1. XML-SQL Utility
    2. XML Parser for Java, V2
    3. JDBC driver
    4. JDK
    5. A Java compliant web server
    6. XSL Servlet
    How do I verify, if the above software list is available in my environment.
    What are all available within the database and what are other software I need to
    install.
    Thanks
    Pushparaj

    It's a classpath problem. Either you mistyped the class name, or you don't have the class in your classpath. I think Oracle's drivers come in db12.zip or db12.jar or some such. Whatever that jar or zip file is, it has to be in your classpath, but it's not.
    Or it is in your classpath, but you're in an appserver context where the classloader that the container provides for your app uses something other than the classpath variable. For instance, in tomcat, the jar file would be uder webapps/yourApplication/WEB-INF/lib I think.

  • Add Command when selecting data tables

    I've been playing with the Add Command option that allows you to enter an SQL statement to select data for the report.  I was wondering what people use this type of command for?  I've used Crystal over 10 years but while I've been using Crystal XI for only about 3 years, I have never used this option.
    So what advantages does it have over the graphically selection and linking of data tables?
    What types of reporting is usually done with them?
    TIA, rasinc

    You have to know your database well and have fairly good SQL skills, but I've found that there are things I can't do directly in Crystal that I can do when I use a command as the data source.  A couple of examples are:
    1.  When I want to use cross-server joins (MS SQL) or dbLinks (Oracle) to get data from a second (or third!) database, this is the only way to do it short of using a stored procedure, which has it's own issues.
    2.  When I want to do something complex in the SQL, such as using a set of selects with Unions to "pivot" data without using a cross-tab.
    Also, Crystal doesn't always create the most efficient SQL so if I'm having problems with query performance in a report, I'll re-write it using a command so that I can tweak the performance.
    -Dell

  • Execute planning function in Web template for selected row in analysis item

    Hello all.
    I have been trying several different solution for this issue I have, but could not ,make it work. Hopefully, any of you can give me some ideas.
    Initially the scenario seems to be easy.
    I have a Web template were I show a query analysis item with costcenter, plan/act type, user and entry date. I allow single record selection in this item.
    I have a button that should execute a planning function from the plannig modeler.
    The planning function should be executed only for the costcenter and plan/act type which are selected in the analysis item.
    How do I have to link the two objects :analysis item and planning function, so that the planning function is executed with the correct filter? What should be the filter definition (if any expecific things to consider)?.
    Thanks in advance for your help.
    Best regards,
    Alfonso.

    Dear Deepti.
    Thanks a lot for your answer, but it did not solve my issue.
    The problem is that my query is not created over the same agregation level as the planning function is, and as per the link you have sent me it seems to be a prerequisite.
    Is there any other way to do it?
    More in detail, I am implementing a Lock/Unlock mechanissim for planning costcenters. I have a n ODS where I store my costcenetr status(lock or unlock) and I also have a cube where the planning values are stored.
    My query(to select the costcenter to unlock) is done from the ODS, and my planning function is done in an aggreagation level of my cube (this is to lock the costcenter in cube, to avoid incorredct updates while it is unlocked/locked).
    The issue that I have is that I can not find a way to send the selected information from the query to the planning function.
    I hope you have more ideas.
    Thanks a lot.

  • Data Error in the Query/Report after selective data deletion for infocube

    Hi Experts,
    Please advise what i was missing and what went wrong...
    I got a Query (Forecast) on a Multicube...which is based on 2 Infocubes with Aggregates...
    As i identified some data discrepency..yesteraday i performed selective data deleation on one of the Infocube
    and executed report yesteraday and the results in the query are correct...
    When today i executed the same report i am getting different results..
    When i compared the results of the report with that of data in cube they are not matching
    The report is not displaying the data in cube..for some rows it is displaying the data in the cube but for some rows it is just displaying same as the above row
    there is no data loaded into info cube after selective deleation
    Do i need to perform request compression and fill the aggregated after selective deleation
    Please advise what went wrong

    Hi Venkat,
    No i haven't done anything on aggregates before or after selective delete
    As there is not data load after the selective delete according to SAP Manual we don't need to perform any thing on aggregates...as selective data deletion on cube will delete data from aggregates as well
    Please update how to identify error

  • Devolped an ALV report for daily cash receipts for selected date range

    hi,   
                 how to devlop an ALV report for daily cash receipts for selected date range.for this report what are the tables and fields we have to use.what is the selectionscreen&what is logic.give me sample report.

    hi,   
                 how to devlop an ALV report for daily cash receipts for selected date range.for this report what are the tables and fields we have to use.what is the selectionscreen&what is logic.give me sample report.

Maybe you are looking for