Analyze the data in the column

Hello, sorry if this has been addressed before. What I have is a large CSV with 60 000 rows and 7 columns.

I wanted to make calculations of the file existing on the columns 3 and 4 I have done with tables index and formulas.

What I want now, is to put these 2 new columns 'calculation', in the same csv file from 1st row, all the way up to 60 k lines and after the existing 7th column, that is, columns 8 and 9, any ideas?

Thank you

You take the original 2D table read, the work is transferred, add the new data with the picture of the building and then convert the result of this. Rewrite the new 2D with writing table in the spreadsheet file.

Tags: NI Software

Similar Questions

  • Analyze the text and identify which columns contain unpaired data

    Hello world

    I want to write an elegant solution in LabWindows-CVI to accomplish the same thing as what I implemented in LabVIEW.

    The client does not use or do not own LabVIEW.  I have to code the solution in the CVI.

    Order to simpify the explanation of what it is that I try to do, I wrote a small example in LabVIEW (see below):

    The code needs to parse a string to determine which data column includes unpaired.  To do this, I first removed the unwanted text on the top and bottom.  I also removed the extra space between the 2 groups of data by replacing the two separated by one to facilitate the next step.  The result string has been converted to a table 2D-string.  Only the columns you want to search for remained (total of 16 columns).  Table 2D has been transposed as the table 1 d of research searched each line, I want to look in each column.  2D table transposed in its entirety was sought of all no corresponding values, which fills a table 1 d of boolean.  I converted the table 1 d of boolean to a number to see if data 'no match' has been found.  If none have been found, the value would be zero.

    I need help to encode this in CVI.

    Thank you very much

    RayR

    Ray, aspect string makes me think that it's a memory dump, while I designed a solution that analyzes the values of the whole of the chain and operates on them, instead of working on the string itself. Take a look at the attached example which should be what you're looking for. feel free to add comments or ask for clarification on some instructions if you need.

  • Insert rows in based on the data in the column in the Table_A Table_B

    Hello

    I have a column (STRING) in the Table_A called specialization that is imported from an extenral application.

    Data in this column is supplied as follows:

    "Spec_A" - If the user wants to get Spec_A
    "Spec_A | Spec_B '-if the user wants to get both Spec_A and Spec_B.
    "Spec_D | Spec_F | Spec_W' if the user wants to get Spec_D, F, W, and so on.


    So basically all the options are in the same column, separated by ' | '. I don't have an option to change this data will always come like that.
    For each card, the user must meet certain criteria, so I need these data resulted in another table, in rows.

    I'm looking a PL/SQL script which will analyze the string in the column of specialization and insert lines depending on the number of specialzations in Table_B with the user_name and Spec option.

    So if the user name is Steve, and there in the column specialzations = ' Spec_A | Spec_B' I would like 2 lines insterted in Table_B, 1 for Steve Spec_A and the other for Steve with Spec_B.

    Thanks for the help,
    Diez

    Hi 837311,

    Here's a way to do what you want:

    SQL> select * from table_A;
    
    USER_NAME  SPECIALIZATION
    ---------- -------------------------
    user1      Spec_A
    user2      Spec_A | Spec_B
    user3      Spec_D | Spec_F | Spec_W
    
    SQL> select * from table_B;
    
    no rows selected
    
    SQL> SELECT      t.user_name
      2  ,      trim
      3           (regexp_substr(specialization,'[^|]+',1,s.lev)
      4           )    AS specializ
      5  FROM      table_A t,(SELECT    LEVEL    AS lev
      6      FROM    (
      7              SELECT  MAX (LENGTH (regexp_replace(specialization,'[^|]') )
      8                           + 1
      9                          )    AS  nb_max
     10              FROM    table_A
     11          )
     12      CONNECT BY    LEVEL    <= nb_max) s
     13  where  s.lev <= LENGTH (regexp_replace(t.specialization,'[^|]')
     14                           || 'a'
     15                            )
     16  ORDER BY  t.user_name,s.lev
     17  ;
    
    USER_NAME  SPECIALIZ
    ---------- ----------
    user1      Spec_A
    user2      Spec_A
    user2      Spec_B
    user3      Spec_D
    user3      Spec_F
    user3      Spec_W
    
    6 rows selected.
    
    SQL> insert into table_B(user_name,specialization)
      2  SELECT      t.user_name
      3  ,      trim
      4           (regexp_substr(specialization,'[^|]+',1,s.lev)
      5           )    AS specializ
      6  FROM      table_A t,(SELECT    LEVEL    AS lev
      7      FROM    (
      8              SELECT  MAX (LENGTH (regexp_replace(specialization,'[^|]')
      9                           + 1
     10                          )    AS  nb_max
     11              FROM    table_A
     12          )
     13      CONNECT BY    LEVEL    <= nb_max) s
     14  where  s.lev <= LENGTH (regexp_replace(t.specialization,'[^|]')
     15                           || 'a'
     16                            )
     17   ;
    
    6 rows created.
    
    SQL> select * from table_B order by user_name, specialization;
    
    USER_NAME  SPECIALIZATION
    ---------- -------------------------
    user1      Spec_A
    user2      Spec_A
    user2      Spec_B
    user3      Spec_D
    user3      Spec_F
    user3      Spec_W
    
    6 rows selected.
    
    SQL>
    

    If your requirements are not met, let me know it.

    Edited by: Manguilibe Jan 20, KAO. 2012 15:39

    Edited by: Manguilibe Jan 20, KAO. 2012 15:44

  • How to analyze the data of 10 bytes encoded in the HH306 of Omegatte data logger/thermometer?

    I am trying to write a simple code for a HH306 of OMEGAETTE thermometer/travailleursduweb.com data recorder.

    That is the problem. I communicate with the device via RS - 232, using Labview 8.5.1 and windows xp. I ask her for "all the coded data", which is actually the only option. He returns 10 bytes of encoded data, the manual describes the meaning of each byte and I understand that. The problem is that I can't analyze the information for use in labview, for example: I want to extract the temperature and simply display it.

    on request, I get: 10bytes (read as a string from the serial port read buffer): display HEX: 02 00 A8 48 FF EF B6 49 B6 03 is perfect, and what I expect.     Display codes: \02\00\A8\B6H\FF\EF\B6I\03 The Normal display is a series of special characters, I don't understand, especially since I don't think they are ascii characters that must match returned hexadecimal numbers!   For the life of me, I can't understand how to extract the information (what are the 48 6 hexadecimal display) of what is returned. All string manipulation functions seem to work only on what is given in Normal view. (The 4th and 5th byte of the data are the codes of the BCD for temperature: for example the temperature was 64.8 degrees farenheight when I took this reading).

    Can someone help me to analyze the data returned by this device?

    Ok... I think that I thought about it. I found this: http://digital.ni.com/public.nsf/websearch/77C8F61D36F5A23086256634005ACB38?OpenDocument.

    I guess the normal display garbled is corresponding to each hexadecimal ascii characters. I'm just not used to seeing characters beyond the decimal number 127 ascii or hex 7F.

    So, basically, to analyze the 10 bytes of data:

    (1) break the string read from the serial port in the 10 ascii characters (using String subset vi)

    (2) son of each output string in the left input of 10 separate Type vi Cast.

    (3) wire a constant U8 in each terminal 'type' VI Type Cast.

    cables of 4) the chain of each Cast of Type vi output to the input of a number hexadecimal string vi.

    (5) concatenate or use as you wish as hexadecimal numbers (now in string format) which cause.

    See you soon.

  • analyze the 2 bytes at a time series data

    I am acquiring 8 bytes of serial data and I would like to analyze the data in 2 bytes of data, so that I find myself with 4 measures of different temperatures. I tried a lot of things that I found in the forum, but I can't make it work. I have attached the VI is using string function analysis, but I'm not very familiar with this function. My fault my serial data so that you can see the data that I get.

    Thanks in advance for your help

    Lowski

    See if it's to help you get started. You must understand the scale yourself.

  • How to analyze the data of the cDAQ and Signal Express, especially after analysis?

    In the first series of tests of my instrument, it took longer than expected for the race.  Thus, the data was saved in 6 days.  The file is too large for export to Excel.  At the beginning of the project, I was as ignorant as I could go ahead and add analysis and the scaling of measures.  By the scaling, I mean my data of switching current dew points or whatever it is that I record.

    How to evolve the data to read the output data as expected 4mA = point of dew of-20 C or 0 PSIG?  Can I pre program this to be recognized for each event?

    For real analysis I am doing – I would first analyze the data I recorded and choose different points to send to Excel to graph and analyze.  Is this possible?

    Secondly, I would like to know how to scale and analyze my data in the project without having to do this later analysis in the future?

    I have a cDAQ-9172 with LabVIEW signal Express 3.0 that uses four modules - 9211 2 modules of thermocouple, my 4-20 1-9201 module +/-10V module and 1-9203.

    Thank you for any assistance.

    Hi Patricia,

    "' You can do this by adding a step Load/Save signals ' analog '.  I hope this helps!

  • text of the file of digital data in columns (spaces between the columns) to the chart with an average every 500 columns values.please help.

    I have a text file with numeric data in three columns, (I need to spend the few lines of text in the file above the three columns of values of data first) then I need to convert numeric values above-"999" to zero, then take the average of each value of 500 in the first column (second and third colum requires the same operation separately) , so found average values should be stored in a text file and finally plotted in a graph separately. Help, please. Its part of my project work.

    Another version, simply drag and drop:

  • Dates are not appearing in the column start and Finsh of MS Project 2010. They become W31/4, W31/5, etc. Instead of 7/31/20113. How can I fix it?

    Dates are not appearing in the column start and Finsh of MS Project 2010. They appear rather like W31/4, W31/5, etc. When it should be like this: 7/31/20113. How can I fix it? Note: Dates listed do appear correctly.

    Hello Charlie,.

    You are welcome. It is what we are trying to do... help people! Thanks for letting me know that the problem is solved. Don't forget to mark it as your response so that we can spread the knowledge more far.

    Kind regards

    BearPup

  • Display the name of the tag as the column name and the value in the tag as a row of data from the input string.

    Hi Forum members,

    I am looking for a query display the name of the tag as the column name and the value in the tag as a row of data.

    I have to print the values within the tag to a file by choosing the value of the flags. the sequence of the tags will vary each time, as the tag name will change dynamically.

    So here is the example of input data and the expected output. The string in the text column must be separated as the column names and values.

    Input data
    Select 1 as seqno,' < > 0210A 50 4f < / 4f > < 5f20 > TEST CARD 16 < / 5f20 > < 5f2a > < / 5f2a > < 82 > 1 c 00 < / 82 > ' double text


    Output:

    Seqno 4f 5f20 5f2a 82
    0210A 50 16 1 00 TEST CARD 1

    Please help me by providing your entries on this.

    We use the version of Oracle 11.2.

    Note: This is not the XML string

    Thank you

    Shree

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    )

    Select d.seqno, x.*

    d the data,

    XMLTable ('/ root')

    by the way xmltransform (xmltype ('': replace (replace (text,'<><>'),)))

    XmlType (q'~http://www.w3.org/1999/XSL/Transform "version ="1.0"> ")

                                                     

                                                       

                                                         

                                                       

                                                     

                                                     

                                                       

                                                         

                                                       

                                                     

    ~'

    )

    )

    path of columns '4f' varchar2 (10) "tag4f."

    path of "5f20' varchar2 (30)"tag5f20. "

    path of '5f2a' varchar2 (10) "tag5f2a."

    path of varchar2 (10) "82" "tag82.

    ) x


    SEQNO 4f 5f20 5f2a 82
    1 0210A 50 16 TEST CARD - 1 00
    2 0210A 50 16 TEST CARD - 1 00
    3 0210A 50 16 TEST CARD - 1 00
    4 0210A 50 16 TEST CARD - 1 00

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    ),

    Chopper (seqno, Key, value, String) as

    (select seqno,

    regexp_substr (text,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (Text,'>(.*?))

    regexp_substr (text,'<.+?>. *? ) (.*) $', 1, 1, null, 1). » <>'

    from the data

    Union of all the

    Select seqno,

    regexp_substr (String,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (String,'>(.*?))

    regexp_substr (String,'<.+?>. *? ) (.*) $', 1, 1, null, 1)

    Chopper

    where regexp_substr (string,'<(.*?)>', 1, 1, null, 1) is not null

    )

    Select '4f', seqno, '5f2a', '82', '5f20.

    of (seqno, lower (key) select key, value)

    Chopper

    )

    Pivot (max (value) for key in ('4f' as '4f', '5f20' as '5f20', '5f2a' as '5f2a', "82" as "82"))

    Concerning

    Etbin

  • Select the lines with the maximum value for a date where another column is different from 0

    Hello

    I need to write a query on a table (called DEPRECIATION) that returns only the rows whose date maximum (PERENDDAT_0 column) for a specific record (identified by AASREF_0), and where the other column in the table called DPRBAS_0 is different from 0.

    If DPRBAS_0 is equal to 0 in all the lines of a specific record, then return the line with date maximum (PERENDDAT_0 column).

    To be clearer, I give the following example:

    Suppose we have the following data in the table of DEPRECIATION:

    AASREF_0 PERENDDAT_0 DPRBAS_0
    I2011001074331/12/20150
    I2011001074331/12/20140
    I2011001074331/12/20130
    I2011001085612/31/20160
    I2011001085631/12/20150
    I2011001085631/12/2014332
    I2014001223812/31/2016445
    I2014001223831/12/2015445
    I2014001223831/12/20140

    The query must return only the following lines:

    AASREF_0 PERENDDAT_0 DPRBAS_0
    I2011001074331/12/20150
    I2011001085631/12/2014332
    I2014001223812/31/2016445

    Thanks a lot for your help!

    This message was edited by: egk

    Hello Egk,

    The following query works for you.

    SELECT AASREF_0, PERENDDAT_0, DPRBAS_0

    FROM (SELECT AASREF_0,

    PERENDDAT_0,

    DPRBAS_0,

    ROW_NUMBER)

    DURING)

    AASREF_0 PARTITION

    ORDER BY

    CASE WHEN DPRBAS_0 <> 0 THEN 1 OTHER 0 END DESC,.

    PERENDDAT_0 DESC)

    RN

    DEPRECIATIONS)

    WHERE rn = 1

  • How to calculate the difference between a Date column and the Date yesterday in the analysis (in the formula in the column)

    . For example, I need to calculate the difference between a date column, 'Table_Name '. "' Column_Name ' and (Current_Date-1). I tried different ways to do this. But nothing seems to work.

    Try the below formula.

    Replace "Time". "" Date "with your column.

    TIMESTAMPDIFF (SQL_TSI_DAY, "Time". "Date", TIMESTAMPADD (SQL_TSI_DAY-1, CURRENT_DATE))

    Thank you!

  • How to join two tables to retrieve the data from the columns in table two. Tables have primary and foreign key relationships

    Hello

    I want to join the two tables to retrieve the data from the columns of the two table passing parameters to the join query. Tables have primary and foreign key relationships

    Details of the table

    Alert-1 - AlertCode (FK), AlerID (PK)

    2 AlertCode-AlertDefinition-(PK)

    Help, please


    ----------

    Hi Vincent,.

    I think that you have not worked on adf 12.1.3.  In adf 12.1.3 you don't have to explicitly create the association. When you create the EO to your table, Association xxxxFkAssoc, will be created by ADF12.1.3 for you automatically. Please try this and do not answer anything... You can also follow the links below. I solved the problem by using the following link

    Oracle ADF Guide step by step - Oracle ADF tutorial: creating a relationship of the master / detail using Oracle ADF

    ---

  • The checkbox in the column DB data record

    Hi all

    I created the article P1_checkbox (several checkboxes) using LOV(Select ename, empno from emp). Now when I checked the boxes, I want to INSERT these boxes given in the table in database 'emp_selected'.

    So when I log in again application, the boxes have pre-selected data of "emp_selected" boxes unchecked the 'emp' table and when I uncheck some preselected check boxes and check the new boxes, it should be updated accordingly in "emp_selected".

    My APEX oracle version is 4.2.

    Thank you

    Found the solution. Marking the link for others who may have doubts about the same subject.

    Oracle11g - box record data in a column DB - Stack Overflow

  • Unable to store the component "time" in the column date Oracle's ADF

    Hi friends,

    I have a table with the date column. I'm trying to set the current date with the time in the column of the table. Java.sql.Date refers to the field of the VO. When I try to turn it using the setLastUpdatedDate() it not be saved. The time is get truncated and the time is saved is 16-mar-2015 00:00:00.  How can I keep the component "hour" as well in the column with the date data type. FYI the component "hour" is saved when I do the sql uisng the insert.

    JDev version is 11.1.1.7.0

    Thank you

    Hello

    java.sql.Dateis the DATE of SQL which means it stores years, months and days whilehour, minute, second and millisecond are ignored. Also sql.Date is not related to time zones.

    java.sql.Timestampcorresponds to the SQL TIMESTAMP, which is the exact nanosecond (Note that util.Date only supported milliseconds!) with customizable precision.

    try to use the timestamp if you want exact

  • Display of the data without knowing the columns.

    Hello

    I want to display data AS that OF EMP TABLE USING plsql.

    7499 "ALLEN SALESMAN" 7698 ' 20 / 02/1981 ' 1600, 300, 30

    Without knowing the column emp TABLE I want to display data.i have tried, but does NOT...

    DECLARE

    CURSOR c1 IS SELECT * from all_tab_columns WHERE table_naMe = 'EMP ';

    CURSOR c2 IS SELECT * FROM emp;

    v_column_name varchar (200);

    BEGIN

    I'm IN c1 LOOP

    FOR j IN LOOP c2

    v_column_name: = 'j' | i.column_name;

    dbms_output.put_line (v_column_name);

    END LOOP;

    END LOOP;

    END;

    Kind regards

    John

    Hi John,.

    Maybe this can help you:

    create or replace procedure prc_show_rows ( table_in varchar2 )
    is
      CURSOR c1 IS SELECT * FROM all_tab_columns WHERE table_name = upper (table_in);
      type table_output is table of varchar2(32000);  -- this can be a problem with large rows
      work table_output;
      v_statement varchar2(2000);
    BEGIN
      --
      v_statement := 'select ';
      --
      FOR j IN c1 LOOP
        v_statement := v_statement || j.column_name || ' || '' '' || ';  -- may be you need some more formatting with appropriate to_char clauses
      END LOOP;
      --
      v_statement := rtrim ( v_statement, ' |''') || ' from ' || table_in;
      --
      dbms_output.put_line ( v_statement ); -- not necessary, only for testing
      --
      execute immediate v_statement
         bulk collect INTO work;
      --
      for i in 1..work.COUNT loop
        dbms_output.put_line(work(i));
      end loop;
    END;
    /
    
    exec prc_show_rows ( 'emp');
    exec prc_show_rows ( 'dept');
    

    concerning
    Kay

Maybe you are looking for

  • Problems with showing bookmarks toolbar items / Rendering

    Greetings, I think I met a little UI problem. I'd really like a bookmark that is placed on the same line as the address bar - it would be so convenient! But unfortunately it seems not be display correctly. Customize mode, I tried dragging the "Bookma

  • I don't have internet or cell phone or through wifi my phone5 stops working date modified

    I have the iphone 5, I don't have a wifi connection and there is no cell data connection - now, my problem is that my phone does not its time and date changed and when someone calls it can hear the tone, but my phone doesn't ring, in the same way whe

  • Update Satio

    Non riesco ad aggiornare it software del mio Satio cosa devo fare?

  • Migration of database

    I am migrating the database MySQL embedded to a standalone database. I understand, it is not supported for migration all in the DB to mySQL, SqlServer, but I'm getting a lot of pressure back to management on why this is the case.  After all, "a datab

  • JQuery accordion

    Hi allI'm looking for a simple example to add a jQuery accordion to my page. "When I add the < script src="#IMAGE_PREFIX#libraries/jquery-ui/1.10.4/ui/jquery.ui.accordion.js "type =" text/javascript"> < / script > to the page after the #HEAD model #