Recursive Multiplication based on row and column values

Hi all

I have a 2d array of strings with the values a colum representing a set number or subset of point and the other being the quantity of the item in its parent resembling:
1                  2

1.1              3

1.1.1 5

1.1.2 4

1.2             4

1.11 2

2                1

I want to produce a third column that shows the total number of items together (IE 2 point 1 means 6 of point 1.1, 30 of 1.1.1 1.1.2 24 8 1.2, 1.11 4 and 1 of 2) resembling:

1                  2             2

1.1              3             6

1.1.1          5             30

1.1.2          4             24

1.2             4             8

1.11           2             4

2                1             1

I was curious to know regarding if someone had a suggestion as to best achieve the LabVIEW tell how and what to multiply. I imagen has something intelligent can be done with and wile loops, but I'm not.

I think you are looking for something like this.  I used the corresponding regular Expression to find the last time n then used this name to search for in the variant for an attribute with the same name.  It exists, then the total that is stored in the variant is returned.  Multiply and store them in the Variant.

Tags: NI Software

Similar Questions

  • Write multiple rows and columns of the worksheet

    Is it possible to write several rows and columns of the spreadsheet, with the ability to add data to the file and create a new file if it does not exist?
    I tried to write to table vi, but I couldn't make it work.
    It won't let me write several lines in the same column.
    Can someone please give me an example?
    Thanks in advance.

    If you want to use the tab character (\t) as the delimiter, then check the txt file.  Then Excel will open as you wish.

    If you want to keep the csv extension, then use comma (,) as a separator.

  • How can I insert a number to a specific index (row and column) to a table

    I had the most with function 'insert into array' problem because of its counter-intuitiveness. I want to insert a number I got inside a loop IN a table. The ROW and COLUMN of this table I want enter the number is specified by the number of loops of two loops FOR. It did not work.

    So, I have isolated and tested this function further. Frankly, I initialized a table 2D with ZEROS and plugged into the "insert into array" function (on top of entry). I then put the number '1' for the index (line) and the number "2" for the index (column) and then put the entry number "6" for the "new item/sub-table. Then, I hung a picture of 2-D (indicator) output to the output of the function "insert into array. When I did all that, it means I want to just put the number '6' in line '1' and the column '2'... This isn't letting me do it.

    How can I do this SIMPLE?

    Hi Darrell h...,

    Looks like you can use the function "autoindexing. Take your value and connect it to your loop, it will be a default autoindexing. Right-click on the last tunnel of output and select Create indicator, the result is your table.

    It will be useful.

    Mike

  • Sortable rows and columns

    Is it possible to drag and drop the rows and columns of a multicolumn script to rearrange them. If this isn't the case, it would be appropriate.

    Please write to us.

    We do not expect to support mobile in an AV Scripts columns because they are only 2 columns fixed in script format.

    If you create a script to multiple columns and click on a column heading, you will end up by selecting the contents of that column. Press CTRL-X to cut this column, then press CTRLV to paste the column somewhere before an existing column.

    This should solve your problem.

    -Anubhav

    Anubhav Rohatgi

    Senior product manager

  • How to change the rows and columns of newtabs?

    I can't change the rows and columns to mozilla version 33

    From topic: config browser.newtabpage.columns shows 5 by default, but these 5 columns appear not only 3 as before. Don't know why, but I use generally not even the default new tab page in my profile daily.

    Still works this - https://addons.mozilla.org/en-US/firefox/addon/new-tab-tools/ - extension to change the page of newTab via a user accessible interface name in the Addons, rather than routing autour Manager inside Firefox. I use this add-on in a second profile that I use for my favorite sites

  • How to get the string (specified by row and column) of txt file with labview

    Hello world

    How to get the string (specified by row and column) of txt file with labview

    THX

    As far as I know, a text file has no column.  Be more specific.  Do you mean something like the 5th word on line 4, where the words are separated by a space, and lines are separated by a newline character?  You can read from the spreadsheet String function and set the delimiter to a space.  This will produce a 2D channels table.  Then use the table to index and give the line number and column number.

  • Obtaining of row and column of a table element

    Hello

    I have a table of 24 rows and column 24 giving me a total of 576 items. How can I get the row and column of a particular element in a table in LabView. For example if I write to item 127 How can I get the column and line item 127 is located.

    Kind regards

    Bastien

    Hi Marion,.

    Maybe just need to find the right "address" element in your 2D table?

    Use something like this:

    Maybe you have to out of line & column according to your numbering scheme...

  • How to copy/paste in rows and columns

    Let's say I have an object in PS (gummy bear for example) and I want to duplicate in rows and columns. Is there a way to do it automatically?

    1. open your file of gummy bear and resize the image to a smaller, if necessary.

    2 file > set the model. Name it and ok.

    3. open a new file, 8 x 10, for example

    4 edit > fill > model... and in the Custom model drop-down list, it will be the last of them. Choose it.

    5. click on OK

    Fact.

    If your want a space between gummy bear, add space in step 1

    Good luck

  • Max rows and columns

    What can be the maximum number of rows and columns, you can have in a table in an oracle database?

    See the limits of logical database in http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/limits003.htm#i288032.

  • Rows and columns help

    Previously on AI9 when I wanted to change a matrix that I created using rows and columns, I select the cells in the matrix and then click rows and columns.  Now I have CS4 and the documentation says that I should be able to do the same thing using the Options of the Type of area.  However, when I select the cells of a matrix that I created in AI9, Options of Type box is ghost out.  How to change this matrix?

    I would copy and paste in front before I try this.

    Then select the text which is place the text cursor in the text frame, you want to split or select it with the selection tool.

    then see if the Type > text box Options are available. They should be.

    If this isn't the case, it means they aren't object path text box.

    Click on the image with the tool text box to make a block of text in box now the options should be available.

    The way to know if these are paths of purpose is to select one and go to object > path > split into grid and if it's available, then it is an object path.

    The text engine and this feature was changed to AI CS1 and this is probably the cause of the translation to be a little messed up.

  • How to create the table with the rows and columns using the layout?

    One of my friends advised me to put my site on the mode of provision as it is better than the standard as he said
    but I couldnot make an ordinary table with the rows and columns in mode available th
    y at - there someone who can tell me how to?
    Thank you very much

    Wednesday, April 18, 2007 21:01:38 + 0000 (UTC), "Mr.Ghost".
    wrote:

    > A friend of mine advised me to put my whole site on the mode of disposal as its
    > better than standard, as he says

    Your friend won't. Don't listen to him any more. Mode of disposal creates
    very fragile and rigid code pauses at the first opportunity.

    Gary

  • How to Exchange rows and columns where to access the paper web in html IE

    Hi all!

    I use web analytics studio Oracle hyperion with Version: 11.1.1.2.0.940. Design of web document analysis, I use the spreadsheet, then turn to the analysis view, I can swap the row and column position by dragging and pulling.

    But when I access the document by the smartcut in ie browser, opening in the html template, how can I exchange line and column position?

    Thank you very much in advance.

    OK, I think I understand what you're saying. The problem is that it does not show the left pane with a smartcut.

    Here's a tip. Add a button of 'Service '. Add "Information Toggle Pane" as the service.

    When you click the button that will open the left handle in HTML view panel. You will then see row and column and you should be able to switch the dimensions as needed. I just tested and it works.

    hope that helps.

  • Using PL/SQL to retrieve column names and column values

    If I have a table as follows

    Table has)
    meal varchar2 (32),
    drink varchar2 (32),
    VARCHAR2 (32)) desert.

    and the table contains a row

    drinks food desert
    -------------------------------------------------------
    Pork chops crispy Apple of iced tea


    Is it possible in pl/sql to retrieve the names of columns and values. I have an object type
    (OBJECT) ACE DATA_DEFINITION_T
    VARCHAR2 (32) 'FIELD_NAME ',.
    'FIELD_VALUE' VARCHAR2 (32)

    I need to store the column name in field_name and the value of column in field_value.

    So, the result would be:

    Field_name = meals
    Field_value = pork_chops

    Field_name = drink
    Field_value = iced tea

    Field_name = desert
    Field_value = croustade

    Thanks in advance.

    The Subscriber to the queue will pick up the message and how to process the data (field_value) based on the field_name (s). With the domain name, it cannot be what to do with the data.

    Sounds like an XML approach would be better than this owner = value field.

    You have considered things like [DBMS_XMLGEN | http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#i1025386]?

    Concerning
    Peter

  • Referring to the dynamic cursor rows and columns in SQL

    I have a procedure that dynamically reads a schema name and a table name in a table entry. The code must loop through all the rows and the columns in each table and the output data. I'm done with what I want to achieve 95%, but there is a little bug. The dbms_output.put(*col.column_name* ||) line '',''); ' ||
    return to something like rec.col.column_name , so that it is the column of the current record. Currently, it simply displays the name of the column for each record instead of the actual value. Can someone help me to change the code to get the real value?

    CREATE OR REPLACE PACKAGE BODY some_proc
    -Function and procedure implementations
    PROCEDURE create_files IS
    CURSOR c_tbls IS
    SELECT * FROM tbl_list;
    l_sql VARCHAR2 (4000);
    BEGIN
    -To loop through all the tables
    FOR tbl IN c_tbls LOOP
    l_sql: = "DECLARE" | «C_tbl_recs CURSOR IS» | ' SELECT * ' |. '
    'FROM ' | tbl.schema_name | '.' || tbl.table_name | '; ' ||
    ' t_tbl_rowtype c_tbl_recs % ROWTYPE; ' || "START" |
    "FOR rec IN c_tbl_recs LOOP |
    ' FOR col IN (SELECT column_name ' |)
    "FROM dba_tab_cols" |
    "Owner WHERE ="' | " tbl.schema_name | '''' ||
    ' AND table_name = "' | tbl.table_name | '''' ||
    ORDER BY column_id) LOOP '.
    *' dbms_output.put(col.column_name ||) '',''); ' || * "END OF LOOP; dbms_output.put_line('''); END LOOP; ' ||
    ' END; ';
    -dbms_output.put_line (l_sql);
    EXECUTE IMMEDIATE l_sql;
    END LOOP;
    EXCEPTION
    WHILE OTHERS THEN
    dbms_output.put_line (SQLERRM);
    END;
    END;

    Is this what you are looking for?
    (it took a few minutes)

    create or replace
    package some_proc is
    procedure create_files;
    end;
    /
    
    CREATE OR REPLACE
    PACKAGE BODY some_proc
    IS
      -- Function and procedure implementations
    PROCEDURE create_files
    IS
      CURSOR c_tbls
      IS
        SELECT * FROM tbl_list;
    
      CURSOR c_cols (p_table_owner VARCHAR2, p_table_name VARCHAR2)
      IS
        SELECT column_name
        FROM all_tab_columns
        WHERE owner   =p_table_owner
        AND table_name=p_table_name
        ORDER BY all_tab_columns.column_id;
    
      l_sql     VARCHAR2(32000);
    
      separator VARCHAR2(1):=';';
    
    BEGIN
      --Loop through all tables
      FOR tbl IN c_tbls
      LOOP
        dbms_output.put_line('TABLE: '||tbl.schema_name||'.'||tbl.table_name);
        l_sql := 'DECLARE ' ;
        l_sql := l_sql|| '  CURSOR c_tbl_recs IS ' ;
        l_sql := l_sql||'    SELECT * FROM ' || tbl.schema_name || '.' || tbl.table_name || '; ' ;
        l_sql := l_sql||'    linenr number:=1; ';
        l_sql := l_sql||'BEGIN ' ;
        l_sql := l_sql|| ' FOR rec IN c_tbl_recs LOOP ';
        FOR c IN c_cols(tbl.schema_name,tbl.table_name)
        LOOP
          l_sql:=l_sql ||' if linenr=1 then  dbms_output.put('''||c.column_name||''||separator||'''); end if; ' ;
        END LOOP;
        l_sql :=l_sql||'  dbms_output.put_line(''''); linenr:=linenr+1; ';
        FOR c IN c_cols(tbl.schema_name,tbl.table_name)
        LOOP
          l_sql:=l_sql ||' dbms_output.put(rec.'||c.column_name||'||'''||separator||'''); ' ;
        END LOOP;
        l_sql:=l_sql||'  end loop; ';
        l_sql:=l_sql||'  dbms_output.put_line(''''); ';
        l_sql:=l_sql||'  dbms_output.put_line(''''); ';
        l_sql:=l_sql||'end;';
        EXECUTE IMMEDIATE l_sql;
      END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
      dbms_output.put_line(SQLERRM);
    END;
    END;
    /
    
  • Expand the table, the rows and columns

    I can make my table grow in rows or in columns, but not both, when I add a line, it will not add the column that I just added and the colum will not include the line that I just added.

    We know what script I need for the addInstance know whan I added a new row or column.

    Thank you.

    I had a look, and here's what I came with. Whenever you add a row or column, you are chnaging the expression of som that allows to add the next row or column. I added a loop around each call to add the columns/rows as needed.

    Is that what you're looking for? See the attached file

    Paul

Maybe you are looking for

  • QuickBooks Online does not open after upgrade

    I'm under MAX OSX 10.8.4. Firefox updated yesterday to 23.0 and since then, Quickbooks Online does not open. He will accept my credentials and connection to the next screen, flashing the usual message "Quickbooks is load your information." However, t

  • Repeated requests to install KB982168 and six other updates already installed.

    The following updates have been installed, but they continue to occur. FixIt is reporting that the location of State update is incorrect but no difficulty nor explain how to fix. Need help! Microsoft Windows XP. Updates continually asking installatio

  • Iconia w3 Bios does not

    short version. child close when installing windows 8.1 says restart. "" "" orderly installation disk. "" After that dozens of attempts got throughout the installation. Well, it works. Boy I so im good/smart, which is clearly not the case NOW. can't d

  • WRT160N connectivity issues?

    When I originally put in place this router (wrt160n) I got windows vista 64 bit installed connected to my pc which is wired and my ps3 and my laptop running broad wireless router and everything worked fine. Well last week I installed windows 7 64 Edi

  • Save the denied.0x80070005__ error.access

    How to solve this error so that I can save?