By selecting a period table (selection of table data)

Hello. I have the mass spectrometer which gives me two analog signals (can be seen on the attached photo of Data.png). Black's RAMP, which represents the number of nuclear mass and the Red is the intensity of the Atom with mass number match (VI I fake it with signal generators). The stream of the spectrometer is continuous without any time.

What I'm trying to do is measure N samples of the two analog channels and make a proccesing of data with them:

1. find and separate a measurement period

2 convert the period points to the amount of actually measured mass (for example I measure core number from 1 to 20, there will be a range of 20 indexes in the end)-I'm in FOR loop

3. take another measure and combine with before making a statistical treatment (not implemented in VI again)

The biggest problem that I seem to have is with correct separation of the measurement period. I tried to use the function "min max", but it is not always global minimum and maximum array index where I. Could you please help me with this separation? Thank you.


Tags: NI Software

Similar Questions

  • How to load data from matrix report in the base using ODI table data

    Hello

    How to load matrix report data in the base table data using oracle Data Integrator?

    Description of the requirement:

    This is the data from matrix report:
    JOB                       DEPT10                DEPT20  
    ___________________________ _____________
    ANALYST                                           6000
    CLERK                   1300                     1900 
    Need to convert it to the format below:
    JOB                             Dept                        Salary
    _____________________________________________
    ANALYST                  DEPT10      
    ANALYST                  DEPT20                     6000
    CLERK                       DEPT10                    1300
    CLERK                       DEPT20                    1900
        
    Thank you for your help in advance. Let me know if any other explanation is needed.

    Your list seems to be a bit restrictive, you can do much more with the procedures of ODI.

    If you create the new procedure and add a step. In the 'source' tab command you define technology and pattern according to your source database. Use the unpivot operator as described in the link, please, instead of using "SELECT *' use the column names and aliases for example:"

    SELECT workstation,
    deptsal as deptsal,
    saldesc as saledesc
    OF pivoted_data
    UNPIVOT)
    deptsal-<-->
    FOR saldesc-<-->
    IN (d10_sal, d20_sal, d30_sal, d40_sal).<-->
    )

    Then in your tab 'command on target' defined technology and drawing on your target db, then put your INSERT statement for example:

    INSERT INTO job_sales
    (employment,
    deptsal,
    saledesc
    )
    VALUES
    (
    : job,.
    : deptsal,.
    : saledesc
    )

    That's why you use bind variables from source to load data into the target.

    Obviously if the source and target table is in the same database, you can have it all in a single statement to the "command on target' as

    INSERT INTO job_sales
    (employment,
    deptsal,
    saledesc
    )
    SELECT workstation,
    deptsal as deptsal,
    saldesc as saledesc
    OF pivoted_data
    UNPIVOT)
    deptsal-<-->
    FOR saldesc-<-->
    IN (d10_sal, d20_sal, d30_sal, d40_sal).<-->
    )

    also assign the log count "Insert" on the tab corresponding to your INSERT statement, so that you know how many rows you insert into the table.

    I hope this helps.

    BUT remember that this feature is out in Oracle 11 g.

  • copy and paste the table data

    Hi all

    I'm trying to convert some WinHelp files old HTMLHelp format. All files have as subjects with the same tables of three columns.

    Part of the done conversion tables look more "pretty", then we have a new scheme of formatting of table together upwards in a model of .htt file.

    It is, I can copy the new table and its formatting in my editor WYSIWYG RoboHelp... but to transfer DATA from the old table, I have to cut and paste data from each cell individually. I can just select the table of old (and its data) "in mass" and paste the data into the new table snazzy. Because the tables have three columns and up to 30 lines, it can become quite painful, cut and paste data from each cell in the corresponding cell in the new table.

    Is it possible to make this process faster? Ideally, I'd like to just reduce the process steps:

    (1) copy a blank version of the table of new, prettier in RoboHelp WYSIWYG.
    (2) cut out of the old table data.
    (3) paste the data into the new table.

    I hope I do my question clearly...

    Thanks in advance!
    Dave

    Colum, I think that his anxiety is caused by not being not able to copy/paste the content in multiple cells, you can in Word.

    Unfortunately, Dave, that is not possible...

    Leon

  • Tables and table data

    Hello-

    How is it when I create a node of a table property value and build a table of this node of property value, it gives me an annexed table?

    I tried indexing in this table twice for a single row of values, but when I try to compare the 1 index of this row in the table with the

    first index value from an array of the same size, the equal sign will not indent the table created index from the table. I see that the

    output wire is pink, which means that the value is considered as text... How can I convert that to a number so that I can compare the first value of a line

    in a table of the first value of a picture of a line to determine if they are equal? Array index is fed data points from

    a graph and once this 1st value of the array index is the first index value of the row in the table, I hope to have the index given in the table

    turns green when there is a football game. Thank you.

    Hello

    I'm not absolutely sure I knew you. Displaying a VI or a screenshot could be useful...

    However, attached, you will find a simple VI compare the first value of a table wanted the first value of a table row.

    Note that the table data type is string, not digital. No matter if you put numerical values in the table there are always string. A conversion is necessary to compare the values in array of numeric values.

    The values in the table are displayed as a 2D array in which the first dimension contains the lines (x).

    I hope I could help you with that.

  • DateFields 5.0 + operating systems. Impossible to select the current date.

    Have a slight situation.    Have a date with the value field by default of - etc.   The user is not able to select the current date, and must choose another date and what to do again to select the current date.

    This works very well in the pre - 5.0 OSes, but does not work with 5.0 +.

    The date field popup works fine, but if the user tries to select the current date, it is not get populated in the date field.

    I see what you mean now.  I connected it the Issue Tracker here: https://www.blackberry.com/jira/browse/JAVAAPI-1163

  • DateField, can not be able to select the current date

    Hai,

    I use DateField in my application. Initially, the date field is showing-/-/---(JJ/MM/AAAA) this format. So if I click on this field to date I can't able to select the current date. If I go on any later date or past date and define it and that I can not choose the current date.

    Hai,
    Thax for your quick response...
    I found this question in "Issue Tracker" here: https://www.blackberry.com/jira/browse/JAVAAPI-1163

  • Table data type

    Is there any equivalent data type to create a table inside a stored procedure or a package, and the table is only valid in the stored procedure or package.
    Something like this [http://www.developer.com/db/article.php/3414331/Using-the-Table-Data-Type-in-SQL-Server-2000.htm] what we have in sql server.

    I'm pretty new in Oracle world.

    Any help will be much appreciated.

    Thanks in advance.

    Yes... You can declare a record type in the package body

    TYPE rec_type () IS RENDERING
    NUMBER of col1,
    col2 VARCHAR2 (2 CHAR)
    ....
    );

    then simply declare a type of table top the record type

    TYPE tab_type IS TABLE OF THE rec_type;

    You can make statements within the body to keep it private, or in the spec to make it public

    It could be that useful...

  • Select the list date picker on a single line - is this a bug?

    I use: Application Express 3.2.0.00.27

    Here is a bug? If so, how he reported so it will be fixed in a future version of APEX? If this is not the case, how can I do so it ends as I wish?

    1. create the blank page
    2. create html region
    3 create the 'select list' (start on new line - Yes... Span - line field - Yes, ColSpan - 1, 1)
    4. create the date picker component (start on new line - no,... On the ground - No, ColSpan - 1, length of line - 1)

    There will be other items displayed in columns more above what I just had create you above. I want the list of selection and the datePicker to show side by side on the same line, so I put the element selector to date on the same line in the same field as the selection list element.

    HOWEVER... the date picker eventually displayed in the selection list item (sort of), instead of next to it on the same line.

    Here is what I get:
    ...................... [Field selection list] Label date Picker
    Select label list
    ...................... [Date field Picker]

    Here's what I want:
    Select the list tag [field selection list] Date Picker [Date Picker field]

    Thank you
    Steve

    Published by: sskelton on August 3, 2009 11:01

    Published by: sskelton on August 3, 2009 11:02

    Hello

    Take a look at my first answer here: Re: problem with the position of the elements of can help you

    Andy

  • Using the calendar function to select and read data from MS access tables?

    Hello

    I woke up in the learning of database in no time. I'm using Labview 9 to create a table based on DDMMYY hhmmss format. I can write data to the table in access. The picture will be 24 hours before a new table will be created. However, I find that this concept is not very gd as time goes by, I'll have a lot of paintings for example after 6 months.

    1.I would like to create a calendar (similar to the system clock) in labview, through which the user can click and select, which will then open and retrieve the data. Inorder to do I think I need to create queries and the relationship in MS Access? can any1 advice? Please give as much detail as possible.

    2.i can access data and display in labview. However, I want to display the data and plot in the chart. For instance, coloum b, c and trace on the graph in a proceeding for the analyst.

    3. how to generate a report to an email in a file to document the daily data inserted. I can do it in labview?

    Any help would be much appreciated.  If you have examples of code and don't mind not to share, I would be very grateful.

    Thanks 1million


  • How to select the csv data stored in a BLOB column as if it were an external table?

    Hi all

    (Happy to be back after a while! )

    Currently I am working on a site where users should be able to load the data of csv (comma is the separator) of their client machines (APEX 3.2 application) in the Oracle 11.2.0.4.0 EE database.

    My problem is:

    I can't use an external table (for the first time in my life ) so I'm a little clueless what to do as the csv data is stored by the application of the APEX in a BLOB column, and I'm looking for an elegant way (at least SQL PL/SQL/maximization) to insert the data into the destination table (run validations by a MERGER would be the most effective way to do the job).

    I found a few examples, but I think they are too heavy and there could be a more elegant way in Oracle DB 11.2.

    Simple unit test:

    drop table CBC purge;

    drop table dst serving;

    create table src

    (myblob blob

    );

    create table dst

    (num number

    , varchar2 (6) str

    );

    Insert in src

    Select utl_raw.cast_to_raw (1; AAAAAA ;'|| Chr (10) |

    2; BATH; »

    )

    Double;

    Desired (of course) output based on the data in table SRC:

    SQL > select * DST;

    NUM STR

    ---------- ------

    1 ABDELKRIM

    2 BATH

    Does anybody know a solution for this?

    Any ideas/pointers/links/examples are welcome!

    / * WARNING: I was 'off' for about 3 months, then the Oracle - the part of my brain has become a bit "rusty and I feel it should not be so complicated as the examples I've found sofar ' * /"

    Haha, wonder about regexp is like the blind leading the blind!

    However, it's my mistake: I forgot to put the starting position setting (so 1, 2, 3,... was in fact the starting position, not the nth occurrence. duh!)

    So, it should actually be:

    select x.*
    ,      regexp_substr(x.col1, '[^;]+', 1, 1)
    ,      regexp_substr(x.col1, '[^;]+', 1, 2)
    ,      regexp_substr(x.col1, '[^;]+', 1, 3)
    ,      regexp_substr(x.col1, '[^;]+', 1, 4)
    ,      regexp_substr(x.col1, '[^;]+', 1, 5)
    ,      regexp_substr(x.col1, '[^;]+', 1, 6)
    from  src
    ,      xmltable('/a/b'
                  passing xmltype(''||replace(conv_to_clob(src.myblob), chr(10), '')||'')
                  columns
                    col1 varchar2(100) path '.') x;
    

    Note: that's assuming that all the "columns" passed in the string won't be lame.

    If one of them might be null, then:

    select x.*
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 1)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 2)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 3)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 4)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 5)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 6)
    from   src
    ,      xmltable('/a/b'
                  passing xmltype(replace(';'||replace(conv_to_clob(src.myblob), chr(10), ';')||'', ';;', '; ;'))
                  columns
                    col1 varchar2(100) path '.') x;
    
  • How can I select the first date (at least) and the corresponding date of two different tables source?

    I have 2 tables, INVOICE and INVOICE_REFNUM similar to below. I'm writing a query that withdrawing the first date (less) for a single record remaining the two tables. Each table records the receipt of invoices, but according to the source of the received invoice some may reside in INVOICE_REFNUM and others the INVOICE table. I also use DECODE on the topic of INVOICE_SOURCE, when the date less is taken from the INVOICE table that contains that field, so if the date is in the field INVOICE_REFNUM DECODE is not necessary. Example:

    INVOICE (table)

    INVOICE_GID INVOICE_SOURCE INSERT_DATE

    ABC. AVRT123 I HAVE 11/03/2012-15:49:32

    ABC. CNWY234 G 12/03/2012 14:07:30

    ABC. UPGF678 M 15/03/2012 20:21:54

    INVOICE_REFNUM (table)

    INVOICE_GID INVOICE_REFNUM_QUAL INVOICE_REFNUM_VALUE INSERT_DATE

    ABC. AVRT123 SOURCE ACS 11/03/2012 14:49:32

    ABC. CNWY234 SOURCE CSA 12/03/2012 13:07:30

    ABC. UPGF678 SOURCE ACS 15/03/2012 21:21:54

    My decode statement is: DECODE ("INVOICE_SOURCE, 'I', 'IDE', 'G', ' Auto-Pay", ', 'Manual')

    If I were to write a query on these two tables, the output will resemble the following:

    INVOICE_GID INVOICE_SOURCE INSERT_DATE

    ABC. AVRT123 ACS 11/03/2012 14:49:32

    ABC. CNWY234 ACS 12/03/2012 13:07:30

    ABC. UPGF678 Manual 15/03/2012 20:21:54

    I worked on it for 2 days, and I was able to pull a date by using the following SQL code, but cannot determine how to extract the corresponding source:

    SELECT THE LEAST (GLOGOWNER. INVOICE_REFNUM. INSERT_DATE, GLOGOWNER. THE INVOICE. INSERT_DATE) AS 'DATE OF THE INVOICE.

    GLOGOWNER. THE INVOICE. INVOICE_GID,

    DECODE (GLOGOWNER. THE INVOICE. INVOICE_SOURCE, 'I', 'IDE', 'G', 'Auto-Pay', ', 'Manual').

    GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_VALUE

    OF GLOGOWNER. INVOICE

    LEFT JOIN GLOGOWNER. INVOICE_REFNUM

    ON GLOGOWNER. THE INVOICE. INVOICE_GID = GLOGOWNER. INVOICE_REFNUM. INVOICE_GID

    WHERE GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_VALUE = "ACS."

    AND GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_QUAL_GID = 'SOURCE '.

    AND GLOGOWNER. THE INVOICE. INVOICE_TYPE = 'I '.

    ORDER OF GLOGOWNER. THE INVOICE. INVOICE_GID

    Any help is greatly appreciated!

    Best regards

    -Adam

    Hello

    Is that what you want?

    SELECT i.invoice_gid

    CASE

    WHEN ir.insert_date<= i.insert_date ="" then ="">

    WHEN i.invoice_souce = 'I' and THEN 'EDI '.

    WHEN i.invoice_souce = 'G' THEN 'debit '.

    WHEN i.invoice_souce = am' THEN 'manual '.

    END AS invoice_source

    , The LEAST (i.insert_date, ir.insert_date) AS insert_date

    I have the Bill OF

    JOIN invoice_refnum ON i.invoice_gid = ir.invoice_gid ir

    WHERE ir.invoice_refnum_value = 'ACS '.

    AND ir.invoice_refnum_qual_gid = 'SOURCE '.

    AND i.invoice_type = 'I '.

    ORDER BY i.invoice_gid

    ;

    There is no reason to do an outer join if you only want the lines with specific values anyway.

    What happens if the 2 tables have exactly the same invoice_date?  The query above takes the invoice_source of invoice_refnum in this case, but that can easily be changed.

    Or the other of the insert_dates can be NULL?

    I hope that answers your question.

    Otherwise, thank you post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also after the results you want from these data (otherwise what you have already posted).

    Explain, using specific examples, how you get these results from these data.

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

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • Can I Insert fixed string in table select table data found?

    Hi all
    I have a table
    Create table student (student_name varchar2(10), student_id number(10),day varchar2(10),hours_studied number(10));
     
    insert into student values ('RON',12,'SUN',4);
    insert into student values ('RON',12,'MON',5);
    insert into student values ('RON',12,'TUE',6);
    insert into student values ('ZAP',13,'SUN',3);
    insert into student values ('ZAP',13,'MON',9);
    insert into student values ('ZAP',13,'TUE',10);
    insert into student values ('DEW',14,'SUN',4);
    insert into student values ('DEW',14,'MON',6);
    insert into student values ('DEW',14,'TUE',8);
    insert into student values ('PIKE',15,'SUN',2);
    insert into student values ('PIKE',15,'MON',1);
    insert into student values ('PIKE',15,'TUE',4);
    insert into student values ('TON',16,'SUN',30);
    insert into student values ('TON',16,'MON',2);
    insert into student values ('TON',16,'TUE',24);
    I have one more same table as before, but with an extra column
    Create table student1 (student_name varchar2(10), student_id number(10),day varchar2(10),hours_studied number(10)) month varchar2(10);
    Now, I want to insert data into the table 'student1' using the 'student', which includes the data.
    Insert into student1 values select * from student
    The above insert statement throws me an error "Not enough values" something like that...


    There is no primary key on the table. I last column of the table, "Student" 1 is standard, that is to say.., MAY for all lines.
    Can I write the query like this?
    Insert into student1 values select student_name,student_id,day,hours_studied,'MAY' from student;
    If this is not the case, how can I write the insert statement?

    Please let me know if it's confusing...

    Yes, it works, but need a correction of bit:

    Insertion in Student 1 select student_name, student_id, day, hours_studied, 'USA' of student

    you do not have the keyword "VALUES" in the "insert... Select...' statement."

  • v4.02, in form of table, data are intermittent, when too old error selected sort

    I have a tabular presentation that correctly displays validation errors and highlight values to correct until a column is selected for sorting by the user. Then when changes made, the region of report does not display the line to operate. On the other hand, the region displays this error in a table box that says:

    The current data in a table are too old; the source data has changed.
    Click here to ignore your changes and reload the data from the database.

    I can choose another column for sort or go on another set of results, make changes to the validation fails and do the lines with errors, stressed once again. I have reproduced this issue for consideration.

    [http://apex.oracle.com/pls/otn/f?p=F33935:TEST]

    workspace: vmdbapex
    account user/dev: apextester
    PW: apextester

    I built this tabular form using the wizard page. Initially all columns were selected for display and editing. Using the attributes of the State page, I reorganized the display and off display for some of these columns. Change the date posted to invalid values to get validation errors.

    I don't see any error or the reason for this message is displayed in the debugger. The debugger does not indicate that it is still made this error box. There is another page in this app on the same table where never happens, the message too old. Where can I find or resolve the differences between these two pages?

    Thanks in advance,
    Kelly

    Hello

    It has validation controls - try entering the text in one of the numeric fields.

    However, I get the error you get if a column is sorted:

    Current tabular form data is too old; the source data has been modified.
    Click here to discard your changes and reload the data from the database.
    

    I think this should be listed as a bug

    Andy

  • Select table data in another table

    Hello

    I want to select data from A table, which is not in table B.

    Currently I am doing:

    Select
    smofnut,
    nameA,
    dobA
    a.
    If smofnut not in
    (select A snoB, B).
    where smofnut = snoB
    and nameA = Name)

    But above all it is very slow.

    I can do something like:

    Select
    smofnut,
    nameA,
    dobA
    of A, B
    where
    EXCLUDE (smofnut = snoB and nameA = Name)

    Please note that I need the place where the condition on the two columns.

    any help will be appreciated.

    -Harvey

    What are approximate data to A and B?
    What is 'very slow '?
    What version of Oracle?
    What is the query plan?

    Without knowing anything about your system, my first thought would be to see if a NOT EXISTS happened to be faster for your data

    SELECT snoA,
           nameA,
           dobA
      FROM a
     WHERE NOT EXISTS (
        SELECT 1
          FROM b
         WHERE a.snoA = b.snoB
           AND a.nameA = b.nameB )
    

    Of course, I don't know why you want to join A & B in your NOT IN subquery. It would seem that you would need just a subquery correlated, i.e.

    SELECT snoA,
           nameA,
           dobA
      FROM a
     WHERE snoA NOT IN (
        SELECT snoB
          FROM b
         WHERE a.snoA = b.snoB
           AND a.nameA = b.nameB )
    

    This should be more efficient than the original request. The NOT EXISTS version may or may not be more effective than NOT IN according to data volumes.

    Justin

  • How to select the missing data in the table?

    < p >
    < strong > I have a list of strings as follows (in the table):

    "aaaaa".

    "bath".

    "momo".



    I have a x VARCHAR column in table T1. Here is the data under x

    "aaaaa".

    "momo".



    I would like to make a request as it will bring 'bath' as 'bath' is not in the table. Help, please!



    Thank you.

    < facilities >
    < /p >

    Is it possible to have a sql using only is not a second table?

    You might have fun with the unions:

    SQL> select 'aaaaa' x from dual union all
      2  select 'bbbbb' x from dual union all
      3  select 'ccccc' x from dual
      4  minus
      5  select x from t1;
    
    X
    ----------
    bbbbb
    

Maybe you are looking for

  • NormalCDF 48GII graphing calculator

    Hello I'm trying to use the normal function of the CDF on this calculator to find the area under a curve. I have the average (160), standard deviation (30) and the value of X (100) for my problem. She asked the probability that it is LESS than 100.  

  • HP Deskjet F4235 test page

    Hi all I tried to print a test page using the following procedure contained in the Manual: "Press on and hold the Cancel button and then press the start copy color button. When I do this, absolutely nothing is happening! Am I missing something?

  • I need help with my email account.

    Hi, I tried to remove my e-mail address that allows you to reset your password in case you forgot your secret question / answer, however I can't delete because it says it's 'LOST', what should I do?

  • Network connection diagnostic utility?

    I've heard of the developers Conference that there is a diagnostic utility for network connection available somewhere on the site of the BlackBerry - application developers device BlackBerry that allows you to test communications by using various net

  • limit the instlalation softtware

    Hello I have a server to windows 2008 domain with about 600 client machines with XP and Win 7. I need a general practitioner doctor to prevent users to install software, whether they are in the Local machine administrator group or not. View this ques