The analysis of the data of a string in an array

I'm trying to analyze data from this series, which are continually being added to a string. How can I do this in a table that is added to each pass through the loop? The data looks like this:

20/08/2015-04:31:39, 0,242 4.382 0.219, 22.97, 8.211, 381,.

20/08/2015 04:31:43, 0,241, 4380, 0,220, 22.78, 8.202, 463,

20/08/2015 04:31:48, 0,242, 4380, 0.219, 23.06, 8.196, 543,

I tried to use the block 'string function analysis' with my 'chain' as

%f/%f/%f % f % f: %f %f %f, %f, %f, %f and %f,

mikeporter wrote:
Personally I have never had much luck with how long scan chains. I think that I divide the inflow on the date and then put the rest of the sample in a table 1 d of tanks using the spreadsheet string table. You convert the timestamp separately.

In fact, converting the first timestamp.

Tags: NI Software

Similar Questions

  • 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 data of type string mid

    I'm pretty new to LV and I'm trying to find a way to analyze the data in the middle of a set of string. an example of the data : 854560@67042850@600,000@151168390748@1000477480@00000000000000000

    Here I am trying to extract the first 6 digits (854560) and the 10 digits (1000477480). The length of the other numbers go from DataSet to the dataset that I work with but the '@' symbols are always involved. So, I wonder if there is a method to extract the left 6 and between the 4th and the 5th symbol @.

    Thank you.

    If you still have @ symbols as a delimiter and it will always be the same number of elements, you can convert only one table using '@' as separator and shoot the first and the 5th element.

  • Need help to extract the data into a string of separate brackets

    Hello

    I have a scenario where I have to extract data into a string that is enclosed in [].

    Here's what I want to do...

    entry:

    [name_first] [name_mi] [name_last]

    required output: this must return all data that are placed between square brackets.
    name_first
    name_mi
    name_last

    I tried the "REGEXP_SUBSTR' but my version of the database is 9i, and it is available only from 10 g.

    Thanks in advance.

    Hello

    You can use SUBSTR and INSTR
    This should work in Oracle 9:

    WITH     cntr     AS
    (
         SELECT     LEVEL     AS n
         FROM     dual
         CONNECT BY     LEVEL <= 3
    )
    ,     got_pos          AS
    (
         SELECT     x.txt
         ,     c.n
         ,     INSTR (x.txt, '[', 1, c.n)     AS l_pos
         ,     INSTR (x.txt, ']', 1, c.n)     AS r_pos
         FROM           table_x  x
         CROSS JOIN    cntr     c
    )
    SELECT        txt
    ,        n
    ,        SUBSTR ( txt
                   , l_pos + 1
                , r_pos - (l_pos + 1)
                   )     AS sub_txt
    FROM        got_pos
    ORDER BY   txt
    ,             n
    ;
    

    Sorry, I don't have an Oracle 9 database now; I had to test this in Oracle 10.

    jimmy437 wrote:
    ... I tried the "REGEXP_SUBSTR' but my version of the database is 9i, and it is available only from 10 g.

    It's true. Regular expressions are very useful, but they are not available in Oracle 9 (or earlier).
    Oracle 9 has a package supplied by Oracle, OWA_PATTERN, which provides regular expression features:
    http://docs.Oracle.com/CD/B12037_01/AppDev.101/b10802/w_patt.htm
    I know it's the Oracle 10, documentation, but there are in Oracle 9, too.

    Oracle 9 is very old. You should consider the upgrade.

  • MX:DateField screened with the date to a string database

    Hello

    I have a date in the database, in the format string that is dd-mmm-yyyy.

    I want this date to be shortlisted in the datefield (on the calendar), for that I need to convert this string to a date object and then connect it with the mx:datefield.

    I found that there is a function stringToDate(), but which is not applicable in my case or may be I do not use it correctly. I also found parseDateString which was also not useful.

    What is the best way to do it? can someone help me with this?

    Thanks in advance,
    Gaze

    Thank you guys for all your help and your time. I have some successful how to find a solution. :)

    I used a split function to cut off date to date, month and year.
    date_exp var: String = _userDetails.date;
    var date1:Array = exp_date.split ('-');
    var date: int = date1 [0];
    var Lun: String = date1 [1];
    var year: int = date1 [2];

    The month of the converted entire string and then selected the date in the using Datefield
    expDate.selectedDate = new Date (year, intMon, date);

    Thank you
    Gaze

  • move the data by lines into a 2D array

    HI, I have a question about moving the data in a 2D online table, that I was not able to do so if anyone has an answer please let me know

    a picture of what im doing is attached as I said

    I want '1 and run' online no column, if I change the index of the line it will work but the problem is that the 'run' under the '1' and I don't want if I change the index of the column of labview makes the data like the attached picture, but when I changed the labview index moves the data by column when want per row

    Hi, I think that change your code as this will give you the behavior you're looking for.

    That being said, your source code is a bit confusing. Why do you have a loop for? If you remove the loop for example, the code will do exactly the same thing.

    Kind regards

  • How to capture the data of type string with agent script and then compared to an alarm

    Hello...

    How to capture the string with agent of script data and then create a rule to compare the string data to generate alarm?

    Thank you!...

    Start here:

    http://en.community.Dell.com/TechCenter/performance-monitoring/Foglight-administrators/w/Admins-wiki/6155.custom-script-agent-1-leverage-an-existing-monitoring-script-to-push-data-into-Foglight

  • Extraction of the data from a string

    Hi all

    I'm using Oracle 11.2.0.1.0

    CREATE TABLE BENEFIT(
      BENVAL       VARCHAR2(255 BYTE))
    

      insert into BENEFIT values ('Included - 365 days/50%/50%   ');
        insert into BENEFIT values ('Included - 120 days/50%/50%   ');
            insert into BENEFIT values ('Included - 365 days/75%/50%  ');
    

    I would like the following output.

    BENVAL Days FIRSTPER SECONDPER
    Included - 365 days/50%/50%3655050
    Included - 120 days/50%/50%1205050
    Included - 365 days/75%/50%3657550

    The days column must be set in the chain before days, the firstper column must be set between Prime ' / ' and the second ' / ', the secondper must be set after the last ' / '.

    Currently, I created a table to store the distinct values in a table and by referencing tables in my select query. Instead, I wanted to know if I can create a SQL statement.

    Thanks in advance.

    Hello

    Perhaps the easiest way is:

    SELECT benval

    , REGEXP_SUBSTR (benval, '\d+', 1, 1) AS days - or TO_NUMBER (REGEXP_SUBSTR...

    , REGEXP_SUBSTR (benval, '\d+', 1, 2) AS firstper - or TO_NUMBER (REGEXP_SUBSTR...

    , REGEXP_SUBSTR (benval, '\d+', 1, 3) AS secondper - or TO_NUMBER (REGEXP_SUBSTR...

    BENEFITS

    ;

    Guess what

    1. all 3 numbers are present,
    2. the days always appear first (as they do in the sample data),
    3. If there are other numbers in the chain, these additional staff come after percentages, and
    4. 3 numbers you want are unsigned integers.

    If any of these assumptions are false, then you can always use REGEXP_REPLACE, but things get a little more complicated.

    REGEXP_SUBSTR returns a VARCHAR2.  If you want a NUMBER, call the string passed by REGEXP_SUBSTR TO_NUMBER.

  • By using the Date/Time Format String function Vi

    I wanted to display the time in milliseconds to Labview and I got it to work. I want to display AM or PM after the milliseconds so it looks like this

    31/05/11 4:45:39.849 PM

    I use %p as you can see from the picture, but it does not work. AM or PM does not appear.

    What I am doing wrong?

    Thanks in advance.

    Replace your hour % I. Hour is 24 hours which has no designation A.m. or p.M. You must use the time of 12 hours.

  • convert the date to a string format

    date in Word format

    example:

    30 may-2013' as thirtieth may twenty thirteen.

    Thank you.

    Select to_char (to_date (30-may-2013 ',' Mon-DD-YYYY'), ' DDspth month year ") as double sample;

  • compare the time while ignoring the date

    I have this...

    "In the beach?" is always false no matter what that right now. I guess it's because the date is included in the comparison function.

    I need to compare these time and ignore the date. I can't find a way around it. The time will be the same every day and I would like for them

    to be one of the constants.

    Any help?

    Thank you.

    Try formatting the date in a string that does not include the day (only the hours and minutes).

    Tim W.

    Engineering applications

    National Instruments

    http://www.NI.com/support

  • When the signer will sign on the doc that I want to fill the date today, and he should be able to change the date

    Hello world.

    I joined salesforce with echosign.

    I need a help, whenever signatory 2 goes to sign on the doc I want to fill the date today and the signatory 2 should be able to change the date preceding the date of signature. 

    Hello

    So firstly follow the post on the forum to create a formula in salesforce field that creates the date as a string and this merge field in an agreement echosign.

    For example, configure the following field to receive the sfdc date string:
    {{todayeditable_es_:signer1}}

    of course to call the field all you want and also assign the right if not signer signatory 1.

    You can then add a calculated field that compares the date in the field of the todayedtiable against today's date

    {{datecheck_es_:signer1:calc(if(date([today]) > now(), "today larger than today", "continue to next step"))}}

    so, for example today's date is February 12, 2015
    the date entered in the todayeditable field is
    12/02/2015
    the audit date field will say "contine" (or whatever text put you between quotation marks)
    If the date entered has been
    13/02/2015
    datecheck displays "today higher than today.

  • increase the date of a

    HII all

    I have the date as a string
    I want to convert in the first form of date for the increase of a date
    for example: If the string is 1 January 11
    then it should increase by one as 2 January 11

    then this date an increase should convert to string

    How can I do?

    Hussain wrote:
    I tried but it work still doent

    You have to go at least once through Java programming practices.
    Try the code below

         public static void main(String[] args) {
              String dateString = "01-Jan-11";
              java.text.DateFormat formatter;
              Date date = null;
              formatter = new SimpleDateFormat("dd-MMM-yy");
              try{
                   date=(Date)formatter.parse(dateString);
              }catch (Exception e){
              }
              Calendar cal =Calendar.getInstance();
              cal.setTime(date);
              cal.add(Calendar.DAY_OF_MONTH, 1);
              String nextDay = formatter.format(cal.getTime());
              System.out.println("nextDay :: " +nextDay);
         }
    
  • CHD: the string is used as an index of change in data type? String to double?

    Hello

    I'm new to the tiara. I'm reading the line of a channel number and then to read the data of a channel which is in the same line of another channel.

    That's why I use the SMC function but my index seems not to fit. What I need to change in the code?

    error:

    CHD (2, NOVALUE): = 785 wird die Textvariable «...» CHD (2, > N)

    Code:

     

    DIM intloop, zeilenwerte
    Line DIM, aktwert, index
    Call ChnAlloc ("zeilenwerte", lang, 1, DataTypeFloat64) ' Create channel, 'lang' is the size of a channel
    index = 0
    index = 1 to lang
    index = index + 1
    aktwert zeit (index) = ' get the value that will be compared to the SOPS in the following line of code
    Line = PNo (myChannel, aktwert) ' it returns the line only by comparing aktwert valued myChannel
    CHD (line, zeilenwerte) = intloop ' <--->here the error. try to get the value in a line @index do String data types does not match? what do I do then?
    Next

    Thank you very much for your help!

    Buddhist salvation,

    It seems to me that you would be better to use "Linear Mapping" in the palette of ANALYSIS "Suitable curve", but you should be able to get your code works by passing the name of the channel in this second parameter instead of an empty string variable.  You would have noticed that if you had OPTION EXPLICIT the first line of your code - always a good idea.

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • Channel of String conversion to the data channel

    I have a problem I tried to accomplish through a. The URI of the file but can seem to make it work good for me.  I have an original data channel are in TEXT format and the data in the channel are the phone number in the format 6667779999 or 4343. Can someone help me with a suggestion of script to convert this. Most of my ATTEMPTS end with a 66.67779e5.  Can be simple but I can just figure it out.

    Thank you J

    Hello J,

    A number such as 66.6778888e5 can be shown as 6667778888 in a DISPLAY box or table or text REPORT or a axis of REPORT graph by using the display correct format string - in this case "d".  Where do you 6667778888 number appears like this in DIAdem, exactly?  If you want to see in a BULLETIN Board, you will need to choose the option button 'Selected channels' first in the configuration dialog box, and only then will you be able to choose a format string to display such as "d" for this column.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

Maybe you are looking for