How to delete rows from 2D array in this case...

Hello. I'm just begging adventure with labview so please for patient. I created a program whitch suppose work in following way:
2D Input array is array created by FOLDER BROWSING subVI. It works in this way,that browse folder and looking for txt files whose contanins measurment data. In my case subVI founds 4 files,and from theirs headers read information about what kind of data are in file also their's path. In this way is created 2D Input Array. subVI named PLOTS FROM PATHS ARRAY make picture with polar/XY plot. It's create only those plots and legends on one picture as many files(their paths) is setted to the program by output array. I made this subVI in that way and I would not like to change it. 
My problem is that in even loop (witch check for any change by user) program suppose to relay anly those rows(files) for which checkbox are marked, e.g. marking anly 1 and 4 box, program should chose from input array row 1 and 4 only and pass them to output array,then  PLOTS FROM PATHS ARRAY subVI makes a picture only with 1 and 4 plot and legend only for plot 1 and 4. The best solution would be some relay witch is avtivated by logical signal. It lost to me ideas how to solve it, I'm just in blaind corner...
I tried to use delete from array but I don't know how to do use it properly in this program,becease it can be only before or afeter for loop. Below is scan of front panel and also main problem. Please set me up somehow to solve this problem. 
Regards 
Solved!
Go to Solution.
Attachments:
plots selector.vi ‏17 KB
problem.PNG ‏18 KB

I have attached a vi. Is this the one that you need?
Anand kumar SP
Senior Project Engineer
Soliton Technologies Pvt Ltd
Attachments:
plot selector modified.vi ‏14 KB

