Extract part of channels based on the positions

Hello

My requirement is simple. I get the data from the source below file.

My data looks like this. Sometimes, I have a space, a tab space, space two tab. It is ambiguous.

FIRSTWORD SECONDWORD THIRDWORD QUATRIÈME (o/p = FIRSTWORD SECONDWORD THIRDWORD)
FIRSTWORD SECONDWORD THIRD WORD (o/p = FIRSTWORD SECONDWORD THIRD)


If it's something thing fixed, I can write using SUBSTR and INSTR and it worked. But how we deal with several cases at the same time.

Thanks in advance
KVB

Maybe something like this...

SQL> ed
Wrote file afiedt.buf

  1  with t as (select 'FIRSTWORD SECONDWORD  THIRDWORD FOURTHWORD' as txt from dual union all
  2             select 'FIRSTWORD       SECONDWORD THIRDWORD       FOURTHWORD' from dual)
  3  --
  4  -- end of data containing single or multiple spaces and/or tabs
  5  --
  6  select regexp_substr(txt, '[^ ]+', 1, 1) as first
  7        ,regexp_substr(txt, '[^ ]+', 1, 2) as second
  8        ,regexp_substr(txt, '[^ ]+', 1, 3) as third
  9        ,regexp_substr(txt, '[^ ]+', 1, 4) as fourth
 10* from (select regexp_replace(txt,'[[:space:]+]',' ') as txt from t)
SQL> /

FIRST           SECOND          THIRD           FOURTH
--------------- --------------- --------------- ---------------
FIRSTWORD       SECONDWORD      THIRDWORD       FOURTHWORD
FIRSTWORD       SECONDWORD      THIRDWORD       FOURTHWORD

Tags: Database

