find the maximum correlation coefficient

Hello

I am able 2 analog signals simultaneously from the DAQ 9233 module.

Whenever there is a trigger, my DAQ will gather X number of samples from the analog module and a cross on the data correlation analysis.

My question is how can I get the maximum cross correlation coefficient between the two signals (e.g. North is my reference, how many samples should I change my South to get the maximum correlation coefficient)?

My goal for this?

This is so that I can get the time between two samples (e.g.sampling to 50 kHz, if I need to move the sample 300 times, so I know my delay is 300 * 1/50000 = 6ms)

Thank you.

Attached a picture of my waveforms

North = my reference signal

South = my 2nd signal

Low = Corss correlation between two signals

I'm sure that the maximum value of the cross-correlation function is the location the highest correlation coefficient.  Using your own example to verify this.

Search the index of this value.  Subtract the size of the reference (in the X of entry) of the peak value index signal.  The value obtained must be the number of points which is equivalent to one quarter of work.  Divide this value by your sampling frequency (50,000 in your case) and you should have your answer.

Tags: NI Software

Similar Questions

  • How to find the maximum and minimum of a waveform between cursors

    Hello!

    Does anyone know an easy way to find the maximum and minimum of a waveform between two sliders?

    Kind regards

    Andreas

    Hi Andreas,

    attached, you get an example of it in MeasurementStudio.

  • Find the Maximum using the registry to offset

    Hello

    I'm trying to find the maximum value of the input signal and display in the front panel. I managed to achieved this for values that are positive. but when my signal is completely negative it does not update my max.

    I enclose my VI.

    Thanks for your help.

    Dylan

    Here is a quick sketch...

  • Find the maximum numeric value to a String

    Hi all

    I want to find the maximum number of the string using PLSQL. How can I do this simply.

    Example string: "D32X1U7".

    And I want to get maximum numeric value is of this string. (7)

    Thank you

    Something like this:

    SQL >

    SQL > with input_data (select ' D32X1U7' double Str).

    2 split_char AS (select substr (str, level 1) c

    input_data 3

    4. connect by level<=>

    5                     )

    6 select max (c)

    7 of split_char

    8 where the regexp_like (c, ' [[: digit :]]');]])

    MAX (C)

    ------

    7

    SQL >

  • Where can I find the maximum speed and size for a 2000 HP RAM memory

    I looked at the stick of 4GB that comes with it and she has this information on it.

    MT16KTF51264HZ - 1G6M

    4 GB 2RXB PC3L-12800-11-11-7 P

    I would like to know what exact memory to get and how much can be set which is actually useful.  As it is now, it's quite slow.

    Simply duplicate this module you have. At the moment no HP laptop consumer cannot accept any faster than this alias DDR3-1600 PC3-12800 memory.

    Quote of repair:

    Supports up to 8192 GB of RAM.

    Up to 8 GB is the maximum. An SSD would be on the upgrade of the only possible performance. On AMD models, the CPU is soldered to the motherboard, so you can't upgrade that. With the processor AMD E1, I am skeptical even with 8 GB of RAM and an SSD, you have a usable computer, frankly.

  • How can I find the maximum number of recorded sessions ever?

    Hello

    I see the sessions_highwater column in the license of $ v is the maximum number of sessions since the database startup time, but I wonder if there is a view that shows the maximum number of sessions ever recorded? (that is, before the last restart of the database)

    Thank you!

    Jon

    Query dba_high_water_mark_statistics

  • How to find the maximum value in a collection

    Hi all

    I'm using Oracle 11 g 2. I need to know the maximum value in a collection of items.

    When I run the following, I get the maximum number of collection as '5' but I need the max value itself which is 8, please help.


    DECLARE
    type v_number1 is table of number of directory indexes;

    v_number v_number1;

    IDX NUMBER.
    psrc_file VARCHAR2 (10): = '1,2,4,8,6';
    v_src_file_string_array v_number1;
    number of max_temp;

    BEGIN

    SELECT regexp_substr (psrc_file, "[^,] +', 1, level") coll
    LOOSE COLLECTION v_src_file_string_array
    FROM (SELECT psrc_file FROM dual)
    CONNECTION OF LEVEL < = length (regexp_replace (psrc_file, "[^,] +")) + 1;

    -Set up some test values:
    BECAUSE me IN v_src_file_string_array. FIRST... v_src_file_string_array. COUNTING LOOP
    -v_numbers (i): = v_src_file_string_array (i);
    v_number (i): = i;
    END LOOP;

    max_temp: = v_number (v_number.first);
    IDX: = v_number.first;

    -Display the contents of the table:
    While the idx is not null
    loop
    If (idx) v_number > = max_temp
    then
    max_temp: = v_number (idx);
    end if;

    IDX: = v_number.next (idx);
    end loop;

    dbms_output.put_line ('Max: ' | max_temp);
    end;
    /


    Thank you!

    Harinath Arasu says:
    Hi all

    I'm using Oracle 11 g 2. I need to know the maximum value in a collection of items.

    When I run the following, I get the maximum number of collection as '5' but I need the max value itself which is 8, please help.

    DECLARE
    type v_number1 is table of number of directory indexes;

    v_number v_number1;

    IDX NUMBER.
    psrc_file VARCHAR2 (10): = '1,2,4,8,6';
    v_src_file_string_array v_number1;
    number of max_temp;

    BEGIN

    SELECT regexp_substr (psrc_file, "[^,] +', 1, level") coll
    LOOSE COLLECTION v_src_file_string_array
    FROM (SELECT psrc_file FROM dual)
    CONNECT BY LEVEL<= length(regexp_replace(psrc_file,="" '[^,]+'))="" +="">

    -Set up some test values:
    BECAUSE me IN v_src_file_string_array. FIRST... v_src_file_string_array. COUNTING LOOP

    It should be-online 1... v_src_file_string_array. COUNTY

    -v_numbers (i): = v_src_file_string_array (i);
    v_number (i): = i;

    This should be-online v_numbers (i): = v_src_file_string_array (i);

    Can't do you all just...

    DECLARE
         type v_number1 is table of number index by binary_integer;
         v_number v_number1;
         idx NUMBER;
         psrc_file VARCHAR2(10) := '1,2,4,8,6';
         v_src_file_string_array v_number1;
         max_temp number;
    BEGIN
         SELECT regexp_substr(psrc_file, '[^,]+', 1, level) coll
         BULK COLLECT INTO v_src_file_string_array
         FROM (SELECT psrc_file FROM dual)
         CONNECT BY LEVEL <= length(regexp_replace(psrc_file, '[^,]+')) + 1;
    
         FOR i IN 1..v_src_file_string_array.COUNT LOOP
           if max_temp is null or
                    v_src_file_string_array(i) > max_temp then
                max_temp := v_src_file_string_array(i);
              end if;
         END LOOP;
         dbms_output.put_line ('Max: ' || max_temp);
    end;
    

    Or more simply...

    DECLARE
         type v_number1 is table of number index by binary_integer;
         v_number v_number1;
         idx NUMBER;
         psrc_file VARCHAR2(10) := '1,2,4,8,6';
         v_src_file_string_array v_number1;
         max_temp number;
    BEGIN
             SELECT to_number(regexp_substr(psrc_file, '[^,]+', 1, level))
          BULK COLLECT INTO v_src_file_string_array
             FROM (SELECT psrc_file FROM dual)
                  CONNECT BY LEVEL <= length(regexp_replace(psrc_file, '[^,]+')) + 1
             order by 1 desc;
         dbms_output.put_line ('Max: ' || v_src_file_string_array(1));
    end;
    

    Published by: JAC on April 3, 2013 18:56
    Unhandled exception...

  • Where can I find the maximum bit rate for the NI SHC68-C68-RDIO2 cable

    Search on the web site without success - maximum performance measured is an important specification!

    Hello

    in this case, we should look at the whole system. 1082 chassis is large enough for 2 cards. What are the other maps are built into the system?

    The 7021R SMU has in the datasheet of a limit on the transfer rate of data to the SMU Backplane of the chassis, which is 500 MB/s.

    I advise you in this case through the technical sales department. You can reach me by phone or email:[email protected].

    We can discuss the whole of the project.

    Best regards

    Lucia

  • best way to find the maximum value that is less than a specific value?

    Hello guys,.

    What is the fastest way to find a record that has value max of a field and there is a limitation to a specific value for ex:

    example 1:
    create table dummy(master_id number, detail_id number, some_value varchar2(80));
     
    insert into dummy values (1,1,'bla bla1');
    insert into dummy values (1,2,'bla bla2');
    insert into dummy values (1,3,'bla bla3');
    insert into dummy values (2,1,'bla bla4');
    insert into dummy values (2,2,'bla bla5');
    insert into dummy values (2,3,'bla bla6');
    insert into dummy values (2,4,'bla bla7');
    commit;
    I want to get:
    1 3 bla bla3
    2 4 bla bla7
    And these applications give a correct result:
    Select * 
    from   dummy d1
    where  detail_id = (select max(detail_id) from dummy d2 where d2.master_id = d1.master_id);
     
    OR next one which i prefered.
     
    Select *
    From   (Select d1.* , row_number() over(partition by master_id order by detail_id desc) r
            from   dummy d1)
    Where  r = 1;
    If these solutions are enough or is there a better way?

    Edited by: elcaro on 13.Ara.2011 04:02

    Edited by: elcaro on 14.Ara.2011 04:31

    Please try this with your new test tables:

    select m.master_id,
           m.master_data,
           max(d.id) keep (dense_rank last order by data_value, d.id) d_id,
           max(d.master_id)  keep (dense_rank last order by data_value, d.id) d_master_id,
           max(data_value) keep (dense_rank last order by data_value, d.id) d_data_value,
           max(date_data)  keep (dense_rank last order by data_value, d.id) d_date_data
    from master_dummy m, detail_dummy d
    where m.master_id=d.master_id
    and d.date_data <= to_timestamp('04012010','ddmmyyyy')
    group by m.master_id, m.master_data
    

    Published by: hm on 14.12.2011 05:18

    (I added d.id column in the order by the dense_rank. clause that could make a difference when there is more than one line with the same data_value).

  • Find the maximum, minimum value and other parameters of the XY graph


    Hi florent!

    I think that the problem might be that you use a bundle function to merge signals, which creates a cluster which you can't enter the Express VI for sounds. There are a few options that you can use, the first is to use a merger signals VI (im attaching a photo) then get the parameters and their entry into the chart. The other option would be to use low lvl functions that are on the table Palette, called table max. and Min.

    Hope this information helps you, let me know if there is anything else I can do for you.

    Have a great day!

  • How to find the maximum value of the alphanumeric column

    Hello

    I have following data varchar column.

    USR_UDF_ALPHANUMERIC
    --------------------------------
    234123
    CS/123762
    987643
    CS/990087
    999999
    CS/761287

    I'm looking to separate the 2 SQL queries which should get the output as CS/990087 for the first query and * 999999 * for the second query.

    database is 10g.

    As always: it is documented.

    See:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions043.htm#i1064409

    And make a few quick searches yourself:
    http://www.Oracle.com/pls/db102/homepage
    or
    http://www.Oracle.com/pls/db112/homepage

  • To find the local maximum, minimum in algorithm SIFT keypoints

    Hello

    I find the local maximum and minimum in an image, not juice 8 district. There are three images of the same size but unlike differntly blurred images (difference of Gaussians). I need to find the maximum and minimum space in the picture, check out all 26 nearby Hood (8 of the same image 9 + 9 point in the other images).

    any ideas?

    with best regards and thanks in advance

    I assume you mean that you have several layers of an image in 3D and you the maxima and local minima required 3 x 3 x 3.

    The easiest may be to use grayscale expand or erode for the 3 x 3 local maxima and minima for each image.  Then, you can use a few IMAQ compared to replace if less/more, finally ending up with an image that has local maximum or minimum 3D.  With the management of the image a little, it would work well for a pile of images where you need the extreme 3D for each image.

    Bruce

  • How can I find the max memory micro SD that allows my Pavilion

    Sorry,

    He was not a Council for portable hardware (Windows 7). I hope I can post this here.

    I have a Pavilion dv7-6c95dx and I want to get a Micro SD memory cards.

    I can't find the maximum size that accepts the laptop, anywhere, can someone tell me?

    Bill

    Hello oneoleguy,

    You want to know what size of SD card, you can use on the computer.

    I looked at your user manual and it says nothing about the size, only to a SD DO NOT a SDHC.

    The largest SD card you can find will work.

    Here is a link to the user guide were I found the information.

    Formats of Digital Media Slot supports the following digital maps:

    ● Multi Media Card

    ● Secure Digital (SD) memory card

    I would like to know how everything goes.

    Nice day.

  • How to find the date of a table Max

    Hello world

    I have two tables in the database. I want to find the maximum routine for a case_id of the lock_date date between jan 20 to January 29, 2012.

    But I don't get real output (output routine_date should be 'January 28, 2012' but I m getting "January 31, 2012" ")

    Can someone help me where I made the mistake


    Master
    case_id lock_date
    101 23 January 2012
    101 January 24, 2012
    102 27 January 2012
    102 January 29, 2012
    101 30 January 2012
    101 January 29, 2012

    Routine (for current work)
    case_id routine_date
    101 23 January 2012
    103 28 January 2012
    102 21 January 2012
    102 January 29, 2012
    101 21 January 2012
    101 28 January 2012
    101 31 January 2012


    Select m.case_id, r.routine_date from master m, systematic r,
    (case_id, max (routine_date) of the systematic group by selecting case_id) rr

    where m.case_id = r.case_id
    and m.case_id = rr.case_id
    and r.routine_date = rr.routine_date

    Hello

    Here are average dradles:

    WITH     universe  AS
    (
         SELECT    m.case_id
         ,        r.routine_date
         ,       MAX (r.routine_date)     OVER (PARTITION BY  m.case_id)
                         AS max_routine_date
         FROM       master       m
         ,        routine       r
         WHERE        m.case_id       = r.case_id
         AND       m.lock_date       >= TO_DATE ('20-Jan-2012', 'DD-Mon-YYYY')
         AND       m.lock_date       <  TO_DATE ('30-Jan-2012', 'DD-Mon-YYYY')
    )
    SELECT       case_id
    ,       routine_date
    FROM       universe
    WHERE       routine_date     = max_routine_date
    ;
    

    You only want to view rowss whose routine_date is the maximum date in a subset. First get this subset
    If the universe of data that you are interested in is just the period from January 20 to January 29, then you can start by getting all the data in this range. This is what the above subquery universe.
    Now, you want to see only the rows where routine_date is the max_routine_date within this universe, for each case_id. You can use the analytic MAX function to find out what this max_routine_date.
    Published by: Frank Kulash, March 2, 2013 11:59

  • find the max and downs of resource_limit

    Hello

    Version: 10.2.0.1 and 11.2.0.1
    OS: Aix 6

    I want to find the maximum number of sessions (high water) in a given period and the lowest level in a given time, and also for the process.

    The low use of the tablespace temp/Cancel in a given period of time? and also more strong use a time given?


    There is an opinion?
    Any suggestions

    Thank you.

    (1) for the sessions and processes, if you have the license for AWR views

    ), SELECT begin_interval_time, end_interval_time,.
    resource_name, current_utilization,
    max_utilization
    Dba_hist_resource_limit a, dba_hist_snapshot b
    WHERE a.snap_id = b.snap_id AND resource_name (the 'sessions' PROCESS),
    ORDER BY begin_interval_time;

    (2) for the use of the cancellation/temp
    You can check DBA_HIST_TBSPC_SPACE_USAGE

