String manipulation & table

Hello

Maybe someone can give some advice. I read the data on the temperature of a Hydra of 2620a Fluke. I went to work, one every few seconds the temperature reading is fast enough. The moat returns a string containing a number of temperatures for each analysis. Each test returns a string, something like + 0023.7E + 0, + 0025.6E + 0, + 0023.8E + 0...

9 sensors are measured. For each channel, I can parse the string to a numeric string, convert it to a number and add this number to a table.

Say that temperatures are 1,2,3,4,5. I find myself with a table 1 d, 1 2 3 4 5 1 2 3 4 5 12 3 4 5 1 2 3 4 5... write this to an LVM file results in 1 column with all these numbers.

What I need is a number for each scan line, as follows (an additional column would be times)

1 2 3 4 5

1 2 3 4 5

1 2 3 4 5

I'm having a brain freeze and I just cannot find a way to do it.

Also, I need to display these temperatures in a graph. If I have the temperatures in a picture, I can manipulate them and do the required calculations.

If some has a suggestions that would be great. I'm using Labview 2012.

Attached, is the part that needs to do this. 1,2,3,4,5 chain would be the release of the moat and would read up to the stop.

Thanks in advance

Arne

And if you also want their graph, simply send them a chart:

Tags: NI Software

Similar Questions

  • comma delimeted string manipulation

    Three possibilities of decoding where it goes. BB SDK 5. Data GPS are stored in a vector of singleton in the form of a string. Essentially the string looks like this: value1, value2, value3, value4, Value5, Value6,

    There can be more than 1 string in the singleton at some point I want to get a timer task in another thread is so to check each string, divide the data into other variables so that I can create a message that will be sent via an http connection. Bit, I'm glued to the minute tire data back to specific variables... I try to use a cup of the version of http://supportforums.blackberry.com/t5/Java-Development/String-Manipulation-split-replace-replaceAll... because I already know what will be the delimiter and also the amount of the values contained in the string, but I must be missing something here. The code that I need to check the vector and to try and do things variable is therefore:

    for (int i = 0; i)< instance.vector.size();="">
    {
    String elementReturnString = instance.vector.elementAt (i) m:System.NET.SocketAddress.ToString ();
    String strDelimeter = "";
    String results [] = new String [6];
    int iOccurrences = 0;
    int iIndexOfInnerString = 0;
    int iIndexOfDelimiter = 0;
    int iCounter = 0;
                           
    System.out.println ("string delimiter =" + strDelimeter); It appears,
                            
    While ((iIndexOfDelimiter = elementReturnString.indexOf (strDelimiter, iIndexOfInnerString))! = - 1).
    {
    results [iCounter] = elementReturnString.substring (iIndexOfInnerString, iIndexOfDelimiter);
    iIndexOfInnerString = iIndexOfDelimiter + strDelimiter.length ();
    iCounter += 1;
    }
    System.out.println ("# latitude =" + results [0]);  It's never far

    Lat string results = (0);

    Lon string = results [1];

    Line speed = results [2];
    etc etc etc.

    }

    He bombed in the debugger with a number of errors with the first course cannot find symbol on the strDelimeter on while the statement variable. It fails every other time its use, but it displays a comma in the system.out statement. He also says that iIndexOfInnerString = iIndexOfDelimiter + strDelimiter.length (); Cannot be applied to strDelimeter.length.

    ..... Any ideas please? I tested that he can see in the vector information ok.

    You wrote your variable strDelimeter and strDelimiter (note the an i e).

  • How to use String Manipulation Cloud Connector to shoot the first five characters of the field? (Expression syntax experience)

    The question

    I need to segment data on a large number of Postal Codes, usually about 400 to 600 at the same time. It is that our postcode field includes the last four digits in some cases, for example 92101-1957. When you use the Contact filter 'Value In A' I'm not able to do this 92101 *, 92102 * and of course I can't account for any combination of four numbers that might appear.

    The Solution - in theory

    The solution I came up with that is to create a new field of Contact in Eloqua 'Segmentation Zip Code' copy of the 5 digits of the postal Code field and execute segmentation using this new field.

    The Solution - Cloud Connector

    String Manipulation cloud connector must be able to perform this action - copy on the first 5 digits of the zip in the zip segment field field.

    When I'm stuck - via cloud connector

    I can't figure out how to write the syntax for expressions to search and replace. I have read the instructions of syntax and am still unable to establish exactly what I enter in the "regex to find: ' and the ' Regular Expressions to replace:

    Does anyone have expierence with an Expression syntax that might help train these expressions?

    Any ideas on other ways to address the problem would be too great.

    Thank you

    Louis

    Hi Louis,.

    Okay, I think I might know how to do it now but don't have access to Eloqua for the moment, so I'm kind of make this Store, but try below.

    Use the regex below in the "Regex for find" and let the "Regex to replace white": "."

    -(.*)$

    This will be after the hyphen and the replacement string will be empty, so I hope you should be left with just the first five digits that you can map to a new field.

    Let me know how you get on, I might be able to test myself so tomorrow so I'll see if I can make it work.

    Chris

  • Problem of string manipulation

    Hello

    I have a problem with string manipulation. I need to compare the character with his next character.
    as an example consider the string as "fat".
    'b' must be compared with 'o'.
    "o" by 'l' and so on.
    I used below the code snippet.


    for (int i = 0; i < s.length (); i ++)
    {
    int j = i + 1;
    If (s.charAt (i) == s.charAt (j))
    {
    status = false;
    }

    on the other
    {
    status = true;
    }
    }

    But I get an error message. Help, please. Thanks in advance.

    Published by: Vinayjgeorge on June 1, 2011 12:26 AM

    Published by: Vinayjgeorge on June 1, 2011 12:39 AM

    (1) for the validation of code, use the code tags so that it will be readable: http://forums.oracle.com/forums/ann.jspa?annID=1429

    (2) "I get an error" means nothing. Do you think that there is only a single possible error that may appear in the Java code and the only possible thing that can? If this isn't the case - in other words, if you don't know that there are different errors and causes - so why you thought that simply say "I get an error" without any details would be sufficient to describe the error? You must copy and paste the exact, complete error message, if you want to communicate clearly what problem you encounter so that people can help you.

    Please put a little more thought in upcoming posts.

    That said, in this case, it is easy to see an error you will get. Loop tells you ' for each character in the string, compare this character with the next. " You can see why it does not work? When you get to the last character, the comparing it to that is not possible, because there is not a next. You say "for all characters except for the last, compare it to the following."

    Once correct you that, you always seem to have a logic error. You are just blindly setting status to each character, so when you're done, just status will contain everything that produced the last comparison. It might go back between true and false to each character, but the only one that will count will be the last.

    Edited by: jverd May 31, 2011 12:06

  • With the help of the function of worksheet to convert the string in table 1 d

    Hello to all 2!

    I have the following problem: I have a string (which I have read in a txt file), and using the chain of worksheet to the array function, I want to turn this string in a table 1 d of double. MY PROBLEM is that the resulting string is only the first element. How I see the other items too?

    4 thank you for your time!

    P.S. I use LabView 8.5.1. Windows XP SP 2

    Check the code below:

    or only one solution: (do not know why Path2 showed up to... ignore her...)

  • string in table 2D

    Hello

    I have big chain like this:

    TITLE

    N1
    string1-1
    string1-2
    string1-3
    N2
    string2-1
    string2-2
    string2-3
    N3
    1 string3
    string3-2
    string3-3
    ...

    n99

    string99-1

    string99-2

    string99-3

    And I want to create a table:

    N1 1 string1-string1 of string1-2-3
    N2 string2-1 2 string2 string2-3

    ...

    I tried using worksheet to the table but haw to set the delimiter

    Any Suggestions?

    Not with the string of worksheet to the array function. For this, you must parse the string looped firstly on the values of "n" and then to analyze each segment so found in a 1 d array using the line delimiter. Combining all these tables 1 d will give you a table 2D.

    Use the correspondence for the initial segmentation model.

    Mike...

  • String to Table

    Hello.

    I am trying to understand how to put the string entries in a table on the right, and from top to bottom left.

    for example

    channel 1 goes to Row0Col0 (R0C0)

    Channel 2 goes to R0C1

    chain 3 goes to R1C0

    rope 4 goes to R1C1

    and so on.

    Essentially, I want to implement this in a larger VI who needs a report to print with data perfectly spread out in rows and columns.

    And the data are "String" and not digital.

    Can anyone help?

    Hi Rohit,

    First you create your lines, then you generate your table since the lines:

  • A String conversion table of double rooms

    Hello

    Do you know how to pay to convert a string into an array of doubles.
    Here is an example of my chain:
    0.000,1,0.7614801886489786,0.023750439346730916,205.77816888786631,0,0,0,0,0,0,0,0,0,-0.643693240119727,-0.005262679965248317,-0.005271184635994994,0,0,0,0,0,0,0,0,0
    (numbers with comma separator).
    I tried with string to function table worksheet, but it doesn't work.

    Thank you


  • Actual number of string in table

    Hello

    I want to read real numbers to a text file and put them in a table.

    The problem is that the precision of the number is not displayed. It is converted in full.

    There is an example similar to http://forums.ni.com/t5/LabVIEW/Text-string-to-integer-array-with-keeping-order-in-text-string/m-p/1...

    I couldn't transfer the number in the array of strings in a digital picture.

    Thanks in advance.

    Mittani

    Replace the string decimal number by the fractional equivalent conversion

  • Convert strings in table (Composite Type)

    I am creating an array of Type Composite in a vCO for the purpose of data transmission via the package manager of Script comments.  I use the comments Script Manager to run a PowerShell script that will deploy the 1 domain controller in a new forest.  Right now I have only 2 variables customized in the script; '$aminPassword' & '$domainName '. If I was running directly from vCO, that I would have no problem because I could manually select the variables to replace during execution of the workflow "Execute Script in guest VM.  Given that the process will be initiated to vRA, I have to go through the laborious process of creating a wrapper.

    The workflow in the package manager of Script comments where this logic is called "Run Script in guest VM.  In this workflow, there is a script called 'Update Script' task object has 2 inputs: vcoPath (type: String, attribute) value is the path where the script is stored on the server of vCO and scriptVariables (type: Type(StringtoReplace:string,ReplacingString;string):scriptVariables) Composite.  The last variable would be normally filled during the manual invocation of the workflow when the applicant chooses the script as they ran.  Since I'm on vRA for presentation, I have to the people of the variable based on script string entries.

    The code for the scriptable task update Script is:

    var ScriptFile = new FileReader (vcoPath);

    scriptFile.open ();

    script var = scriptFile.readAll ();

    for each {(var scriptVariable in scriptVariables)

    System.log ("Proxy" + scriptVariable.get ("stringToReplace") + "with value" + scriptVariable.get ("replacingString"));

    var search = escapeRegExp (scriptVariable.get ("stringToReplace"));

    script = script.replace (new RegExp (research, "g"), scriptVariable.get("replacingString"));

    }

    Recording of the single file

    System.log ("save the script" + vcoPath + "with content: \n" + script);

    var fileWriter = new FileWriter (vcoPath);

    fileWriter.open ();

    fileWriter.clean ();

    fileWriter.write (script);

    fileWriter.close ();

    function escapeRegExp (str) {}

    return str.replace (/ [-------------[\]------/------{\}------(\)------*--------+------?------.------^------$------|] / g, "------$& ');

    }

    I found the following script online to build the array of Type Composite, but it doesn't seem to work:

    scriptVariables = new Array();

    var jsObj = {name: '$domainName', value: DomainName};

    scriptVariables.push (jsObj);

    var jsObj1 = {name: "$securePassword", of the value: somepassword};

    scriptVariables.push (jsObj1);

    In my solution, $domainName and $securePassword are the variables that are replaced with the values of the variable WF domainName and somePassword vCO.

    The error on the task scriptable, declaring "Update Script" I get:

    [03:31:16.420 2015-01-01] [I] replace null with the null variable

    [03:31:16.420 2015-01-01] [I] TypeError: can't call method "replace" NULL (Workflow: Wrapper to run the script in guest VM / update script (item29) #13)

    I put a breakpoint on the script task that contains the code to create the table of Type Composite and saw he was actually creating a table with 2 columns and 2 rows, but it was empty.

    I've been trying my brain on this one for a while now and have found only a few messages on the web that have been useful only to distance this finally brings me to my question: does anyone know how to fix this?

    v/r

    Jeremy

    If the section "create a workflow dedicated to run the script" of the tutorial in relying on the comments Script Manager package does not work, I'll make sure to try your suggestions and comments. If the tutorial works, I will also provide feedback and let everyone know the solution.

    Thank you

    Jeremy

  • SQL and the Q Q string manipulation

    I'm trying to find out if I can use the manipulation of SQL strings in a Q Q. Here is an example of what I'm trying to do:

    < cfquery dbtype = "query" name = "supportstatements_order" >
    Select *, right (SupportStatements.Name, 12) as short_name
    Of SupportStatements
    Order by name
    < / cfquery >

    I get an error in CF I have an incorrect select statement.

    Is it possible to do with Q of Q?

    Thank you very much.

    Anyone know if I could use queryaddcolumn in this situation?

    Gather your themes led to the next suggestion

    Erratum edit: data type correct varchar added

  • string manipulation

    I'm working my way with the homework, and I was searching the Internet about the concatening of the word into two substrings. However, how can I say it so that he knows what he he always separates 50%? Which means half of the word goes into 1 indicator and the other half goes in the indicator 2. For now, I have to manually set the number, but it won't work if I type in another word, of course.

    PackersFan wrote:

    As said altenbach, note that it worked well with a string with a length of.  If the length is odd, you will need to turn and have uneven substrings.

    You don't want to use the simple fracture operation, because it will give an orange output. Use the quotient and remainder keep permanently blue.

    • To round down, use the output of the floor
    • To complete, add the rest to the floor exit (if the division by a number greater than two, apply the sign function to the rest first)
  • SystemPrompt result text string manipulation does not: what am I doing wrong?

    I'm trying to manipulate a "collar", I get a SystemPrompt.  Here is my code:

    SystemPrompt {
        id: prompt
        title: qsTr("prompt")
        inputField.maximumLength: 16
        inputField.defaultText: prompt
        inputField.emptyText: "prompt"
        inputField.inputMode: SystemUiInputMode.NumericKeypad
        // eNum: Default = 0, Email = 1, Password = 2, Phone = 3, Pin = 4,
        //       Url = 5, Symbols = 6, NumericKeypad = 7, NumbersAndPunctuation = 8
        onFinished: {
            if (result == SystemUiResult.ConfirmButtonSelection) {
                result = inputFieldTextEntry()
                //result = result.mid(0,4) + " " + result.mid(4,4) + " " + result.mid(8,4) + " " + result.mid(12,4)
                //result = inputFieldTextEntry.mid(0,4) + " " + inputFieldTextEntry.mid(4,4) + " " + inputFieldTextEntry.mid(8,4) + " " + inputFieldTextEntry.mid(12,4)
                labelPrompt.text = result
                //labelPrompt.text = result.mid(0,4) + " " + result.mid(4,4) + " " + result.mid(8,4) + " " + result.mid(12,4)
                toast.body = "prompt result: " + result
                //toast.body = "result: " + result+ result.size // this causes the toast result.size value to be "undefined"
                toast.show()
            } // if
        } // onFinished
    } // SystemPrompt
    
    [...]
    
    attachedObjects: [
        SystemToast {
            id: toast
            onFinished: {
            }
        }
    ]
    

    I certainly made the generic object compared to my exact code names.  My problem is this: none of all the commented code works.  What I'm trying to do is to inject a space character between each 4 numbers entered via the SystemPrompt.  If I activate one of the commented lines, the soft seems to go out the onFinished SO without finishing (evidenced by the absence of toast).

    I have tried to type casting toString() here and there, but that shouldn't be necessary since QML handles type casting automatically.  I tried to add a debug string size value to my bread which gives a result 'undefined' for result.size

    Can someone indicate an error of my ways here?

    Not subst... There

    cardNumber = cardNumberTemp.substr(0, 4) + " " +
                 cardNumberTemp.substr(4, 4) + " " +
                 cardNumberTemp.substr(8, 4) + " " +
                 cardNumberTemp.substr(12, 4)
    
  • string manipulation: remove duplicates of string

    Hello

    I'm trying to deduplicate the entries of a string as a delimiter

    example of string entry: UV23_I2_P0_NUM; UV23_I2_P1_NUM; UV23_I2_P1_NUM; UV23_I2_P0_NUM; UV24_I4_P0_TXT

    example of string output: UV23_I2_P0_NUM; UV23_I2_P1_NUM; UV23_I2_P1_NUM; UV24_I4_P0_TXT

    Note the entry in double UV23_I2_P0_NUM in the first string that is removed in the output.

    Thank you!
    SELECT  distinct
                         REGEXP_SUBSTR ('UV23_I2_P0_NUM;UV23_I2_P1_NUM;UV23_I2_P1_NUM;UV23_I2_P0_NUM;UV24_I4_P0_TXT',
                                        '[^;]+',
                                        1,
                                        LEVEL
                                       ) AS val
                    FROM dual
              CONNECT BY REGEXP_SUBSTR ('UV23_I2_P0_NUM;UV23_I2_P1_NUM;UV23_I2_P1_NUM;UV23_I2_P0_NUM;UV24_I4_P0_TXT',
                                      '[^;]+',  1,
                                        LEVEL
                                       ) IS NOT NULL;
    
  • Urgent need help with String Manipulation

    Hello;
    I really need help with strings.

    Let's say I have these channels:
    \\ABC\DEF\GHI\xyz\xyz\xyz\xyz

    \\ABC\DEF\GHI\xyz\

    \\ABC\DEF\GHI\xyz\xyz\xyz\

    \\ABC\DEF\GHI

    \\ABC\DEF\GHI\

    ABC/DEF/GHI/xyz/xyz/xyz/xyz

    ABC/DEF/GHI/xyz /.

    ABC/DEF/GHI/xyz/xyz/xyz /.

    ABC/DEF/GHI

    ABC/DEF/GHI.

    I need to convert them using a SQL statement for:
    \\ABC\DEF\GHI\xyz\ or //ABC/DEF/GHI/xyz/ according to the original management / or \. Please note that the "xyz" may be repeated zero or more times. I just need one end with a trailing / or -if she had one first.

    I'm on Oracle 11.1.6 SE. I have a bunch of attempts with instr, substr and replace, but I think that regexp_replace could be better.
    Any help would be GREAT! I have a whole team waiting on me.

    Hello.

    Here is a way.

    -----------------------------------------------------------------------
    with sample_table as
    (
         select '\\ABC\DEF\GHI\xyz\xyz\xyz\xyz' str from dual union all
         select '\\ABC\DEF\GHI\xyz\' from dual union all
         select '\\ABC\DEF\GHI\xyz\xyz\xyz\' from dual union all
         select '\\ABC\DEF\GHI' from dual union all
         select '\\ABC\DEF\GHI\' from dual union all
         select '//ABC/DEF/GHI/xyz/xyz/xyz/xyz' from dual union all
         select '//ABC/DEF/GHI/xyz/' from dual union all
         select '//ABC/DEF/GHI/xyz/xyz/xyz/' from dual union all
         select '//ABC/DEF/GHI' from dual union all
         select '//ABC/DEF/GHI/' from dual
    )
    select str,
         regexp_replace(str,'(xyz([/\])*)+$','\1') new_str
    from  sample_table;
    
    STR                      NEW_STR
    ------------------------------ ------------------------------
    \\ABC\DEF\GHI\xyz\xyz\xyz\xyz  \\ABC\DEF\GHI\xyz
    \\ABC\DEF\GHI\xyz\            \\ABC\DEF\GHI\xyz\
    \\ABC\DEF\GHI\xyz\xyz\xyz\     \\ABC\DEF\GHI\xyz\
    \\ABC\DEF\GHI                 \\ABC\DEF\GHI
    \\ABC\DEF\GHI\                 \\ABC\DEF\GHI\
    //ABC/DEF/GHI/xyz/xyz/xyz/xyz  //ABC/DEF/GHI/xyz
    //ABC/DEF/GHI/xyz/            //ABC/DEF/GHI/xyz/
    //ABC/DEF/GHI/xyz/xyz/xyz/     //ABC/DEF/GHI/xyz/
    //ABC/DEF/GHI                 //ABC/DEF/GHI
    //ABC/DEF/GHI/                 //ABC/DEF/GHI/
    

    Kind regards.

Maybe you are looking for