Extract data from array to different plots

Hello,
I have collected data in the format:
Temp:25 Freq: 136 100 99.993 2998.581 0
Temp:25 Freq: 136 125.89 125.991 2997.196 -0.004
Temp:25 Freq: 136 158.48 158.007 2995.1 -0.01
Temp:25 Freq: 136 199.52 200.002 2991.905 -0.019
Temp:25 Freq: 155 100 100.005 3000.866 0.003
Temp:25 Freq: 155 125.89 126.003 3000.086 0.000
Temp:25 Freq: 155 158.48 157.985 2996.133 -0.011
Temp:25 Freq: 155 199.52 200.018 2992.644 -0.021
Temp:25 Freq: 174 100 100 3001.405 0.000
Temp:25 Freq: 174 125.89 126.016 2997.996 -0.010
Temp:25 Freq: 174 158.48 158.013 2996.371 -0.015
Temp:25 Freq: 174 199.52 199.983 2992.315 -0.026
Temp:-30 Freq: 136 100 99.993 2998.581 0
Temp:-30 Freq: 136 125.89 125.991 2997.196 -0.004
Temp:-30 Freq: 136 158.48 158.007 2995.1 -0.01
Temp:-30 Freq: 136 199.52 200.002 2991.905 -0.019
Temp:-30 Freq: 155 100 100.005 3000.866 0.003
Temp:-30 Freq: 155 125.89 126.003 3000.086 0.000
Temp:-30 Freq: 155 158.48 157.985 2996.133 -0.011
Temp:-30 Freq: 155 199.52 200.018 2992.644 -0.021
Temp:-30 Freq: 174 100 100 3001.405 0.000
Temp:-30 Freq: 174 125.89 126.016 2997.996 -0.010
Temp:-30 Freq: 174 158.48 158.013 2996.371 -0.015
Temp:-30 Freq: 174 199.52 199.983 2992.315 -0.026
Temp:+70 Freq: 136 100 99.993 2998.581 0
Temp:+70 Freq: 136 125.89 125.991 2997.196 -0.004
Temp:+70 Freq: 136 158.48 158.007 2995.1 -0.01
Temp:+70 Freq: 136 199.52 200.002 2991.905 -0.019
Temp:+70 Freq: 155 100 100.005 3000.866 0.003
Temp:+70 Freq: 155 125.89 126.003 3000.086 0.000
Temp:+70 Freq: 155 158.48 157.985 2996.133 -0.011
Temp:+70 Freq: 155 199.52 200.018 2992.644 -0.021
Temp:+70 Freq: 174 100 100 3001.405 0.000
Temp:+70 Freq: 174 125.89 126.016 2997.996 -0.010
Temp:+70 Freq: 174 158.48 158.013 2996.371 -0.015
Temp:+70 Freq: 174 199.52 199.983 2992.315 -0.026
I am able to extract specific data and plot a graph for the different Freqs (see "array extract from pivot file_for email.VI).  I would like some help to be able to now make a plot at a fixed Freq but different Temps (so plot will have 3 graphs:25, -30, +70 for the same freq say 136).
Thanks for your help and time,
hiNi.
Solved!
Go to Solution.
Attachments:
scan_to_graph_4_for email.vi ‏34 KB
array extract from pivot file_for email.vi ‏32 KB
data.txt ‏2 KB

Hello,
can you assist me in sorting the data in the attached text file:
Temp     Freq      Freq2   Volt
25.000 174.000 100.000 0.000
25.000 174.000 126.016 -0.010
25.000 174.000 158.013 -0.015
25.000 174.000 199.983 -0.026
-30.000 174.000 100.000 0.000
-30.000 174.000 126.016 -0.010
-30.000 174.000 158.013 -0.015
-30.000 174.000 199.983 -0.026
70.000 174.000 100.000 0.000
70.000 174.000 126.016 -0.010
70.000 174.000 158.013 -0.015
70.000 174.000 199.983 -0.026
so that I can have the three different temp plots (25, -30 and 70) of Freq2 vs Volt.
Thanks,
hiNi.
Attachments:
data.txt ‏2 KB
scan_to_graph_4_for email.vi ‏43 KB

Similar Messages

  • Different aspect to extract data from SAP retail.

    Hi Gurus,
          I will working on SAP retail system , including SAP retail/POSDM,  please tell me how to extract data from those systems, is it different from  the way to extract data from SAP ECC , eg SD/FICO etc?
    Many Thanks,

    Hello ,
    Retail will use Inventory Data Sources, Extraction is same as that of inventory or LO. There are few DS in Retail those use FM, so for those DS it will behave like FI DS.
    Below Wiki is helpful:
    http://wiki.sdn.sap.com/wiki/display/Retail/AnalyticsforSAPforRetail
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d3/3dff23104d11d4b544006094b9cbfb/frameset.htm
    Assign pts if helpful.
    Regards
    Aman

  • Extract data from Query to a Flat File - scheduling in the background

    Hi All,
    We need to extract data from a query to a flat file periodically, but each time 10 separate executions based on 10 profit centers, to get the separate files.
    So, we have PC1, PC2, ... PC10 Profit centeres.
    We have Query1, with profit center variable.
    We have created 10 variants for Query1 so that we can execute for 10 profit centers.
    Now, we have used RSCRM_BAPI to execute the Query1 and write to a flat file. Now we are having a problem in getting this feature used to execute the query automatically for 10 different varaints.
    Thanks in advance,
    _ Shashi

    Shashi,
       You can try using Information Broadcasting or Reporting Agent. You can schedule this in Information Broadcasting.
    check this link for Information Broadcasting... <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/a5/359840dfa5a160e10000000a1550b0/content.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/a5/359840dfa5a160e10000000a1550b0/content.htm</a>
    Nagesh Ganisetti.

  • Extracting data from Excel To Illustrator javascript or vbscript

    Hi all-
    I was wondering if there was a way to extract data from Excel to be used in Illustrator. I know there is an option of variables and xml, and I don't want that. I've seen and tried out how to read illustrator and write to excel, and I get that.  What I would like to do is pretty much the opposite:
    1.Pre-fill in an Excel file(.xls,.csv, doesn't matter) with data such as a filename in column 1 and (Replacement Text) in column 2 and close manually.
    2. Run script(VBSCRIPT,Javascript, doesn't matter)
    3.For each column in Excel file where cell in first column is not empty, open Illustrator Template with placeholder of "DWG" textframe and replace the frame titled "DWG" with Replacement text from Excel in Column2.
    4, Save each to a PDF file and name file with text from Excel Column1(Filename)
    In a nutshell, there will be a single illustrator template with a premade textFrame with a name of "DWG". Excel will contain two columns, one for the filename to be named and one for the relative text to replace with the placeholder in AI. I hoped I explained this well enough without causing too much confusion. Thanks in advance.
    Filename
    Replacement Text
    test1.pdf
    DWG01
    test2.pdf
    DWG02
    test3.pdf
    DWG03
    test4.pdf
    DWG04

    As text… \n is new line character and \r is return character. I can't remember which excel uses but they both equate to a line/paragraph… I very quickly threw together an example for you…
    #target Illustrator
    textToPDF();
    function textToPDF() {
              if ( app.documents.length == 0 ) { return; }
              var doc, csvFile, i, fileArray, opts;
              csvFile = File( '~/Desktop/ScriptTest/Test.csv' );
              if ( !csvFile.exists ) { return; }
              fileArray = readInCSV( csvFile );
              doc = app.activeDocument;
              opts = new PDFSaveOptions();
              opts.pDFPreset = '[Press Quality]';
              // Here we loop the main array
              for ( i = 0; i < fileArray.length; i++ ) {
                        // Here we get the second item of sub array i
                        doc.textFrames.getByName( 'DWG' ).contents = fileArray[i].[1];
                        // Here we get the first item of sub array i
                        doc.saveAs( File( fileArray[i].[0] ), opts );
    function readInCSV( fileObj ) {
              var fileArray, thisLine, csvArray;
              fileArray =[];
              fileObj.open( 'r' );
              while( !fileObj.eof ) {
                        thisLine = fileObj.readln();
                        csvArray = thisLine.split( ',' );
                        fileArray.push( csvArray );
              fileObj.close();
              return fileArray;
    I haven't tested it but it should be close…?

  • Need suggestion on how to extract data from a table

    Many years ago, I wrote many Perl scripts to increase my work productivity.
    Now I am starting learning Java, Javascript and PHP for some purposes. Just wrote a simple html2txt java program.
    Now I need experts' suggestion for one specific purpose - extract data from a html table. One of the examples is here: http://mops.tse.com.tw/nas/t06sa18/200902/A02_2454_200902.htm
    I need to extract datum from the table and make some analysis. (Txt is in Chinese, sorry)
    What is the best way to code it? Java, PHP or other? If Java, any suggestion what classes/module and approach to use?
    Thanks very much.

    xcomme wrote:
    Many years ago, I wrote many Perl scripts to increase my work productivity.
    Now I am starting learning Java, Javascript and PHP for some purposes. Just wrote a simple html2txt java program.
    Now I need experts' suggestion for one specific purpose - extract data from a html table. One of the examples is here: http://mops.tse.com.tw/nas/t06sa18/200902/A02_2454_200902.htm
    I need to extract datum from the table and make some analysis. (Txt is in Chinese, sorry)
    What is the best way to code it? It this a one shot (one time only task)? Then the best way is whatever way you are most comfortable with and which works.
    If on going then I doubt language choice matters but using a html parser rather than attempting to parse it yourself is going to help in any language.
    And are you starting with html files or starting with a http server? The two are very different.

  • How to extract data from multiple tables (always got errors)

    Dear Experts,
    I have a simple mapping to extract data from multiple tables as a source (A, B, C) to a target table (X). Below is the picture:
    (Sources)....(Target)
    A----------------***
    B----------------X
    C----------------***
    Sample Source Data:
    Table A:
    ColA1
    100
    200
    etc
    Table B:
    ColB1 ColB2 ColB3
    10 Y Ten
    20 Y Twenty
    30 Y Thirty
    etc
    Table C:
    ColC1 ColC2
    11
    12
    13
    etc
    Target table (X) should be (just has 1 group INGRP1):
    ColA1 ColB1 ColB3 ColC1
    100 10 Ten 11
    100 10 Ten 12
    100 20 Twenty 21
    etc
    Scenarios:
    1. Directly map from A, B, C to X. Unable to map with error message: "API8003: Connection target attribute group is already connected to an incompatible data source. Use a Joiner or Set operator to join the upstream data first before connecting it into this operator."
    2. Map each source to Expression Operator and then map from each Expression to target table. I am able to map all attributes successfully but got error when validating it with message: "VLD-1104: Attributes flowing into TEST.EXPR_SRC.INGRP1 have different data sources."
    How can I achieve the correct mapping for this purpose?
    Use Joiner? I have no key to join the sources
    Use Set? The sources have different number of columns
    Thanks in advance
    Prat

    Thanks Nico,
    I think it will results data like this:
    100 10 Ten 11
    200 20 Twenty 12
    300 30 Thirty 13
    etc
    and not the expected:
    100 10 Ten 11
    100 10 Ten 12
    100 20 Twenty 21
    etc
    But it inspired me to solve this by adding key expression in each source table (B & C) to be joined to table A with this formula:
    100+TRUNC(INGRP1.COLB1,-2)
    Regards
    Prat

  • How to extract data from the fields present in two or three tables

    Hi Experts,
          I have a scenario where i have to extract data from the fields of different tables. e.g. let there 2 tables which have some number of fields . I want the data of 3 fields each from these 2 tables. How can i get that??
    Sam

    Hi
    You can create view in tcode se11..
    here you include all tables from which you want to fetch the data..
    you need to give selection condition here
    eg..
    say select empname from table A, select empadd from table B.. where empno(from A)=empno(from B)
    (note that you dont need to write queries like this.. i have just given u the example)
    After creating the view you can create datasource in RSO2..
    Regards
    Swati

  • How to extract data from BCS consolidation cube to Group BW extraction cube

    Gurus,
    I have to figure out a way to extract data from a local BCS consolidation totals cube to a group BW extraction cube via a virtual cube in between the too...How can i do the extraction and what are the different ways in which it can be done..
    Detailed steps would be appreciated....also how shud i proceed towards this...
    Thanks
    Cheers:
    Sam

    Hi Sam,
    Instead of extracting you can also consider reporting on the data with a multiprovider.
    There is a doc here that might be useful
    http://www.affine.co.uk/files/How%20to%20Create%20a%20MultiProvider%20over%20BW%20and%20BCS.pdf
    Kevin

  • How to extract data from Chart History?

    Dear all, I have read a lot of posts, but still don't understand how to extract data from Chart history.
    Suppose you acquired 1024 points of data every time, then use "build array" to build an array, then send to intensity chart to show, then save the history into a .txt file,  but how to extact data from the file?
    How Labview store the data in the 2D history buffer?
    Anybody has any examples?

    The simplest would be to save the 2D array as a spreadsheet file, the read it back the same way.
    Maybe the attached simple example can give you some ideas (LabVIEW 7.1). Just run it. At any time, press "write to file". At any later time, you can read the save data into the second history chart.
    If you are worried about performance, it might be better to use binary files, but it will be a little more complicated. See how far you get.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    IntensityChartHistorySave.vi ‏79 KB

  • How to extract data from custom made Idoc that is not sent

    Hi experts,
    Could you please advise if there is a way how to extract data from custom made idoc (it collects a lot of data from different SAP tables)? Please note that this idoc is not sent as target system is not fully maintained.
    As by now, we would like to verify - what data is extracted now.
    Any help, would be appreciated!

    Hi,
    The fields that are given for each segment have their length given in EDSAPPL table. How you have to map is explained in below example.
    Suppose for segment1, EDSAPPL has 3 fields so below are entries
    SEGMENT          FIELDNAME           LENGTH
    SEGMENT1         FIELD1                   4
    SEGMENT1         FIELD2                   2
    SEGMENT1         FIELD3                   2
    Data in EDID4 would be as follows
    IDOC           SEGMENT                          APPLICATION DATA
    12345         SEGMENT1                        XYZ R Y
    When you are extracting data from these tables into your internal table, mapping has to be as follows:
    FIELD1 = APPLICATIONDATA+0(4)        to read first 4 characters of this field, because the first 4 characters in this field would belong to FIELD1
    Similarly,
    FIELD2 = APPLICATIONDATA+4(2).
    FIELD3 = APPLICATIONDATA+6(2).  
    FIELD1 would have XYZ, FIELD2 = R, FIELD3 = Y
    This would remain true in all cases. So all you need to do is identify which fields you want to extract, and simply code as above to extract the data from this table.
    Hope this was helpful in explaining how to derive the data.

  • Steps to extract data from teradata to bw

    steps to extract data from teradata to bw

    Thank you Roberto and Jerome!
    1.as per my knowledge my client has teradata datawarehouse on oracle database is it possible. and also can he use cognos for reporting?
    2. now teradata data can be only extracted to bw or also to r/3?
    3.and  after extracting the entire historic data where can i store?is it in 1infocube or store in different cubes related to modules?
    if my questions are wrong please clarify them?

  • Extracting Data from Archived data files in R/3

    Hi Experts,
    I have a situation here!!!
    I want to extract data from R/3 for BW. In R/3 system, data is present in archived files (which are not in readable format). In R/3 system, the report definitions are ABAP codes which give output. These ABAP codes uses same infostructure, archived files are also same, but the logic is different for every report. I am trying to modify these ABAP codes to get data in a format which can be loaded in BW, but then i have to make different cubes for different report outputs in BW.
    Is there any way in which i can read the structure of these archived files so that i can design a single cube to store data of these files?

    Hi Arindam,
    It is possible to extract archieved data from R/3. Following link contains the 'How to' guide for the same.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0ded994-c520-2a10-9da7-bc92c9e9882d
    Hope this will be helpful. Thanks.
    Sumit

  • Writing data from array to file

    May i know how to write string from a array into a file.
    I have use string tokenizer to extract every line from a file using readline and use stringtokenizer to spilt the line using tab delimiter for processing.
    But if i want to write data from array to file with tab as a delimiter and how to go to the next line. How do i do that. Below is the task and i have state a simple example on a array i have and the file output that i want.
    Pls advice.. Thanks
    eg of a array
    array[0] = Data
    array[1] = One
    array[2] = Data
    array[3] = Two
    array[4] = Final
    array[5] = Data
    From the above array, i want to write to a file so that it will appear something as below
    Eg textfile.txt
    Data One
    Data Two
    Final Data
    PLs attached a simple code as a example as i am only begining to start useing the IO feature in java. Thanks

    Really thanks for your help,
    but u are mentioning that i have already know the number of countters in advance , that is to say the 2 * counters.
    But is there a way to solve this problem which i mean if i dun know the number of predefined counters. Maybe i should say, there is more than 2 counters and in another situation, the counters will only be defined during runtime. Actually the solution u give will work nicely with 2 counters. but wat if the counter is more than 4, i wll have to concatenate the string a lot of time. so is there any solution around this problem. That why i am wandering if tere is any solution to write to the file when the counters can be only determined in runtime
    Pls advice on the above with a code samples if possible.

  • How to extract data from xml file and store that data inti data base table

    Hii All
    I have one table that table contains one column that column contain an XML file
    I want to extract data from that XML file and want to store that extracted data into an other table.
    That xml file has different different values
    I want to store that values into table in diff diff columns

    Hi,
    I am also facing the same problem.I have a .xml file and i need to import the data into the custom table in oracle database.
    Can you please let me know if you know the solution how to do it in oracle apps.
    Thanks,

  • How to extract data from XML file with JavaScript

    HI All
    I am new to this group.
    Can anybody help me regarding XML.
    I want to know How to extract data from XML file with JavaScript.
    And also how to use API for XML
    regards
    Nagaraju

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

Maybe you are looking for