Delete from multiple rows elements from Array

I have an array that contains about 3700 rows, and 4 columns. Every 37 rows a cycle of data begins. I would like to delete the first row of every cycle of data (i.e. row 1, row 38, row 75, row 111, etc -- until I have deleted every 37th row in the entire array). Then if possible I would like to take an average of rows 2 through 37, 39 through 74, 76 through 110, etc...
Any help would be greatly appreciated.

> After I modify the arrrays, I am displaying them both in lab view (in
> multiple different graphs and a table), and then also using active X
> to transfer the data to Excel (where is will be re-arranged and
> plotted accordingly).
>
> I indeally need to get an average of the points in the array about
> every 36 rows, and then display this, since I am looking to track the
> output decay over time. If you have any suggestions as how I might
> find and average of every x number of rows in an array, and either
> input these into another array or a table, that would be greatly
> appreciated.
>
I can't see the original post about the data shape, but if you have a 2D
array, wire it into a For loop. Use i mod 36 equals 0 to select whether
you
add the array to the current total in the shift register, or whether
you divide the total array by 36 and append it to the averages array,
then overwrite the total to restart the process. If the rows isn't
doesn't contain an integer multiple of 36 rows, you need to deal with
the excess data either ignoring or making an average with a different
denominator. I'd assume you do this outside the loop.
Greg McKaskle