Similar Questions

  • create a spectrum of the order from scratch (i.e. get a fft-based on the position of the same time deductions in the sample data)

    Hello people,

    THAT THE QUESTION PERTAINS TO:

    I play on 2 parameters of a system based on the sampling time: Rotary position and vibration (accelerometer g increments).  I want to take a fft based on the post to create a spectrum of the amplitude-phase speed order in / s.  To do this, perform the following:

    1 integrate (and scale) g vibration signal in the / s (SVT Integration.vi)

    2 signal sampled vibration resample the same time at an angle similarly charged signal (ma-resample unevenly sampled input (linear interpolation) .vi)

    THE QUESTION:

    Order in which operations should be carried out, integrate then resample or vice versa?  I didn't order would be important, but using the same set of data, the results are radically different.

    OR ORDER ANALYSIS 2.0 TOOLSET:

    I have the NO order Analysis Toolset 2.0, but I could not find a way to get the speed profile generation live to work with signals of position encoder DAQmx (via pxi-6602) quadrature.  In addition, it seems that I have to specify all the commands I'm interested to watch, which I don't really know at this point (I want to see all available commands) so I decided to do my own fft based on the post to get a spectrum of the order.

    Any help is greatly appreciated.

    Chris

    The order is to integrate the time domain of first - creating a speed channel.  You now have a new channel of data.  In general I would put this in the same table of waveform with waves of acceleration time.

    Then re - sample your acceleration and/or your speed signals, and then you can calculate the spectrum of the order.

  • Selection of DAQ PCI cards - pulse based on the position of the AO

    I build a replacement computer for an aging instrument control system, and I'm trying spec a PCI card to use.  My line of sight is on the M6229, but I'm a little confused as to if she's going to do what I want.  We will use LabView 8.6 for the software, and RT module is not an option.

    The question has been posted here in various forms, but I think that this iteration could be a little original:

    The requirements of the program are:

    -Two analog outputs are used to generate a raster 2D model, while the internal counter counts the pulses of preamp at each stage of the grid.

    -The dwell for each point must be controllable by the user (ideally as low as 0.01 ms), and the count rate can go up to 5Mcps.

    -The number of points x / y in the raster model is controllable by the user, a will have a maximum of 400 x 400 (160000).

    At the moment I'm simulating a 6229 in MAX and written a model of Sawtooth on channel X and a linear ramp on the channel of Y.  The sampling frequency / can be deducted immediately requested size of dwell and pixel of the user.  I generate the set of values of xy 2D matrix and write to data acquisition.  I use voluntarily no more points that are necessary, because this application prefers one out an alias on the AO conducted, channels to maintain a separate position for each pixel in the detector.  Thus, for example, for a 100 x 100 pixel image with 1ms live per pixel, the quick scan signal is essentially a 100 Hz sawtooth, sampled 100 times at a sampling rate of 10 kHz.

    However, the frequency of sampling for the pulse counter must be very high to follow with the input of the preamplifier signal.  I think that I can't have separate sampling frequencies for two separate tasks, so I'm left with a choice between creating an XY array unnecessarily large to match the sample for the pulse counter clock, or ask your question here

    Does anyone have any advice? In the end, I want to make sure we buy the best equipment for the job, but as always, we are also interested in the best bang for the buck.  Is a map of the M series not up to this task?


  • How to read multiple channels based on the external clock

    Hello

    Normal 0 false false false MicrosoftInternetExplorer4 / * Style Definitions * / table. MsoNormalTable {mso-style-name: "Table Normal" "; mso-knew-rowband-size: 0; mso-knew-colband-size: 0; mso-style - noshow:yes; mso-style-parent:" ";" mso-padding-alt: 0 to 5.4pt 0 to 5.4pt; mso-para-margin: 0; mso-para-margin-bottom: .0001pt; mso-pagination: widow-orphan; do-size: 10.0pt; do-family: "Times New Roman"; mso-ansi-language: #0400; mso-fareast-language: #0400; mso-bidi-language: #0400 ;} "}

    I use 6254 multifunction for playback of tension with VC ++ 6 as the development tool.

    Based on the documentation NOR I created tasks like this.

    DAQmxCreateTask (_T ("Voltagetask"), & taskHandle);

    DAQmxCreateAIVoltageChan(taskHandle,sChannels,,DAQmx_Val_NRSE,0,10,DAQmx_Val_Volts,);

    DAQmxCfgDigEdgeStartTrig (taskHandle, "PFI2", DAQmx_Val_Rising);

    DAQmxCfgSampClkTiming(taskHandle,"PFI2",303000,DAQmx_Val_Falling,DAQmx_Val_FiniteSamps,nSamples);

    DAQmxStartTask (taskHandle);

    After the generation of clock finished thanks to the DAQmxReadAnalogF64 function, I tried to read samples of each channel.

    DAQmxReadAnalogF64 (taskHandle, DAQmx_Val_Auto, 10, DAQmx_Val_GroupByScanNumber, read, m_nStates & sampsPerChanRead, NULL);

    Total number of samples (nSamples) available in the buffer when the task is created with a single channel and several channels are still to come as even. In several modes of channel returns total sample by channel, which is equal to the total number of samples divided by the number of channels at once.

    For example, if a total number of clock 8000

    With single channel, it reads all the 8000 samples (m_nStates = 8000, sampsPerChanRead = 8000)

    When two tracks he read 4000 samples per channel and so on. (m_nStates = 8000, sampsPerChanRead = 4000)

    If any body know, on every clock how to take samples of all of the configured channels.

    Thanks in advance,

    Renjith.

    Renjith,

    Please note that the behavior, I explained is in line with the provisions should only if you use your clock as I convert clock. You can find information about the different types of synchronization of the analog inputs using NOR-DAQmx; the element to search for is "clocks".

    Since you do not set the clock to convert MY (should be DAQmxSetAIConvSrc()), the fact that I mentioned above is only informative for you, but does not apply to your question.  Sorry for responding too quickly without looking in your code between quotes...

    In order to answer your question, we take a look at the approach to programming DAQmx:

    If you configure your task to be "finished", the task will stop running if the number of samples per channel is acquired. In the case of an external clock (not configured as I convert clock), served it in the sampling interval. The sample clock will automatically receive a sample for all channels with a single clock pulse. From this point of view, the installation program you have in your program seems correct.

    If you do not get the number of samples that await, the fault must be somewhere in your playback function. Do you get any error messages?

    DAQmxReadAnalogF64 (taskHandle, DAQmx_Val_Auto, 10, DAQmx_Val_GroupByScanNumber, read, m_nStates & sampsPerChanRead, NULL)

    If you set m_nStates set to 8000, it's here. You say the Read function to retrieve 8000 samples. None. So if you have two channels, DAQmx acquires 2 x 8000 samples, but read you only 8000 samples... Please change m_nStates to

    m_nStates = #channels x #samples by channel

    This should solve your problem.

    hope this helps,

    Norbert

  • exclude data based on the position

    Hi all

    I use oracle 10g.

    We have a requirement where I need to exclude the data based on the 1st character of a column value.

    A table has a column that contains the varchar value.
    The condition is to exclude all rows where the column begins with an alphabet.

    Example;
     customer table:
    cust_id    cust_name   cust_age
    A123          JOHN            28
    1234         NASH            43
    B345         DEAN            32
    4325         SHAUN          21
    Now I want to select only rows with cust_id = 1234 and 4325 as these 2 is not first character as alphabet.
    There are thousands of row in the table.

    One way is to write all the alphabets as:
      SELECT *
        FROM CUSTOMERS
       WHERE SUBSTR(CUST_ID,1,1) NOT IN ('A','B','C','D',..............'Z');
    But I'm sure there is a better way to do maybe a function that can list all the alphabet or something.

    Kindly tell me how to get this result.

    Kind regards
    Shane
    SELECT *
    FROM CUSTOMERS
    WHERE NOT regexp_like(cust_id, '^[A-Z]');
    

    Published by: thomas.kellerer on August 11, 2009 02:08

  • How to highlight the menu item based on the position of the scrolling page?

    Hello

    I am interested by learned how to achieve the effect in the upper left corner of this Web page:

    http://trashpixels.co/#one

    When you click on any of the six gray menu icons (grey rectangles), you scrolled down to the deep page and arrive at the location one or two or four or what you clicked on... it's easy. But how do I get the menu item (a rectangle) to be highlighted (change to green) to indicate the current position on the web page?

    Any suggestion would be appreciated

    Thank you

    Bradley

    Hi Bradley

    You can use the anchor links for menu items that would be would be the active state once that section of the specific page of scrolling.

    This video explains the process:

    https://www.YouTube.com/watch?v=qNsI6DHz5Co

    Thank you

    Sanjit

  • Map of representation based on the position

    We could have mapping related to the post an article/collection has a collection? It would be nice to automatically apply a special card to the article/collection at the top of a collection.

    This screenshot, the collection '' 5 November 2015"must have one different card the other collections, because he's number 1 inside the collection.

    This could be done?

    Skjermbilde.PNG

    It's one of the improvements that we have on our list of ideas for card and put in page. We agree, it would be very handy!

    Neil

  • query SQL related beaking the string based on the position of the string

    Hello

    I've got coloumn in this way

    city_state
    ----------------
    Texas tx
    sanantanio tx
    New York ny
    nj newjersy
    NewYork
    newjersy
    Landon 1000

    I want to get the last characters after the string space (for example: texas tx) tx only, which means that I want only to break the chains that have space in 3rd place during the counting of the chain from the rear. other records that do not match as above indicated should decoded as "unknown".
    (for example 'landon 1000' decode as unknown or "New York" decodes Unknown)

    can someone please help with this query.

    Thank you
    RAM

    Hi, Ram,

    You can use SUBSTR to get the antepenultimate character (in other words, the 3rd from the end: I don't get to use that Word every day) and the last 2 characters.
    If the 2nd argument SUBSTR is a negative number, this means the end count.
    For example:

    SELECT  city_state
    ,       CASE
               WHEN  SUBSTR (city_state, -3, 1) = ' '
               THEN  SUBSTR (city_state, -2)
               ELSE  'Unknown'
            END     AS state
    FROM    table_x
    ;
    
  • Identify the position of parents

    Hello

    Is it possible to write a report based on the position of parents current item to ESD. For example, I want to apply a different on my element standard if its parent is the first in its own parent.

    Thank you

    Use

    parent {first}

    -Michael

    PS: 'parent' are replaced with the name of the parent _your_ element.

  • Compare the part of string with a string regardless of the position

    Hello team,

    I'm trying to compare a part of the A string to another string B, regardless of the position of the substring has b;

    for example B = 'g hitpp ert' B = ' erfg gret hitpp'

    If I try substr (A, 1, 7) = substr (B, 1, 7), it will be false

    However, I would check that, if the characters first seven 7 a [substr (A, 1, 7)] are found in the B channels any position, they are.

    Hello

    2986888 wrote:

    Hello team,

    I'm trying to compare a part of the A string to another string B, regardless of the position of the substring has b;

    for example B = 'g hitpp ert' B = 'erfg hitpp gret.

    If I try substr (A, 1, 7) = substr (B, 1, 7) going to be false

    However, I would check that, if the characters first seven 7 a [substr (A, 1, 7)] are found in the B channels any position, they are.

    One way to do that is

    ...

    WHERE b LIKE "%" | SUBSTR (a, 1, 7). '%'

    What you can do with AS you can also do this with REGEXP_LIKE, but in this case it will not significantly (as appropriate) more simple, and it will be less effective.

  • Extract all nodes and filter them based on the WHERE clause

    <?xml version="1.0" encoding="UTF-8"?>
    <report_repository_summary>
       <sql sql_id="gyn915ynqjspa" sql_exec_start="08/19/2015 22:23:02" sql_exec_id="16777217">
          <status>DONE</status>
          <sql_text>BEGIN DBMS_STATS.GATHER_FIXED_OBJECTS_STATS; END;</sql_text>
          <first_refresh_time>08/19/2015 22:23:10</first_refresh_time>
          <last_refresh_time>08/19/2015 22:24:52</last_refresh_time>
          <refresh_count>54</refresh_count>
          <inst_id>1</inst_id>
          <session_id>26</session_id>
          <session_serial>20363</session_serial>
          <user_id>0</user_id>
          <user>SYS</user>
          <con_id>3</con_id>
          <con_name>PDB01_1</con_name>
          <module>sqlplus@lab (TNS V1-V3)</module>
          <service>1_1.up.com</service>
          <program>sqlplus@lab (TNS V1-V3)</program>
          <plan_hash>0</plan_hash>
          <is_cross_instance>N</is_cross_instance>
          <stats type="monitor">
             <stat name="duration">110</stat>
             <stat name="elapsed_time">109822091</stat>
             <stat name="cpu_time">78295097</stat>
             <stat name="user_io_wait_time">1388002</stat>
             <stat name="application_wait_time">1228</stat>
             <stat name="concurrency_wait_time">9175702</stat>
             <stat name="cluster_wait_time">41691</stat>
             <stat name="plsql_exec_time">39369731</stat>
             <stat name="other_wait_time">20920371</stat>
             <stat name="buffer_gets">616087</stat>
             <stat name="read_reqs">837</stat>
             <stat name="read_bytes">22998016</stat>
          </stats>
       </sql>
    </report_repository_summary>
    
    
    

    With above document XML stored as varchar2 (4000) in 12.1.0.2.0, how can I retrieve and display the relevant information(sql_id,session_id,plan_hash,duration,read_bytes) based on the place where condition to filter on any node. For example.

    select * from (
    SELECT EXTRACT (xmltype.createxml (a.report_summary), '//stats/stat[2]/text()').getstringval () AS elap_time from dba_hist_reports a WHERE component_name = 'sqlmonitor'
    )
    where elap_time > 100000000
    /
    
    
    

    Here, I try to get sql_id, sql_exec_id, duration and other information stored in the xml document by applying the where on elapsed_time condition. But to do this, I must write the part EXTRACT for all nodes in the inline view which seems like very bad way of writing of XML query. Is there an easy way to get all the information of nodes so that I can freely apply node whatever, I want in the WHERE condition to filter the records? No better way to write the code then the code below?

    select     REPORT_ID,
               EXTRACT (xmltype(a.report_summary), '//sql/@sql_id')                                    "sql_id",
               EXTRACT (xmltype(a.report_summary), '//sql/@sql_exec_id')                               "sql_exec_id",
               EXTRACT (xmltype(a.report_summary), '//sql/@sql_id')                                    "sql_exec_start",
               EXTRACT (xmltype(a.report_summary), '//status/text()')                                  "status",
               EXTRACT (xmltype(a.report_summary), '//sql_text/text()')                                "sql_text",
               EXTRACT (xmltype(a.report_summary), '//first_refresh_time/text()')              "first_refresh_time",
               EXTRACT (xmltype(a.report_summary), '//last_refresh_time/text()')               "last_refresh_time",
               EXTRACT (xmltype(a.report_summary), '//refresh_count/text()')                   "refresh_count",
               EXTRACT (xmltype(a.report_summary), '//inst_id/text()')                                         "inst_id",
               EXTRACT (xmltype(a.report_summary), '//session_id/text()')                              "session_id",
               EXTRACT (xmltype(a.report_summary), '//session_serial/text()')                  "session_serial",
               EXTRACT (xmltype(a.report_summary), '//user_id/text()')                                         "user_id",
               EXTRACT (xmltype(a.report_summary), '//user/text()')                                    "user",
               EXTRACT (xmltype(a.report_summary), '//con_id/text()')                                  "con_id",
               EXTRACT (xmltype(a.report_summary), '//con_name/text()')                                "con_name",
               EXTRACT (xmltype(a.report_summary), '//module/text()')                                  "module",
               EXTRACT (xmltype(a.report_summary), '//service/text()')                                         "service",
               EXTRACT (xmltype(a.report_summary), '//program/text()')                                         "program",
               EXTRACT (xmltype(a.report_summary), '//plan_hash/text()')                               "plan_hash",
               EXTRACT (xmltype(a.report_summary), '//is_cross_instance/text()')               "is_cross_instance",
               EXTRACT (xmltype(a.report_summary), '//stat[1]/text()')                                 "duration",
               EXTRACT (xmltype(a.report_summary), '//stat[2]/text()')                                 "elapsed_time",
               EXTRACT (xmltype(a.report_summary), '//stat[3]/text()')                                 "cpu_time",
               EXTRACT (xmltype(a.report_summary), '//stat[4]/text()')                                 "user_io_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[5]/text()')                                 "application_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[6]/text()')                                 "concurrency_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[7]/text()')                                 "cluster_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[8]/text()')                                 "plsql_exec_time",
               EXTRACT (xmltype(a.report_summary), '//stat[9]/text()')                                 "other_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[10]/text()')                                        "buffer_gets",
               EXTRACT (xmltype(a.report_summary), '//stat[11]/text()')                                        "read_reqs",
               EXTRACT (xmltype(a.report_summary), '//stat[12]/text()')                                        "read_bytes"
    from       DBA_HIST_REPORTS a
    

    Don't know why, but it pays just 1 or 0. Even in your case his statement just 0 or 1 for all X 2 columns table.

    I guess I do something wrong in declaring XPATH for X 2 table but not able to find what it is.

    It makes account 0 or 1 because path expressions are bad.

    "For example: ' @name ="duration"

    This is a Boolean expression, not a step of XPath and so gets evaluated as such, which gives 0/1 for false/true values.

    What you need, it is something like this:

    SELECT x1.*
    FROM dba_hist_reports t
       , xmltable('/report_repository_summary/sql'
           PASSING xmlparse(document t.report_summary)
           COLUMNS
             sql_id              varchar2(15) path '@sql_id'
           , sql_exec_start      varchar2(30) path '@sql_exec_start'
           , sql_exec_id         number       path '@sql_exec_id'
           , status              varchar2(10) path 'status'
           , stats_duration      number       path 'stats/stat[@name="duration"]'
           , stats_elapsed_time  number       path 'stats/stat[@name="elapsed_time"]'
           , stats_cpu_time      number       path 'stats/stat[@name="cpu_time"]'
         ) x1
    where sql_id = 'c1tb2666n5rfx'
    and sql_exec_id = 16777668
    
  • Sorting of images based on their position on the page

    How would I go about sorting the images based on their position on the page? I've read a few articles which mention the use of table method fate and checking their x and y values to sort the table. While that works on the page elements that are perfectly aligned with their x and is the axis, it fails on a layout like this. Does anyone have any ideas on how I could create an individual table for line1, line2, Row3 etc based on his position there and then sort them based on their position X and then create the master table combining them in order?

    I'm new to javascript, so it's a bit out of my League. Any help will be much appreciated.

    rows.jpg

    Hi again,

    I found an idea that seems promising to deal with the issues mentioned above. The main problem, as you have no doubt noticed, is that we cannot simply count about to coordinates (x, y) 'as they are', even after having rounded values, to extract implied rows and columns.

    When we look at the layout below:

    our eyes instantly detect what he expected to be 3 columns and 5 rows, but this underlying order is not immediately accessible from all sort all of the coordinates. We need to improve the algorithm.

    What I propose is to speculate about the gaps that occur on the ordered sequence of coordinates x and y, respectively. To reveal these gaps, we will first sort the data along the x-axis:

    The figure above shows that the width of the rectangles. Each arrow represents a rectangle, and I ordered the elements by increasing x-centers. We can estimate that the element identified #1 belongs to a new group of this simple fact: its left coordinate (red mark) is higher than the coordinated right (blue guide) of the #0element. This observation will give us a strategy to identify gaps in the column.

    Then, the same method is applied to detect the lines. (Sort by values y, identify gaps, based on the progress of the min - max).

    At the end of this process, each object has a (column, row) coordinate pair instead of fragmented values (x, y) . So, we can calculate the final order, i.e. the weight of the comparison function.

    Here is my implementation of this algorithm:

    // ========================================================
    // Up2Bottom and Left2Right Sorting Algorithm
    //   addressing (weakly) sparse rectangles
    // ---
    // Usage:  Select the objects, then run the script
    // Target: InDesign CS4/CS5/CS6/CC
    // ========================================================
    
    const CS = +CoordinateSpaces.SPREAD_COORDINATES,
          AP_MIN = +AnchorPoint.TOP_LEFT_ANCHOR,
          AP_CENTER = +AnchorPoint.CENTER_ANCHOR,
          AP_MAX = +AnchorPoint.BOTTOM_RIGHT_ANCHOR;
    
    var sel = app.properties.selection || null,
        data = [],
        r, i, j, k, t, n, w, vMax;
    
    if( sel && 1 < (n=sel.length) )
        {
        // Collect coordinates and IDs
        // --> {min:[xLeft, yTop], weight:[x,y], max:[xRight,yBottom], id}[]
        for(i=0 ; i < n && (t=sel[i]) ; ++i )
            {
            data[i] = {
                min:    t.resolve(AP_MIN,CS)[0],
                weight: t.resolve(AP_CENTER,CS)[0],
                max:    t.resolve(AP_MAX,CS)[0],
                id:      t.id
                };
            }
    
        // Find rows and columns [i.e. y-weights and x-weights]
        // ---
        for( j=0 ; j < 2 ; ++j )
            {
            // Sort by center coordinate
            // ---
            data.sort(function(a,b){return a.weight[j] - b.weight[j]});
    
            // min > max ==> w++
            // ---
            for(vMax=(t=data[0]).max[j], t.weight[j]=(w=0), i=1 ; (i < n)&&(t=data[i]) ; ++i )
                {
                if( t.min[j] > vMax ){ ++w; vMax=t.max[j]; }
                t.weight[j] = w;
                }
            }
    
        // Compute final weights, clean up data, create ID-to-weight access
        // ---
        for( i=0 ; (i < n)&&(t=data[i]) ; ++i )
            {
            w = n*t.weight[1] + t.weight[0];  // final weight (y first)
            k = '_'+t.id;                     // ID key
    
            (t.min.length=0)||(t.weight.length=0)||(t.max.length=0);
            delete t.min; delete t.weight; delete t.max; delete t.id;
            delete data[i];
    
            data[k] = w;                      // ID-to-weight
            }
    
        // Apply sort --> r
        // ---
        r = sel.sort(function(a,b){return data['_'+a.id]-data['_'+b.id];});
    
        // Show the resulting order
        // ---
        for( i=0 ; i < n ; ++i )
            {
            app.select(r[i]);
            $.sleep(1000);
            }
        }
    

    @+

    Marc

  • Set the position of the cursor in the text added (to make the part of the text in index) in WORD using Report Generation Toolkit

    I would like to generate a report in WORD using the report generation toolkit.

    Whenever a text is added to the report, the program should put part of the text index. The problem I am facing with is to set the cursor position in the current location of the text.

    Any suggestions?

    Hello!
    I think that's what you wanted (see attachment).

    First, you must set position for each loop, so after adding the table, your cursor index need to increase the number of added characters. That's why I have included the text of the report, Append - to get the position of the cursor at the end.

    Indexing begins with 0, so you need to set the 3 and 7.

    Hope you get what I mean

  • Determine the position of a part of the signal on a graph

    Hi all

    I have a problem. I determine the position of a part of the signal on a chart. So, I have to determine the maximum value of the part (this is not a problem).

    Signal a lot of noise. I did some filtration but still signal have noise. Concerning this, filter change signal, two later when I take one measure, there is a possibility that this is not true.

    Anyone has idea how to determine the position of a part of a signal automatically, for the various signals (similar).

    There are photos attached where is what belongs to an interest in a signal. There is a VI where is an a test signal.

    Thank you

    Hello

    From the screenshot, I understand that you only interested in the local maximum of the signal.

    There is a VI that detects peaks when you specify a certaing point and this point maximum width.

    Later, it's just a matter of setting the value of local maximum of you. Basically, you'll have to point once again got 1 d table than VI.

    I enclose a VI that can be a good starting point for your application.

    Best regards

    Ion R.

  • FPGA acquires only the positive part of the signal

    Hi all

    I have the NI USB-7855R and using the personality of DAQ balanced example of e/s (http://www.ni.com/example/5961/en/). I plugged my generator Agilent to AI0 (in mode CSR) and I have the following problems:

    (1) waveform graph in LabVIEW is only to show the positive part of the sine wave that I am providing to the Board of Directors (clipping at 0 V). Only by compensating the signal from the signal generator, I am able to get the two cycles.

    (2) while I am out 5 Vpp on the generator of signals on the graph of a waveform in LabVIEW I see only 1.5 mVp.

    Any suggestions on what could be the problem?

    Thanks in advance or your help!

    The first graph of "analog input" in your link shows the analog inputs are converted to unsigned integers (U32) before their passage in the FPGA-> host FIFO. Negative values will obviously be lost make this conversion.

Maybe you are looking for

  • Shares in foreign CODECs?

    A few times that I shot the film that I wanted to share a DVD with a person, knowing that they would be trying to view the DVD in another country.  More recently, I shot a recital for a family that hosted a foreign exchange student.  Everyone was mus

  • Problem reloading Windows Vista Home Premium

    I'm trying to reload Windows Vista Home Premium on my Dell laptop (32 bit).  When I try to install I get the message that says "computer lacks of enough space for temporary files - at least 405 MB is required on any partition" error Code 0x80004005. 

  • States of control with fill

    Hello all, first post here, What I have is a VI that measures pressure continuously from a cDAQ 9237 and folders in a file.  What I need is to do is to react on this feedback to open/close data 4 solenoids both needed a cDAQ 9481 for this project, I

  • Conversion table of varying Dynamics

    I tried to convert a number of 2D, dynamically assigned tables to VARIANTS in order to generate a plot of parametric Surface 3D ActiveX.   Unfortunately, the CA_VariantSet2DArray function has problems with this.  If I understand the question, a trans

  • Repositioning of the authorized system DLL: the user32.dll system DLL has been moved in memory.

    ERROR MESSAGE Repositioning of the authorized system DLL: the user32.dll system DLL has been moved in memory. The application will not work correctly. The move took place as C:\WINDOWS\system32\SHELL32.dll DLL occupied an area of address reserved for