Maybe you are looking for

  • Tecra R840 - which partitions can I delete?

    Hello I installed a Plextor M5P 512 GB ssd in my Tecra R840-16J! I'm very happy with it :-)Restore laptop to factory state using the recovery DVDs I created before! Now, I have 2 copies and a 16 GB USBFlash with an extra copy! So I can restore to fac

  • How to reset the Vista

    Hello! First of all, sorry for my bad English, I m not the United Kingdom.I have a problem, I have a lot of garbage on my Toshiba PC, so I would like to reset. I have a Reset-CD-ROM, but how do I go?Need help! Thanks for the replies!Welcome them

  • Beats studio guard disconnecting wireless

    I got beats studio 2.0 Wireless for Christmas and so, once I listen to music on my iPhone 6 with Bluetooth on and when I want to change a song, he sudden diconnects every time. He just also can't get on the application of music, even when I watch vid

  • NI-CAN 2.6.3: MAX UI Language

    I installed NI-CAN 2.6.3 (MAX 4.6.0f1) on Japanese Windows XP (SP3), for use with my NI USB-8473/8472 modules.  I have no control over the language of the OS, but I absolutely have to get interface user of MAX to display in English, not Japanese.  Wh

  • How to remove my Mini HARD drive?

    Hello I recently bought Mini 110 N570 from HP (Dual Core, 1 GB of Ram) and it came with the Genuine Windows 7 starter... How to replace my Mini HARD drive. I have opened my first Mini by removing the battery, then I slipped the orange button and take