Similar Messages

  • Memory/Speed of Split 1D array vs Delete from array

    Just wondering how Split 1D array works - does it create two new arrays in a new section of memory or does it just split the existing array in two, reusing the memory in place. (assuming that the original array is not needed elsewhere). If the latter is the case then presumably it is more efficient to use split array than delete from array if I want to remove element(s) from the beginning or end of the array. Is there a speed advantage as well?
    If I use split array but don't then use one of the output arrays is that memory deallocated or does the array remain in memory?
    Thanks
    Dave

    Ok please ignore the results I posted earlier, they are rubbish - not least because I got the column headings mixed up but also because my code was full of bugs
    So, here is a revised table, and the code - which hopefully only contains a few bugs... I'm not clued into benchmarking yet so please feel free to rip the code apart.
    I still get different results depending on where in the array I split it, most noticeably with subset and reshape. There is no effect with split. I'm guessing this is to do with the memory allocation. (I have not preallocated memory in my code, but I did wire the output arrays to Index Array)
    Message Edited by DavidU on 08-12-2008 04:49 PM
    Attachments:
    Benchmarks 2.png ‏13 KB
    split array test.vi ‏25 KB

  • Deleting/Creating multiple Text elements!

    Hi Friends,
    I have two questions on TEXT ELEMENTS.
    1. My program lines....
    wa_output-line1 = 'Financial Accounting'(001).
        wa_output-line6 = 'Financial Accounting'.
        lv_vartext = 'Financial Accounting'.
    If you observe above code you can identify that there is a text FINANCIAL ACCOUNTING , which is repeating three times.
    and for the first time TEXT ELEMENT created. and to create for other i have to double click and it will assign same TEXT ELEMENT to my text. I have to do this action by searching them in my code.
    Is there any simple step to do this, to reduce this time....? ( Because TEXT ELEMENT with same text already created )
    In my program I have more than 50 text elements and each repeating more than 20 times in my report.
    Forget about alternates.. advise if there is any navigation to do this..!
    2. Say I have 50 text elements in my text elements screen...
    and now i want to delete all unnecessary text elements... Unnecessary means which are no where called in my program.
    Can i do it with out manual effort...? I mean... want to avoid.. searching each of them in my report and then deleting.. !?
    Thanks ,
    Naveen Inuganti.

    Hi Naveen,
    1.To replace all the text elements at a time you need to press Find Button(CTRL+F) and give the  text (FINANCIAL ACCOUNTING
    and replace with TEXT ELEMENT.
    2.To delete unused text elements,First find the text elements which are not used by Extended Program Check(EPC) by usng SLIN transaction code ,select character strings checkbox and execute.Then check for warnings in character strings,it will list of unassigned text elements.llist out the text elements and delete from your program.
    Thanks & Regards,
    Pydi Reddy.

  • Splitting a message with multiple rows from the JDBC Adapter

    Hi,
    I'd like to split the resultset message with multiple row elements and process each row separately..
    Does someone have this experience?
    Thanx, Peter

    Hi Chandrasekhar,
    I tried to follow your advise, but I'm not able to complete the process correctly.
    Let me explain my process:
    First - output from the JDBC adapter goes into the first receive step. Of course, there are multiple ROW elements. (Should be marked the ingoing message marked in the container as Multiline??)
    The next should be the transformation:
    format of the source message is like
    <message>
      <row>
        <column>w</column>
      </row>
      <row>
        <column>w</column>
      </row>
    </message>
    In the message I have the ROW element as 0..unbounded
    and <column> element exactly 1
    This message should be mapped to multiple messages of the format:
    <message>
      <value>w</value>
    </message>
    How should be the mapping be done?
    Is it N:1 or 1:N (because in another thread there was an 1:N mapping advised)
    Then (as you say) should follow the Block step:
    Which message (container element) should be marked as Multiline? And what does it mean: Current Message?
    Can you give me some advise, when and how to use the multiline mark?
    Thanx a lot, Peter

  • How to delete multiple rows

    hello
    i want to delete selected multiple rows in sigle shot? can i have steps, very urgent?
    Thanks
    krish

    Krish,
    Normally the multiple selection delete will come from a table,
    In that case call a AM method
    and in a while/for loop traverse through the VO records and check the Checked Value(chexbox value to delete)
    and if the value is Y , do row.Remove()
    At the end commit,
    Eg.
    XXPODskOrdLnsVORowImpl lineRow = (XXPODskOrdLnsVORowImpl)lineVO.first();
    while(lineRow !=null)
    //check the checkbox value
    if("Y".equals(lineRow.getSelected))
    lineRow.remove();
    XXPODskOrdLnsVORowImpl lineRow = (XXPODskOrdLnsVORowImpl)lineVO.next();
    Hoe this helps.
    Thanks,
    With regards,
    Kali.
    OSSI.

  • Remove Entry from Array

    Hi,just another question. Is it possible to remove an entry inside an Array without splitting up by using SubSet und with a combine after that? I found no function for that way...RegardsHenrik

    Henrik Skupin wrote:
    > Hi,
    >
    > just another question. Is it possible to remove an entry inside an
    > Array without splitting up by using SubSet und with a combine after
    > that? I found no function for that way...
    The new LabVIEW 6i has a "Delete from Array" VI that will do this more
    elegantly.
    Regards,
    John Lum

  • How can I do to delete some lines of a 2D array when I push a button ?

    With Labview 5.1 : I have a 2D array and I want to delete a line ( I think to delete its first one or its last one could be easier) when I push a control button. How can I do ?
    Regards.
    Cyril.

    I only have LV 6.1, take a look the pic and hopefully that will help. You need to use delete from array and then select which row or column you want to delete. then put it inside the case structure.
    Best Regards,
    Saw
    Attachments:
    test.bmp ‏81 KB

  • How to delete multiple rows from ADF table

    How to delete multiple rows from ADF table

    Hi,
    best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
    Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code
    Frank

  • Best practice for deleting multiple rows from a table , using creator

    Hi
    Thank you for reading my post.
    what is best practive for deleting multiple rows from a table using rowSet ?
    for example how i can execute something like
    delete from table1 where field1= ? and field2 =?
    Thank you

    Hi,
    Please go through the AppModel application which is available at: http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
    The OnePage Table Based example shows exactly how to use deleting multiple rows from a datatable...
    Hope this helps.
    Thanks,
    RK.

  • How do I delete multiple rows from datagrid?

    Hi,
    I have a datagrid which has an item renderer on the 1st column which displays a checkbox. I wish to delete all the rows of data from my datagrid which have the checkbox selected.
    I'd be very grateful if anyone can anyone help me with this.
    Thanks in advance,
    Xander

    Test this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" layout="vertical" xmlns:components="components.*">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                [Bindable]
                private var dp:ArrayCollection;
                private function init():void
                    var sa:Array = [{selected: false, value: "Some value"}, {selected: true, value: "Some other value"}];
                    dp = new ArrayCollection(sa);
                private function handleDelete():void
                    var na:Array = dp.source.filter(function callback(item:*, index:int, array:Array):Boolean
                                return item.selected == false;
                    dp.source = na;
            ]]>
        </mx:Script>
        <mx:DataGrid dataProvider="{dp}">
            <mx:columns>
                <mx:DataGridColumn headerText="Column 1" dataField="selected">
                    <mx:itemRenderer>
                        <mx:Component>
                            <mx:CheckBox selected="{data.selected}" click="data.selected = event.target.selected"/>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>
                <mx:DataGridColumn headerText="Column 2" dataField="value"/>
            </mx:columns>
        </mx:DataGrid>
        <mx:Button label="Delete selected" click="handleDelete()"/>
    </mx:Application>
    Dany

  • Deleting Multiple Rows From Multiple Tables As an APEX Process

    Hi There,
    I'm interesting in hearing best practice approaches for deleting multiple rows from multiple tables from a single button click in an APEX application. I'm using 3.0.1.008
    On my APEX page I have a Select list displaying all the Payments made and a user can view individual payments by selecting a Payment from the Select List (individual items are displayed below using Text Field (Disabled, saves state) items with a source of Database Column).
    A Payment is to be deleted by selecting a custom image (Delete Payments Button) displayed in a Vertical Images List on the same page. The Target is set as the same page and I gave the Request a name of DELETEPAY.
    What I tried to implement was creating a Conditional Process On Submit - After Computations and Validations that has a source of a PL/SQL anonymous block as follows:
    BEGIN
    UPDATE tblDebitNotes d
    SET d.Paid = 0
    WHERE 1=1
    AND d.DebitNoteID = :P7_DEBITNOTEID;
    INSERT INTO tblDeletedPayments
    ( PaymentID,
    DebitNoteID,
    Amount,
    Date_A,
    SupplierRef,
    Description
    VALUES
    ( :P7_PAYMENTID,
    :P7_DEBITNOTEID,
    :P7_PAID,
    SYSDATE,
    :P7_SUPPLIERREF,
    :P7_DESCRIPTION
    DELETE FROM tblPayments
    WHERE 1=1
    AND PaymentID = :P7_PAYMENTID;
    END;
    The Condition Type used was Request = Expression 1 where Expression 1 had a value of DELETEPAY
    However this process is not doing anything!! Any insights greatly appreciated.
    Many thanks,
    Gary.

    ...the "button" is using a page level Target,...
    I'm not sure what that means. If the target is specified in the definition of a list item, then clicking on the image will simply redirect to that URL. You must cause the page to be submitted instead, perhaps by making the URL a reference to the javaScript doSubmit function that is part of the standard library shipped with Application Express. Take a look at a Standard Tab on a sample application and see how it submits the page using doSubmit() and emulate that.
    Scott

  • Deleting multiple rows from SUD dialog table

    Hi,
    I have some SUD dialog tables that I would like to delete some rows from.  I can select and delete all or one row (using a SUD button that finds out which one row was selected or if all, and then deleting them with the table.rows.remove command), but I seem to have troubles if I want to select multiple rows (either in a range, ex: rows 3-10, or non-sequential, ex: 1, 4, 6 and 23).  I just started working on this but thought maybe someone has already done this and can save me the trouble!
    Thanks!
    Julia Moeller

    Hi Julia,
    Just a quick guess-- try looping backwards and deleting the last rows first:
    FOR i = 10 TO 3 Step -1
      table.rows.remove i
    NEXT
    Haven't tested it, so no guarantees,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Delete multiple rows from table/list control

    Hi,
    I want to have a table control in which a user can enter different entries, like this:
    My program would read each entry at a time and do something.
    However, I would like to give the user ability to delete multiple entries at once, like in an Excel spreadsheet - that is, the user selects multiple rows and presses "Delete" key and those entries get deleted. The Labview table does not allow this it seems - I can only delete one entry at a time - or I have to right-click and select Data Operations->Cut Data, which is awkward.
    Is there a control better suited to what I want to do? I tried a Llist control, but it behaves in the same manner.
    Thanks in advance!
    Solved!
    Go to Solution.

    You could write your own routine.  Use an Event Structure with a Key Down event.  If the delete key was pressed and the table has focus delete the elements that are selected.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • DELETE MULTIPLE ROWS FROM MATRIX

    Hi all,
    I´M DESPERATED.
    I am able to delete row by row in my matrix, but ¿Could anyone post a sample to delete multiple rows?
    I´ve been trying several ways but it doesn´t work.
    My code is:
    ========================
      Dim i As Long = oMatrix.GetNextSelectedRow
                    If i > -1 Then
                        If oMatrix.IsRowSelected(i) = True Then
                            oMatrix.DeleteRow(i)
                        End If
    ========================
    Thank you in advanced,
    lorenzo

    Don´t worry, It was a problem with my loop.
    Thanks anyway
    lorenzo

  • How to delete a selected row from datagrid and how to create a datagrid popup

    hi friends,
                  I am new to flex.i am doing a flex4 application,i need help for this.
                i am having a data grid with columns.i have two questions.
               Ques 1: when  i selected a partiuclar row from a datagrid and click delete button  means that record will delete from the datagrid and DTO from the cloud  tables also.
                Ques 2: when i save  the data grid values using save button means that data will store in  respective cloud DTO which is related to the datagrid,
                     My requirement is i am using a search button when i click the search  button it will show a datagrid that datagrid will contain the previous  datagrid datas which is saved in the cloud.
    REQUIREMENT example: first screen:           i am using with data grid 3 columns (Student Roll number ,Student Name,Student pecentage)---->save--->data will store in cloud DTO.
    Second screen:                search button ----> it need show  datagrid popup.it will have data which we saved in the first screen with same columns(Student Roll number ,Student Name,Student pecentage).
    This is my requirement.
    Any suggession welcome.
    Thanks in advance.
    B.Venkatesan

    Lets break the problem statement in multiple steps
    1. We need a way to know the selection on all rows.
    2. We need the association of the checkBox with the data
    The  solution is to use a arrayCollection/array that holds all the instances  created for checkbox.This collection should be a property of component  containing the datagrid. We need to use a custom component  implementation or inline ItemRenderer. The way you have used is called  dropinItemRenderer. Preferaly use custom component implementation and  add the instance to the arrayCollection at CreationComplete. Make sure  you use addItemAt so that you add the instance in the same row as the  data. To get rowIndex the custom Checkbox should implement  IDropInListItemRenderer. You could iterate this collection to check all  the instances that are checked.
    Note: This is the approach considering your dataprovider doesnt have a selection field.
    Nishant

Maybe you are looking for

  • Errors while copying File Oracle 11G installation on AIX 5L

    Hi, I just try to install oralce 11g on my AIX 5l machine. All requirements has been checked and are done. While installation I get many Errors like "File not find:" /oracle/SID/..../applications/WFMLRSVCApp.ear , wfjvlsnr.csh, wfmgrstop.csh ..etc. I

  • Xrpcc: Generate stub from existing WSDL

    Hi, I have an error when generating stub from existing WSDL using xrpcc tool. Anyone know what is the problem? Thanks! The error message: warning: ignoring operation "registration": more than one part in input message warning: ignoring operation "che

  • Special characters in phone number

    Hi, My company decided that all private calls should be made with the prefix *140# in the phone number, allowing seperation in the bill. First I added this prefix to the phone numbers of all my private contacts in the Address Book, but when i perform

  • 1.9 GBs worth of apps but it says i have 3.1 GBs?

    I go to my apps and click "Show internet explorer" and i select all my games and apps and i have a total of about 1.9 GBs. However when i go to my summary page it says i have 3.1 GBs worth of apps! What is this extra 1.2 gigs? save files? This is bug

  • Why does iWeb upoad the original photo in addition to the blog photos size

    Hi, why does iWeb upoad the original photo in addition to the blog photos size? It's a waist of webspace. JO