the analysis of string data

Hi all

I got the series communation data string in this format:

Bridge of fuse HtrPwrV VDispV/C PAO V/C DTM V/C DiffC NC
OK VALIDATES 1.80 0.95 3.16 0.53 537 29.6
369 647 110

And I want to extract some value from it. I realized that they are separated with spaces between them. So I thought about transfer them into an array and then extract some lines/columns there. But I don't know how to do.

Could you give me an idea. Or if you have a better way, then please show me!

Thank you

Here is a way.

Tags: NI Software

Similar Questions

  • Divide the number of string data

    I have user as J1 entries. A1 through J1. A20 that I want to get the given text range 1 to 20,

    Please share me the logic

    Concerning

    Vikram Kumar P

    I would like to use the Scan of string with format set to "J1. A %d.  You will get the digital value as output.

  • The analysis of string in the input channels

    Hello

    I'm trying to parse a string into a matrix, or tables in real time. Thus, assuming that the line below is part of my entry

    A134B932C321D95E532F1024A13B932C321D95E532F1024

    I would like to analyze the data and constantly create a matrix (or a series of paintings), such that each row corresponds to a letter. For example, something like below:

    13 13

    932 932

    321 321

    95 95

    532 532

    1024 1024

    I was able to parse the string using the letters as delimiters, but I was not able to find a way to organize the values. The goal of my project is to receive 6 different a mircoprocessor input and displaying the entries on different graphics.

    Thank you in advance,


  • Extraction of the bracketed text string data

    I have a bit of SQL to retrieve the text in brackets at the end of a string:
    WITH test_data AS
         (
         SELECT 'Joseph Bloggs (Joe) (THIS)' v1 FROM DUAL UNION ALL
          SELECT 'Robert Holnas (Bob) (THAT)' FROM DUAL UNION ALL
          SELECT 'Mary Mild (THIS)' FROM DUAL UNION ALL
          SELECT 'Jack Jill (THIS)' FROM DUAL
         )
    SELECT v1
        , INSTR(v1, '(') start_bracket_pos
        , INSTR(v1, ')') end_bracket_pos
        , TRIM(SUBSTR(v1,INSTR(v1, '(')+1,INSTR(v1, ')')-INSTR(v1, '(')-1)) current_label
        , (LENGTH(v1) - LENGTH(REPLACE(v1, ')'))) / LENGTH(')') "ct_("
        , (LENGTH(v1) - LENGTH(REPLACE(v1, ')'))) / LENGTH(')') "ct_)"
      FROM test_data;
    Still, it extracts data from the media at the end of the string.

    I was wondering if I can change it to be able to extract the text between for example two sets of brackets - for the above test data, it would be useful to be able to extract the 'Joe' and 'Bob', but also 'CE' and 'WHO' at the end as well. It would be useful to have a column that contains the first support content and the 2nd set of content in another column.

    Is there a switch that I can use for example an INSTR() to return the position of the first open bracket and the 2nd and so on?

    Any advice much appreciated

    Thank you

    A way, using reg exp:

    SQL> WITH test_data AS
      2       (
      3       SELECT 'Joseph Bloggs (Joe) (THIS)' v1 FROM DUAL UNION ALL
      4        SELECT 'Robert Holnas (Bob) (THAT)' FROM DUAL UNION ALL
      5        SELECT 'Mary Mild (THIS)' FROM DUAL UNION ALL
      6        SELECT 'Jack Jill (THIS)' FROM DUAL
      7       )
      8  SELECT v1
      9      , regexp_substr(v1,'\((.*?)\)',1,1,null,1) bracket1
     10      , regexp_substr(v1,'\((.*?)\)',1,2,null,1) bracket2
     11    FROM test_data;
    
    V1                         BRACKET1                   BRACKET2
    -------------------------- -------------------------- --------------------------
    Joseph Bloggs (Joe) (THIS) Joe                        THIS
    Robert Holnas (Bob) (THAT) Bob                        THAT
    Mary Mild (THIS)           THIS
    Jack Jill (THIS)           THIS
    

    The regular expression find something in parentheses (the? makes not greedy, it's important.)
    1 means start over from the beginning of the string.
    Next number means bracket1 "first occurrence", bracket2 is "second occurrence" - you can continue with 3, 4, etc.
    null value uses only the default options for reg exp (here could be option for example for sensitive cases in search).
    Final 1 means that the result is the first 'group' in the reg exp - this only receives us the text in brackets and not the media themselves.

  • Doubt in the analysis of String

    Hello


    '23:BE|2009:A@Banglore '.

    I need to analyze the above string and retrieve the data.

    Now I use the StringTokenizer and my code is present,

    String sz = "23:BE|2009+A@Banglore";
    
              StringTokenizer szTkn = new StringTokenizer(sz, ":");
    
              System.out.println(" : " + szTkn.nextToken());
    
              szTkn = new StringTokenizer(szTkn.nextToken(), "|");
              System.out.println(" | " + szTkn.nextToken());
    
              szTkn = new StringTokenizer(szTkn.nextToken(), "+");
              System.out.println(" + " + szTkn.nextToken());
    
              szTkn = new StringTokenizer(szTkn.nextToken(), "@");
              System.out.println(" @ " + szTkn.nextToken());
    
              System.out.println(" " + szTkn.nextToken());
    is there a good way to do this?

    Vijay wrote:
    You can use backreferencing to capture any group in a correspondence of motifs.
    Take a look at this:
    http://download.Oracle.com/javase/tutorial/essential/regex/groups.html

    I don't see how "backreferencing' entry in this since the OP needs the content of field values between the separators without direct reference to what was found before.

    Since the original code fields are always there, and always in the same order, I think it is always more easy just use split()

    String sz = "23:BE|2009+A@Banglore";
    String[] splitSz = sz.split("[:|+@]");
    
  • How can I get the url query string data to a site created with the Muse? It is not module_url works in Muse.

    In my Muse created site (i.e. musesite.com), the url to the site link will be something like, www.musesite.com/homepage.html?userid=123 and I want to capture the value of username. There is documentation on the use of module_url, but documentation is vague and it's not really show in use in the Muse Awards Business Catalyst. Is there an easy way to retrieve the values of url string that does not script require extensive coding?

    Muse is strictly HTML and CSS and a little Javascript. To use URL parameters as you learn on would need a kind side Server advanced such as PHP which is out of the reach of Muse. Essentially of Muse is not the right tool, you use to achieve this.

    This works for you in Joomla because as Wordpress and they are written in PHP.

  • Need to help in the analysis of string in JSON using PLJSON

    Hello
    I have JSON stored in a database field:

    -Query
    Select data1 from table1 where id = 339207152427;
    -Results:
    [{'name': 'Home'}, {'code': 'JPNWC74ZKW9'}, {'start date': ' 01\/02\/2014'}, {'name': "hhh, Rams '}]

    I need to analyze the above results in 3 fields in a separate table. For now, I just try to analyze the results using PLJSON, but get ORA-20101: JSON Parser exception - no {beginning found error during the execution of the following pl/sql block:}

    declare

    VIN_JSON varchar2 (4000);
    jsonObj json;
    listOfValues json_list;
    listElement json_value;

    Start

    Select data1 in VIN_JSON from table1 where id = 339207152427;

    jsonObj: = new json (VIN_JSON);
    listOfValues: = jsonObj.get_values ();

    I'm looping 1.listOfValues.count
    listElement: = listOfValues.get (i);

    end loop;
    end;
    /

    I believe that my syntax is close, but was hoping some new instructions.

    Thanks in advance!
    John

    The brackets indicate a list. If you already have a list and new json may not work.

    listOfValues := json_list(VIN_JSON);
    

    Published by: chris227 on 25.02.2013 12:52

  • The analysis of string to xml format

    Dear all,

    I have an OSB service that returns an xml string output form.
    I call this OSB service in BPEL but it fails because of the format of the string received by BPEL.

    How can I avoid it. I also try to convert string to xml but failing to do so.

    The pointers to that would be useful

    Thank you and best regards,
    MITS

    try to set the response from transport HTTP header
    http:content-type=text/XML
    application/xml or (even better)

    (and of course, you must make sure you have fn - bea: inlinedXml() function to convert the string in an XmlObject)

  • The analysis of string values

    Hello. I have a variable:

    var myString:String = "811 812";

    I want to be able to do is to have a code that crosses myString and analyzes the numbers between the commas. This value then is passed to my switch function where I assign methods based on the results.

    As I am new to AS3.0, I don't know where to start.

    Thanks for any help.

    -Of

    var myString:String = "811 812";

    var re: RegExp = /, /;
    Table of results: var = myString.split (re);

    trace(result[0]); 811
    trace(result[1]); 812

  • the analysis of string separated by commas

    Hello people,

    Indeed, this forum is great and has always helped me a lot. I hope that this time remains the same. Thank you guys for you continues a support and help.

    I have a value string as a-, b, c, d, e, f

    Just sql help, I want to put each value of the string above in a different line. If the output should be-

    one
    b
    c
    d
    e
    f

    using procedures would not only complex, but I just want to do by using queries.

    Please advise,
    Thank you.
    SQL> with t as (select 'ABC,DEF GHI,JKL' str from dual)
      2  select regexp_substr(str,'[^,]+', 1, level) list
      3  from t connect by level <= NVL( LENGTH( REGEXP_REPLACE( str, '[^,]+', NULL ) ), 0 ) + 1
      4  /
    
    LIST
    ---------------
    ABC
    DEF GHI
    JKL
    
  • How to read the two columns of data from the Port series

    Hello

    I'm reading two columns of data from the serial port.

    Example:

    52439 52430

    52440 52437

    52209 52214

    51065 51070

    52206 52390

    I use the serial of Visa service and I can read the first column of data from the serial port, but I can't understand how to read the second column.

    I want to both sets of chart data.

    I enclose my VI.

    Thank you for your help.

    The analysis of string function takes a "Format string" on top (with the right button of the function and choose Help, which explains all the entries).  In particular, you can say 'Give me two numbers separated by a tab' and the output will be two numbers (whole or floating, depending on the chosen format).  In particular, %d\t%d specifies a decimal integer, , whole decimal.

  • The analysis of the data of a string of series

    Alert LabVIEW Express 7

    Sorry, all I have to work with and there is no budget at the moment to upgrade.

    Hello, I am in phase 1 (data transfer reliable to labview) 24/7 of my small Miettinen, who is to display and record data environmental Lab 24/7 our Fisher 02-403 digital barometer that has a serial port. In fact, it came with the software, but no one here seems to like use it so I'll try to find something more intuitive. I can't find any info at all about I/O with this device, so I'm reverse engineering. I'm sure that you cannot write anything to this device only read.

    I started with the connection of the device and the interface with NOR measure and automation and received the following string: P,43,1019,44,31,01,0023.0\r\n.

    I tried to use the Labview 7 Express e/s Companion Instrument, selected 1 COMM, changed the timeout to 5000 (trial and error), added a step reading and analysis, ran and received the following string: P, 43,0999, 44,41, 01,0018.0, XX. After well guess, I determined that the values I have in bold change with the environment and the other 3 are always the same idea 9no what they represent). Alphabetical 1 in bold represents the tendency of climate S sunny = P = C sunny cloudy = etc., the value 2 is the atmospheric pressure in hPa, the 3rd is % relative humidity and the last is the temperature in Deg. C.

    At first, I tried to create simply chips for data I want and operation loop the wizard of e/s in awhile, but often error messages obtained suggesting that I need to define all the tokens in the string. I did it and it worked, then I opened the front panel to access the underlying schemas whence I came with the attached VI. I left this race for more than 24 hours, no error, seems good.

    My question on this forum is, can I simplify this VI losing a part of the analysis of the data that I don't need at this point?

    Please let me know if you can not access this VI maybe I can do a screenshot or something.

    Thank you

    Doug

    Yes, it can be simplified to just a bit.

    Since you are new to LabVIEW, you can start with the basic tutorial.

  • The analysis of the non-numeric characters in a string

    Hello

    I am communicating a robot to LabVIEW (2013) via TCP/IP and sockets. The robot is the server, and LV is the customer.

    I start with the target data in this format (in a string):

    "[0 ~ 100 ~ 0] ~ [0.96593 ~-0.25882 ~ 0 ~ 0] ~ [1 ~ 0 ~ 0 ~ 0] ~ [150 ~ 50]."

    [X, Y, Z], [Q1, Q2, Q3, Q4], [C1, C4, C6, Cx], [TCPVel, OrientVel] except replacement ',' (comma) with a ' ~ ' (tilde) because I load the target data in a spreadsheet which is a comma-delimited file.

    In LV, I take this string, the analysis of the chain and split individual items. I then pulled the singular elements as unique, 32-bit of real numbers. I take each one and convert them individually to a string, concatenate them and send them to the robot. The robot decompresses these raw bytes individually and converts them to a target of robot (position in space).

    I train (BT) check if the user has sent a bad character (non-digital) in the target data. Example of this is:

    [- 50 ~-150 ~ 0] ~ [0.96593 ~-0 ] [B2has5D882 ~ 0 ~ 0] ~ [1 ~-1 ~ 0 ~ 0] ~ [150 ~ 50]

    Now in BT, when I'm scanning the chain, these bad character becomes the entire element to zero and everything else then to zero as well. See attachment for example screen similar.

    My question is, my VI, I can analyze all non-numeric characters (that are inside the parentheses and characters that are NOT a ' ~ ' (tilde))? In this way, I can always get this item numbers and do not have this element or other items turn to zero?

    Thanks in advance for any help!

    Sorry for the question of the test

    SM


  • How to change the value of string clustered, to implement using the node value of property instead of writing directly on the flow of data or using the variable

    new to labview :-) and I have a problem when I want to change the value of a string in bunches, and I want to implement this using the node value of property instead of writing directly to the stream or by using the variable, enclosed is the picture.   No matter, I have change in cluster (control) or value of Popery out (indicator) cluster, the value (sensor 7) dataflow keeps unchanged even I gave the new value by value of property node. Thank you to give me some advice about this.

    Hi GerdW

    Thanks a lot for your answer. The reason I'm stubbornly tring to break the flow of DATA is: we have a test system that have about 100 screws, they have a few connected flow, some of them will be unbundling a cluster dataflow chain to check the value in order to make the different cases.  Now I want to insert user event by changing the control and influential cases during run time.

    As I initially uses a global variable (to control cases) instead of unbundle string data flow, it works well.  But then, I found there are a lot of screws that are using the string unbundle.  One of the 'lazy' means, I tried is to change the value via the property node (because that way, I did not need to find all the places where using the unbundle string and replace them with the global variable), then I noticed a problem with "dataflow", the value in the stream of cluster in fact will not be changed by changing the value of the property node.

    I did a test with VI simple (like the picture in last post), and after reading your advice, I tell myself that I need to understand the concept of "DATAFLOW" in labview, it seems that my "lazy" way can not work in this scenario.

    I have attached the criterion VI here, have you furthur suggestions on what I can do in this case?

    Mant thanks!

    Minyi

  • TDMS replace specific fields with the new string data

    Hello

    Wonder if someone could advise a more easy, more clean solution or I may end up making a big mess on my diagram!

    I use DaqmxConfigureLogging.vi to write data in the .tdms and this file everything works. Unfortunately, this vi affects physical names such as Dev1/ai0 channel names in Journal of root and group of tdms files.

    I would like to read individual fields where they are written and replace them with the names of channel. The location of these channel names is fixed on the tdms file.  However, I noticed using file i/o functions, such as file open/close/set position could not work, because these files do not seem to recognize the .tdms file. And it is not all fields tdms functions you want the value of the positions on sheets of root/channel files tdms and read fields desired as string data.

    Any suggestions? I can miss something quite simple!

    crossrulz wrote:

    k waris wrote:

    "In fact, it uses some names you give the channels and groups.

    I use Dev1 / ai0:15 connect all 16 channels. Unfortunately if using 'name to assign' entry will not do the job in my case!

    Of course, it will be.  Use a loop FOR with DAQmx channel create to create each channel and give them a name.

    Just to clarify what I meant here...

Maybe you are looking for

  • Adobe Flash Player not installed

    I installed Adobe Flash Player, Shockwave Flash, V17.0.0.188 several times trying to update my plugin since the evolution of Windows 10 about a month ago. I don't get an error message, but when I return to mozilla plugin check, it shows that I need t

  • TV 39l4333DG - bad weather in CLOUD services

    Hi all In my Toshiba 39l4333dg, the weather is bad (an hour earlier than the current time). I guess it had something to do with time (DST) changes that have occurred lately in Poland. I tried to reset the TV but it didn't work. You have a solution to

  • Notes - camera mode and the draw

    Hello. I have 4 ipad air2 in my nursery for staff to use. We're just using notes, however, we see that 1 of platelets has the camera and function of the draw of the keyboard but the other 3 don't. I checked all 4 at software date wise, all other para

  • print in draft mode

    I have a printer Kodak ESP 7 I'm running in Windows XP, in mode rough it will print the first page ok then he follows with two blank pages then it print the 2nd page but it will start with about 1/4 down on the page and finish on the next page and th

  • mobile broadband stick too big causing me not able to connect my wireless receiver optical mouse

    ACER dear community, I need your help or solutions. My problem is about my mobile broadband using stick and wireless optical mouse at the same time. I just bought a laptop Acer V13 and excited to use when I'm out and about. I have more access to publ