Similar Messages

  • How to delete rows from multiple tables when pressing button

    Hi, I'm wondering how do I delete a row from two different tables at the same time when I press the Delete button. Both tables have GROUP_ID as their primary key.

    Nevermind! I realized that I had "reset" before my process to delete from the 2nd table.

  • How to delete string from an array

    I just want to know that what changes i can do to delete the string if contains any extra characters like digits and punctuation marks in the middle or begining of the string but not at the end of the string, i've already tried to delete only the punctuation marks at the end of the string and keep that word. Please dont forget that i m a beginer
    import java.io.*;
    import java.util.*;
    class Project
    public static void main()throws IOException
    // set up input stream
    File finput = new File("C:\\f1.txt");
    FileReader fr = new FileReader(finput);
    BufferedReader fin = new BufferedReader (fr);
    // set up output stream
    File foutput = new File("C:\\f3.txt");
    FileWriter fw = new FileWriter (foutput);
    PrintWriter fout = new PrintWriter (fw);
    String nextLine; // a line read from the file
    StringTokenizer t; // the words within the line
    ArrayList words = new ArrayList(); // an array of words
    //String n = {0,1,2,3,4,5,6,7,8,9};
    System.out.println("Reading file.\n");
    // start
    while (true)
    nextLine =fin.readLine(); // read from input file
    if (nextLine==null) break; // if no more lines, get out
    t = new StringTokenizer(nextLine); // identify words
    while (t.hasMoreTokens())
    String str = (String)t.nextToken();
    str = str.toLowerCase(); // Converting all uppercase to lowercase.
    // Replacing all punctuation marks.
    str=str.replace(',',' ');
    str=str.replace('?',' ');
    str=str.replace('!',' ');
    str=str.replace('.',' ');
    str=str.replace(':',' ');
    str=str.replace(';',' ');
    str=str.replace('"',' ');
    str=str.replace('"',' ');
    str=str.trim(); // Removing empty spaces after words
    words.add(str); // add them to array
    String z; // Declaring string z for sorting.
    for (int i=0; i<words.size(); i++)
    for (int j=i+1; j<words.size(); j++)
    // Sorting the Array list.
    if (((String)words.get(j)).compareTo((String)words.get(i))<0)
    z=(String)words.get(i);
    words.remove(i);
    words.add(i,(String)words.get(j-1));
    words.remove(j);
    words.add(j,z);
    // To replacing word which have got "'".
    if ((String)words.get(i)).indexOf("'")!=-1)
    a="";
    int count[]=new int[words.size()]; //Creating int array for counting the repetition.
    for (int i=0;i<=words.size()-1;i++)
    for (int j=i+1;j<=words.size()-1;j++)
    //Counting the repetition of the string.
    //if (((String)words.get(j)).compareTo((String)words.get(i))==0)
    if (((String)words.get(j)).equals((String)words.get(i))==true)
    count[i]++;
    words.remove(j);
    j=j-1;
    System.out.println("Dictionary\t|\tRepetition");
    System.out.println("==========\t \t==========\n");
    for (int i=0; i<words.size(); i++)
    count[i]++; // initialinzing the value with 1
    // Printing result on the output file.
    fout.println((String)words.get(i));
    // Printing result on the screen with histogram.
    System.out.println((String)words.get(i)+ "\t\t|\t" +count[i]);
    fout.close();
    System.out.println();
    System.out.println("Finished");
    } //end of main.

    The code that you pasted does not seem like written by a beginner. So, did you write the code?
    If so, you should have no problem solving this simple thing.
    If not, then copy and pasting a block of program that you don't understand will keep you as a beginner all the time, so can't help you if you are willing to stay at beginner.
    --lichu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Deleting rows from a table

    COuld anyone tell me how to delete rows from a table which has millions of rows.
    TIA,
    Oracle user

    if you are deleting all the rows, use "truncate table" in sql*plus.
    or if you are deleting all but a handful of rows, then copy the rows you still want to a spare table, drop the original table, and rename the spare table back to the original table's name.
    hope this helps

  • Delete rows from Tabular form

    Hi,
    Anyone knows how dynamicly delete rows from Tabular Form (on button click, button is as item)?
    Thanks.

    I am in a great fix. We had a test instance.. and we had a version apex 3.2.. But when the same application has been uploaded to prod.. we used apex 4.0.Why on Earth would you do this? The whole point of the testing is to verify that the application will work in the production environment: the first requirement for this is that the test and production environments are equivalent.
    has any body is facing the same issue as mine..Yes, as is easily discovered by searching the forum...see Delete button doesn't work in tabular form after upgrade from APEX3.2 to 4.

  • Delete Rows from T1 which are Not in T2

    Hi
    I've 2 Tables like below
    T1
    N1
    N2
    2
    11
    2
    22
    3
    33
    8
    44
    8
    88
    T2
    N1
    N2
    2
    22
    8
    88
    If I Run Delete query, I must delete Rows from T1 which are Not in T2
    For example, I must delete Rows 1,3,4 from T1
    So how to write that delete query? Please advice

    Delete from T1
    Where not Exists (select * from T2 Where t1.N1=t2.N1 and t1.N2=t2.N2)
    --or
    Delete t
    From t1 t
    left JOIN t2 m
    ON m.N1=t.N1 and m.N2=t.N2
    WHERE m.N1 is null and m.N2 is null
    --Or
    ;With mycte as
    select N1,N2 from T1
    Except
    select N1,N2 from T2
    Delete t
    From t1 t
    INNER JOIN mycte m
    ON m.N1=t.N1 and m.N2=t.N2

  • How to delete elements from a cluster?

    Hello. I would like to know how to delete elements from a cluster. I got stuck with this problem. There is its own order of each element in a cluster. I tried to initiate an array but it seems like too complicated. In the attached file, I want to obtain only the data from "flow" not "pressure". I try to use array programming but it doesn't work. Would be nice if you help me to fix the file. Thanks
    Solved!
    Go to Solution.
    Attachments:
    test 1.vi ‏16 KB

    Bombbooo wrote:
    What about if I want to store data into the pressure array too? Do I have to create another loop or it can be done in the same loop as the flow loop?
    Try this, for example. Modify as needed.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    test1MOD2.vi ‏9 KB
    SelectFlowOrPressure.png ‏7 KB

  • Unable to delete rows from Target.

    Hello everyone,
    I am unable to delete rows from target data store. Here is what I have done.
    Source Oracle 10g - staging 11g - Target Oracle 11g
    I have implemented consistent set CDC on data model in staging and added 2 tables to CDC and turned on the journals . Both tables A and B are joined together via Column E (primary key of table A). Table A is the master table(has foreign key). Table B is child table. Target column consists of all the columns of both table A and B.
    Following is what I am able to do and not to do
    ABLE TO DO. If data is inserted into both or any of journalized tables I can successfully load the same in target by performing following steps. 1. Extend the consistency window at model level. Lock subscriber. Run the interface with any source table marked as Journalized data only. Unlock subscriber and purge journal.
    ABLE TO DO. If data is updated in any of the journalized table, along with the steps mentioned above I can execute two interfaces. In one Interface table A marked as journalized data only Joined with table B and in second interface table B marked as Journalized data only joined to table a.
    NOT ABLE TO DO If data is deleted from one or both tables it shows up as journalized data in JV$D<tablename> marked as D with date and subscriber name but when i run the interface by extending the window , locking subscriber executing both interfaces, unlock subscriber purge journals. no change takes place is Target. After unlocking subscriber step, journalized data gets removed from JV$D view. Please let me know what I am doing wrong here. How can rows delted from source can also be deleted from TARGET?
    NOTE : In the flow table SYNC_JRNL_DELETES is YES
    In moel under jounalized table tab Table have following order Table A folloed by Table B
    Thanks in advance
    Greenwich

    Sorry I still do not get it. when you say "Its a legacy app", are you talking about the VB.NET app ?
    If so then I repeat my self :-) Why not to connecting to the SQL server directly?
    * even if you need information from several databases (for example ACCESS + SQL Server), in most cases, it is much better to connect directly and get each information to the app. Then in your app you can combine the information and analyse it
    [Personal Site] [Blog] [Facebook]
    Access app is the legacy app. 

  • How to delete rows in the target table using interface

    hi guys,
    I have an Interface with source as src and target as tgt both has company_code column.In the Interface i need like if a record with company_code already exists we need to delete it and insert the new one from the src and if it is not availble we need to insert it.
    plz tell me how to achieve this?
    Regards,
    sai.

    gatha wrote:
    For this do we need to apply CDC?
    I am not clear on how to delete rows under target, Can you please share the steps to be followed.If you are able to track the deletes in your source data then you dont need CDC. If however you cant - then it might be an option.
    I'll give you an example from what im working on currently.
    We have an ODS, some 400+ tables. Some are needed 'Real-Time' so we are using CDC. Some are OK to be batch loaded overnight.
    CDC captures the Deletes no problem so the standard knowledge modules with a little tweaking for performance are doing the job fine, it handles deletes.
    The overnight batch process however cannot track a delete as its phyiscally gone by the time we run the scenarios, so we load all the insert/updates using a last modified date before we pull all the PK's from the source and delete them using a NOT EXISTS looking back at the collection (staging) table. We had to write our own KM for that.
    All im saying to the OP is that whilst you have Insert / Update flags to set on the target datastore to influence the API code, there is nothing stopping you extending this logic with the UD flags if you wish and writing your own routines with what to do with the deletes - It all depends on how efficient you can identify rows that have been deleted.

  • Add/Delete rows from ALV-grid

    Hi to all,
    i have 2 questions concerning alv-grids:
    i have an alvgrid displaying a table and what i need is some functionality to add or delete rows from the alvgrid - how can i do that ?
    within one row i have one field containing the status and i want to be able to select the status from a combo/dropdown-field and set it for this particular row.
    thanks in advance!

    Hi,
    Report BCALV_EDIT_04 shows how to append and delete rows.
    Report BCALV_EDIT_06 shows drop down list for cells in a column.
    These report should be available in any R/3 system including all ABAP Preview versions.
    Hope this can help.
    Regards, Johan

  • Deleting rows from a JTable

    Hello,
    I've got a JTable which is based on a 2-dimensional array, which contains my data. Now I want to delete several rows from the JTable. There's the possibility to modify my data-array by creating a new array which doesn't contain anymore the datasets I want to delete. Afterwards I can redraw the table and my rows are deleted. But I think that's a very complicated way to delete rows from a JTable. Can anybody tell me whether ther's an easier way to do so ? I'd really be pleased...
    Thanx,
    Findus

    When you create a TableModel using a two-dimensional array or a Vector of Vectors, a DefaultTableModel is created and it stores the data in its own Vector of Vectors. The DefaultTableModel supports methods for adding/removing rows of data. To remove the first row in the table you would do something like:
    DefaultTableModel model = (DefaultTableModel)table.getModel();
    model.removeRow( 0 );
    Note: once you create the TableModel you should set your array to null as it is not used anymore.

  • Prevent user from deleting rows from all tables in his own schema

    Hi,
    How can I prevent user from deleting rows in all tables in his own schema.
    I want the user to not able to delete rows from any existing or new tables that might be added in the future.
    The user does not have the "DELETE ANY TABLE" system privilege.
    Please advise.
    Thanks.

    Nowadays, I'd also avoid triggers (if possible).
    Sometimes, when I daydream, I'm rewriting a few applications that I've contributed to as a newbie, and I'm very ashamed of it nowadays.
    From what I've experienced, in retrospective, the emphasis on teaching 'Oracle stuff' has been lying far too much on PL/SQL row-by-row oriented processing instead of letting Oracle 'crunch' sets at once.
    Most of my debugging hours ended up in discovering one or more database triggers 'doing stuff automagically'.
    Another nice blogpost: http://rwijk.blogspot.com/2007/09/database-triggers-are-evil.html
    Regarding OP's question:
    I would just rethink/reconsider this requirement completely.
    Correctly implementing privileges and roles seems the best way to go, yes.
    Triggers? Nah...
    pre-post-edit, noticed thread got updated just before posting
    Don't know what you mean with 'namedropping', but I think it's legitimate to point other readers to interesting Oracle related opinions/articles that do have a technical background and lots of interesting examples.
    post dreaded OTN outage edit (from here)
    Again: I would just rethink/reconsider this requirement completely.
    Both trigger/vpd are being used to hide a design flaw here.

  • HOW TO DELETE FILES FROM ADOBE READER IF THEY ARE UNNECESSARY

    HOW TO DELETE FILES FROM ADOBE READER IF THEY ARE UNNECESSARY

    Hi,
    You might need to sign up at https://cloud.acrobat.com/ and choose 'Files' tab where you can find all the files.
    Select all the files you want to remove and choose 'Delete' option.
    Regards,
    Anubha

  • How to delete songs from iPod touch

    How to delete songs from iPod touch

    If yu have iOS 5 then swipe the sonf left or right and a delete button should appeat. tap that. For earlier IOS you need to unsync the songs.

  • How to delete video from iTunes library? del and shift+del are not working - no any reaction

    how to delete video from iTunes library? del and shift+del are not working - no any reaction.

    seb963 wrote:
    Hi
    Currently, iMatch is turned off on my computer, as I do not want to upload any more songs. If I turn it on, will it upload all songs that are currently in my library? Is there another way that deleting them one by one?
    You must enable iTunes Match on the new computer. The best way to accomplish what you want to do is to create a new, empty library by launching iTunes while holding down the Option key (Shift on Windows) and choosing "new library." Do not let iTunes scan for new content, but do enable iTunes Match on the empty library. Once the scan is finished you may delete tracks from the cloud. When you are done switch back to the main iTunes library.

Maybe you are looking for

  • Printing via Airport Express:  Missing Final Form Feed

    Maybe a guru could help with this one... Spooling a print job from an iMac G5 to an HP Photosmart 7150 that is connected to the Airport Express USB port... The job prints fine but I don't get a FINAL FORMFEED after the last page has printed. I have t

  • Migrating a table with BLOB field from SQL-Server to Oracle.

    Hi All, I'm trying to create a Class to migrate data from SQL-Server to Oracle, this table has a BLOB field. The Code: package br.com.infox; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql

  • How to display data in report page footer ?

    Hi friends, we have heading popup defined in PLUS. but I don't know hw I can place information in the footer part of the report page.

  • Can't switch VT's with Ctrl+Alt+Fx or Ctrl+Alt+backspace terminate

    Ctrl+Alt+F2 doesn't seem to register. It's been a long term issue I have had for years. I've tried all the various fixes. I can manually change to virtual terminals without issues using: sudo chvt 2 Once I'm in a VT I can use Alt+Fx to change between

  • Ipod wont respond

    The click wheel on my ipod mini wont respond at all. I cant reset it or do anything using the click wheel. I have tried updating my software and even completly restoring the ipod to no effect. I have no idea what could be wrong with it please help.