How segregrate strings concantenates chain

Hello

I'm trying to write and read data from the port of succession using the VISA.vi with Labview. I can concatenate multiple strings for writing. I am able to read and write data using the serial port.

I also want to read the value of the card and need to put an indication that data is written and which was read by the serial port are the same.

Please give me a suggestion.

I am able to read and write data using the serial port.
If you need the staus.find compare the value of witten with the value read and must update the VI attached.

Tags: NI Software

Similar Questions

  • How convert string to number

    How convert string to number


    my character


    Select form double to_number ('1,6,9,4'); my putting here 1,6,9,4

    get the character of number conversion error.

    concerning

    Published by: vr on March 31, 2011 23:59

    Published by: vr on March 31, 2011 23:59

    VR says:
    Getting error while the conversion of character to the number in instring is possible to get the position of the channels at one time

    I have the following table, called pack

    Acct_No pack2 pack3 pack1
    1000 10101011 111111101 01010101111

    Select * Pack
    where instr (pack2, ' 1') and * (to_number (replace('1,6,9,4',','))); * - getting values of function as string '1,6,9,4'

    If you want to retrieve lines where the position of the first "1" in the pack2 chain is one of the positions in your list number e.g. position 1, 6, 9, or 4?

    Something with regexp_like can help...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with pack as (select '1000' as acct_no, '10101011' as pack1, '111111101' as pack2, '01010101111' as pack3 from dual union all
      2                select '1001', '10101011', '000011111', '10101010110' from dual union all
      3                select '1001', '10101011', '000000001', '10101010110' from dual)
      4  --
      5  -- end of test data
      6  --
      7  select pack.*, case when regexp_like('1,6,9,4','(^|,)'||to_char(instr(pack2,'1'),'fm9999')||'(,|$)') then 'Yes' else 'No' end as x
      8* from pack
    SQL> /
    
    ACCT PACK1    PACK2     PACK3       X
    ---- -------- --------- ----------- ---
    1000 10101011 111111101 01010101111 Yes
    1001 10101011 000011111 10101010110 No
    1001 10101011 000000001 10101010110 Yes
    
  • How do to this chain operation looks simple but causing a lot of time to do :)

    Hi all

    I have a very large chain, i.e. the soap xml response send by server that I read once connected to the server using http, now the problem is that I need to create a Document out of it and analyze what is simple but the answer I get server requires many replacements of string as example 1) replacing "<" with "<"  2)="" replacing="" ">"="" with="" "="">" etc before creating a document out of it now there are many such replacements in the sending of the response from server that takes a lot of time. 5 minutes on the emulator. So my question is how do? Is there a native method to replaceAll occurrences of a substring in a string or while I can use or is there another good way? Please let me know thx.

    Thank you

    Sagar

    We took over a project done by someone else, and they were doing exactly what you do.  Here is their source, which I think is more effective that you give it a try if you want.

    But be aware that I have never used or tested this code.

    I guess you pull that string to the center of your SOAP response.  It has been encoded XML.  So you can do what we did in this case and wrap the string as a data element in an XML element and then use the XML parser to get the actual data, which feed us an XML parser again to get the actual data.  XML is already set up to deal with these characters, so it was more effective than the approach to replace.  Actually to be honest, it wasn't the reason we exchanged, that as part of the parser XML meant we were convinced it was done correctly.

     public String replaceAll(String source, String pattern, String replace) {
            if ((source != null) && (pattern.length() > 0)) {
                final int len = pattern.length();
                StringBuffer sb = new StringBuffer();
                int found = -1;
                int start = 0;
    
                while ((found = source.indexOf(pattern, start)) != -1) {
                    sb.append(source.substring(start, found));
                    sb.append(replace);
                    start = found + len;
                }
    
                sb.append(source.substring(start));
                return sb.toString();
            } else
                return "";
        }
    
  • How to stop the chain of management based on the description in Oracle 11 g BPM

    Hi all

    Need your help in the understanding of the possible implementation under the scenario:

    We have a chain of management where he must be stopped once the instance they are assigned to a user with specific indication of the genre (say HOD).

    We are unsure of the number of levels in which it will reach to user with the designation as HOD.

    It may be 2, perhaps 3 or 4 is perhaps.

    When I looked at the options available, we have the ability to define the best participant "by title" (Manager, Director, CEO the values available)

    So my concerns here are:

    (a) If this title is mapped to the user of designation as a Manager, Director or CEO?

    (b) can we add other titles down to the bottom.

    Secondly, we have the possibility of using XPath, but here I do not know how to achieve this using XPath use cases.

    Please guide if there is another way to handle this.

    Let me know if my problem statement is not clear.

    Kind regards

    Bodet

    For your condition, you should be able to type the name directly in the title field:

    You can use XPath to determine the top Participant at run time. For example, according to the applicant, if the participant at the top of the page is different. You can determine the value of participating in the execution, put it in a variable of the payload and then use it here.

  • How a String get phone number?

    Hi all

    How a phone to get the string numbers. In this "Emp_Details" column, we have

    Phone number, address and Date. How we can get the only phone number.

    Example:

    Select Emp_Details from Table_name.

    Values of Emp_Details:

    8183917972

    13/01/2015

    AAA

    6617144613



    I need to get only the phone numbers. As

    Emp_Details:

    8183917972

    6617144613


    Please help me as soon as possible.

    Hello

    To find the rows where emp_details contains exactly 10 digits (and nothing else), you can use

    SELECT *- or what

    Table_name FROM

    WHERE the TRANSLATION (emp_details

    '123456789 '.

    ', ' 000000000 '.

    ) = "0000000000"

    ;

    I hope that answers your question.

    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.

    Point where the above query is to produce erroneous results, and explain, using specific examples, how you get the right results from data provided in these places.

    If you change the query at all, post your modified version.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    Check out the Forum FAQ: Re: 2. How can I ask a question on the forums?

  • How to avoid the chained rows

    Hi all

    I have problems with the lines chained on an instance of customer. I did the analysis and I've identified the tables involved. I prepare a small script with the various necessary ALTER TABLE MOVE for each table, increasing their pct_free and pct_used parameters.

    I take the idea of this article: http://www.akadia.com/services/ora_chained_rows.html

    The script have different sentences like this: ALTER TABLE CASASCONJARDIN. USERS MOVE PCT_USED 50 PCT_FREE 20; (one for each table)

    The first sentence has been completed successfully, but the faild remains with the following error:

    ERROR on line 1:
    ORA-14133: ALTER TABLE MOVE can not be combined with other operations

    Where is my mistake? Why I could execute the first order but not the rest? How can I solve my problem of chained rows?

    Kind regards
    Jordi

    Hello

    ALTER TABLE CASASCONJARDIN.USERS MOVE PCT_USED 50 PCT_FREE 20
    

    Not sure that you used the syntax
    but the correct syntax is

    ALTER TABLE CASASCONJARDIN.USERS MOVE PCTUSED 50 PCTFREE 20
    

    You have your additional syntax "_".

    Concerning
    Anurag

  • How to create a chain of buttons?

    Hi, I am new to the use of labview and I want to create a simple program such that when a user selects a button would appear another button.

    i.e. If the user selects LED, on the Panel before 2 other buttons would seem to invite the user who led should be lit. If the user selects the engine, 3 buttons would show on the front panel is turning left, right, or stop it.

    I was wondering if this is possible. If so, I was wondering how to do this.

    Thanks for the help in advance!

    bluexdestination wrote:

    Hi, I am new to the use of labview and I want to create a simple program such that when a user selects a button would appear another button.

    i.e. If the user selects LED, on the Panel before 2 other buttons would seem to invite the user who led should be lit. If the user selects the engine, 3 buttons would show on the front panel is turning left, right, or stop it.

    I was wondering if this is possible. If so, I was wondering how to do this.

    Thanks for the help in advance!

    If you rt click the buttons you want to display on the façade, creating > property node... There's a call from the "visible" property make these fake during initialization and then true when your motor or LED buttons are met

  • How the string output to a common indicator?

    Hello

    I have a sequence of battery with 10 picture sets, there is a wait to delay of 2 seconds between each image. I have a common indicator of channel set and I want to output a string to this indicator in the first framework before the codes between frame 2 frame 9 execution... and I would like another string to the same indicator on the latest image to indicate all the completed exit code. But I find that there is no way to share the flag by two constant string of different chassis. Any idea? Thank you.

    Use the variable value or local property of the node of this common indicator in all sequences

  • How to string U2414H two screens without connector DIsplay Port

    I have a U244H screen and want to buy another to increase my overall display area.

    Currently, I connect to the U2414H using the HDMI output on my laptop. My laptop has 1 x HDMI and 1 x VGA outputs. Is it possible to set up daisy chaining with this configuration?

    I used the following Setup successfully. U2414H connected to HDMI and VGA monitor connected to the VGA output of my laptop and working well. However, I prefer two monitors of U2414H due to the smaller borders.

    The P2414H the same resolution (1920 x 1080) and the VGA port.

    The S2415H NOTE from the ADMIN: broken link has been removed from this post by Dell > the same resolution (1920 x 1080) and the VGA port.

  • How to string conversion in the Nodelist XML in java

    Hai

    I need to convert the string to a nodelist in java

    Element parentcustom = (element) wink;

    String resultNodeValue = replaceAngleBracketsChildType (parentcustom.toString ());

    NodeList parentcustomList = resultNodeValue (NodeList);

    I did high way, but I don't get the right answer

    I need this resultNodeValue to be converted to nodelist.

    can someone help me

    Thanks in advance...

    Your requirement is to get the "parentcustomdetails" inside the node 'parentruledetails '.

    The following code will do that.

    NodeList children = doc.getDocumentElement().getChildNodes();
    for (int i = 0; i < children.getLength(); i++) {
         Node parentRule = children.item(i);
         if (parentRule.getNodeName().equals("Parentrule")) {
              NodeList nlParentRule = parentRule.getChildNodes();
    
              for (int j = 0; j < nlParentRule.getLength(); j++) {
                   Node parentRuleDetails = nlParentRule.item(j);
                   if (parentRuleDetails.getNodeName().equals(
                             "parentruledetails")) {
                        NodeList nlParentRuleDetails = parentRuleDetails
                                  .getChildNodes();
    
                        for (int k = 0; k < nlParentRuleDetails.getLength(); k++) {
                             Node parentCustomDetails = nlParentRuleDetails
                                       .item(k);
                             if (parentCustomDetails.getNodeName().equals(
                                       "parentcustomdetails")) {
                                  NamedNodeMap attributes = parentCustomDetails
                                            .getAttributes();
    
                                  System.out.println(parentCustomDetails
                                            .getNodeName());
                                  for (int l = 0; l < attributes.getLength(); l++) {
                                       Node attr = attributes.item(l);
                                       System.out.println("\t"
                                                 + attr.getNodeName() + " -- "
                                                 + attr.getNodeValue());
                                  }
                             }
                        }
                   }
              }
         }
    }
    

    The output of this code is,

    parentcustomdetails
         CHILD_TYPE -- Console
         CMD_CODE -- 37135
         CMD_NAME -- login authentication [string]
         CMD_OPTION -- login authentication
         COLUMN_INDEX -- 0
         CONDN_OPER -- exists
         CONDN_VALUE -- True
         PARENT_RULE_CODE -- PR630
         RULE_TYPE_FLAG -- Customrule
    parentcustomdetails
         CHILD_TYPE -- Console
         CMD_CODE -- 37135
         CMD_NAME -- login authentication [string]
         CMD_OPTION -- string
         COLUMN_INDEX -- 1
         CONDN_OPER -- equalsto
         CONDN_VALUE -- AAAAAAAAA
         PARENT_RULE_CODE -- PR630
         RULE_TYPE_FLAG -- Customrule
    
  • Is it's slow too chained? How to prevent the chained rows?

    Hello

    Because of performance on my database problem, I fell "Lines Chained/transferred items"... and ran the script to check the chained rows...

    I chained rows in 2 tables but alone is worth mention. This is a table that has 50 CLOB columns and 1.1mil records...

    After you run the script for the chained rows get 500,000 lines chained out of this 1.1mil...

    I will now do as explaind in the forums and books, reinsert it train... to try to solve this problem

    So my question would be, what should I do to prevent it, if I can actually at all for the get not both chained rows? I understand that certain lines cannot be prevented from having channels...

    Database block is 8192. Length (stats) line avarage of this table is 6093, 8.9 G est.size... PCTFree is 10 by default...

    Right now I get the warning: "Too low PCTFREE for a table" and is 1.3...

    I need to increase the block of data or increasing the PCTFree some ranged from 20 to 25? If so, somehow improves one block only on the table cause recreate database which is that 79 GB would take time...?

    Performance is the big problem, the disk space is not...

    Thank you.
    Kris
  • How covert string to date

    I wanted to convert a string to a date like
    Convert from '20090405132103' to the 05/04/2009 13:21:06 what function help me please help
    to_char(to_date('20090405132103', 'YYYYMMDDHH24MISS'), 'MM/DD/YYYY HH:MI:SS AM')
    

    See you soon
    Sarma.

  • How to string concatination in pl/sql

    I'm working on
       
     IF LENGTH(v_final_string) < 3800 THEN
            SELECT nvl2(v_final_string,v_final_string
              ||',' ,v_final_string)
              || temp.temp_string
            INTO v_final_string
            FROM DUAL;
            DBMS_OUTPUT.put_line ('v_final_string=' || v_final_string );
          ELSE
            EXIT;
          END IF;
    inside a loop. But it is not concatenate. I'm alwas empties v_final_string

    Hello

    Always show a complete script that people can run to recreate the problem and test their ideas.

    Beginning of v_final_string is null?
    If so, the condition

    IF LENGTH(v_final_string) < 3800
    

    won't be TRUE.

    I think you want something like:

    ...
    IF  v_final_string  IS NULL
    THEN
        v_final_string := temp.temp_string;
    ELSIF  LENGTH (v_final_string) < 3800
    THEN
        v_final_string := v_final_string
                     || ','
                 || temp.temp_string;
    ELSIF
        EXIT;
    END IF;
    

    or

    ...
    v_final_string := v_final_string
                || ','
                || temp.temp_string;
    
    IF  LENGTH (v_final_string) >= 3800
    THEN
        v_final_string := LTRIM (v_final_string, ',');
        EXIT;
    END IF;
    

    I prefer the second way. Since then he has not test if v_final_string is NULL each time through the loop, it will probably be a little faster.

    It is rarely needed the double table in PL/SQL.

  • How a string in ascending order of sort

    Hello

    the samble of my sring as below,
    10; 2; 3; 4; 5; 8; 9; 1
    10; 2; 3; 4; 5; 8; 9
    and I need to sort in order to be as below, growing

    1; 2; 3; 4; 5; 8; 9; 10
    2; 3; 4; 5; 8; 9; 10
    any help please,.
    SQL> select * from sample_data
      2  /
    
    STR
    -----------------
    ;10;2;3;4;5;8;9;1
    ;10;2;3;4;5;8;9
    
    2 rows selected.
    
    select  ';' || rtrim(xmlagg(xmlelement(e,regexp_substr(str,'[^;]+',1,column_value),';').extract('//text()') order by to_number(regexp_substr(str,'[^;]+',1,column_value))),';')
      from  sample_data,
            table(
                  cast(
                       multiset(
                                select  level
                                  from  dual
                                  connect by level <= length(regexp_replace(str,'[^;]'))
                               )
                       as sys.OdciNumberList
                      )
                 )
      group by rowid
    /
    
    ';'||RTRIM(XMLAGG(XMLELEMENT(E,REGEXP_SUBSTR(STR,'[^;]+',1,COLUMN_VALUE),';').EX
    --------------------------------------------------------------------------------
    ;1;2;3;4;5;8;9;10
    ;2;3;4;5;8;9;10
    
    2 rows selected.
    
    SQL> 
    

    SY.

  • How to string movieclip to mousepointer?

    I want to do a clip of a (Yes, the insect) fly (named "smoke" in Norwegian) follow my mousepointer around the stage, or at the top of the image, by following (which I imagine is advanced enough) or under mousepointer hover and would prefer is not necessary, hold down the mouse button, as this could be uncomfortable for a while.

    I tried:

    flue.addEventListener (MouseEvent.CLICK, movingFly);

    function movingFly (evt:MouseEvent) {}
    Flue.x = flow + 225 .mouseX;
    Flue.y = flue .mouseY + 220;
    }

    I don't know what to do, if I even use the right earphone or attributes... when I click on it, it disappears outside the given step and in the upper left of the screen, and when I click on it again, it moves in the direction, I clicked on him... weird Center...

    I have a file where chart follows the mouse, but it does not seem to work in the same way as with graphics. I want it to be identical with the graphics... Any help is appreciated

    Try from the following:

    stage.addEventListener (MouseEvent.MOUSE_MOVE, moveFly);

    function moveFly(evt:MouseEvent):void {}
    Flue.x = mouseX;
    Flue.y = mouseY;
    }

    The way you have, when you click it, it moves 200 pixels.

Maybe you are looking for