Waveform peak detection ...Please have a look

Hi folks,
           I am trying to acquire 2 signals and then detect the peaks of each of them and divide the peaks and display it in a waveform chart.But my Peak detection doesnt work at all...I tried plugging in values from 3 to 10000 but it just doesnt work...Please have a look at my VI and feel free to point out any errors in my VI..
Thanks
Attachments:
slope 2 channels3.vi ‏51 KB

Hi,
Had a look at ur VI
tell me, do u need a single peak for every iteration or a series of peaks above a certain threshold?
If it is a single peak for each acquired waveform , then extract y array from the waveform cluster( you have already done it in ur VI) and connect it  to 'find array min max' function found in array functions palette and u get the single peak for each waveform.
If it is a series of peaks u are interested in, then compare all these values inside a for loop.
Index each element inside a 'for' loop, check it for threshold using a conditional case structure and put it inside a shift register.
regards
Dev

Similar Messages

  • Does anyone know why the waveform peak detect function provides accurately the position of the peaks but not the value?

    Does anyone know why the waveform peak detect function provides accurately the position of the peaks but not the value?
    I have been looking at my data at the position indicated by the function as a peak, and it is correct at that place the wave has its peak, but the value provided by the function is higher than the actual value at that point.
    Attachments:
    Test.jpg ‏53 KB

    The help makes it clear that the VI will make a quadratic fit to the data, so the locations are not integers (i.e. not aligned with you exact data). From that analysis, the peak is between two of your points, and slightly above the neighboring data.
    See the coercion dot. Make the "locations" array DBL (Why did you change it to I64, that makes no sense at all!)
    Quote from the help:
    "Locations contains the index locations of all peaks or valleys detected in the current block of data. Because the peak detection algorithm uses a quadratic fit to find the peaks, it actually interpolates between the data points. Therefore, the indexes are not integers. In other words, the peaks found are not necessarily actual points in the input data but may be at fractions of an index and at amplitudes not found in the input array."
    All clear?
    LabVIEW Champion . Do more with less code and in less time .

  • 6i can't find waveform peak detection vi. Load error code 20

    6i can't find waveform peak detection vi. Load error code 20

    The waveform peak detection VI is found only in the Full and Professional development systems. Do you have the base package?

  • Material staging in WM - Jurgen please have a look at this

    Dear Jurgen,
    I'd kindly like to ask you to please have a look at this issue.
    Re: Requesting urgent reply
    Thanks in advance,
    Csaba
    (sorry for sending message this way...)

    I answered in the other thread.

  • Can a moderator please have a look into my connect...

    Hi Mods,
    Over a few weeks now my connection has seem to of deteriorated quite badly now to a point everything runs terrible. I have tried to do a pin reset on my HH5, no joy also I have reset my Openreach box no joy there, I have also connected straight to my HH5 without the Openreach box connected and nothing changes, I keep the openreach box connected because the HH5 seems to reboot and this makes my connection worse but it reset about a few days ago with the Openreach box connected and now it is really bad also no difference also connected straight to the HH5. My Download has plumeted from a steady 24.2MB down to now 18.8MB and my Upload has gone from 1.91MB down, now to an awful 0.67MB, surely something is really wrong with the connection and needs looking into also my Pings are just awful as well, its hitting 66ms from a steady 15ms and no Jitter, my estimates back when I first had Infinity installed where 19.1/2.90MB so its below my contract anyway, the strange part about it if I connect direct to my HH5 and look at the stats in the Helpdesk section it reads max attainable rate 24558/2208 but my actual speeds are no where near that. I will post an img below taken via ethernet cable today, could someone please seriously have a look at it for me. I don't want to take this as I am just complaining cause it is not good at all it seriously needs looking into for me please, thankyou:-
    Please click on pink star to the left and say thanks if I have helped you at all!. Thank you. Home Hub Page- http://bthomehub.home/
    BT Speed test- http://www.speedtest.btwholesale.com/
    Speedtest:-http://diagnostics.bt.com/login/?workflow=Speed
    Net Connect test- http://netalyzr.icsi.berkeley.edu/index.html

    Can a mod please please help me out or someone from BT I have ran another test now and its going down further this time now and all the time something is wrong. I've asked my parents and they have said they don't want an engineer coming out at all they have made this very clear to me and bothering them again they say, my backs against the wall with this issue, I have explained to them an engineer needs to come out to fix the problem but my dad seems to think they can fix it without an engineer coming out to the house cause one did before a while back without coming out so hes remembering that and trust me hes a rite stubbon git when it comes to this sort of thing the internet is really unusable at this moment, its just awful and I don't know what to do for the best???!.:-
    I have filled in the contact form if it helps me but hopefully they will read this thread and understand my difficult position so they know where I am with the problem.
    Please click on pink star to the left and say thanks if I have helped you at all!. Thank you. Home Hub Page- http://bthomehub.home/
    BT Speed test- http://www.speedtest.btwholesale.com/
    Speedtest:-http://diagnostics.bt.com/login/?workflow=Speed
    Net Connect test- http://netalyzr.icsi.berkeley.edu/index.html

  • Newbie - Waveform Peak Detection - Location Mean

    Hi,
    I'm trying to implement a magnetic speed sensor in my project, this speed sensor produces a signal like this:
    (Image from this site)
    For now I use this to simulate the sine wave:
    I was trying to build an application that:
    - Read my  measurement file.
    - Detects the sine waveform peaks
    - Calculates the mean of 10 locations values
    But with no success...
    Any help? Thank you
    Sorry for my bad English.
    Attachments:
    1. Sine Waveform Generator.vi ‏48 KB
    2. RPM.vi ‏36 KB

    If you go to toolbar and help. And then select find examples. You can do a search for peak. Labview is shipped with many good examples. It is often quicker then ask for help in this forum
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Please have a look at this, problem loading images from jar.

    I made a post at the wrong place..
    Pleae have a look at it:
    http://forum.java.sun.com/thread.jsp?forum=422&thread=434524&tstart=0&trange=15

    Answer (hopefully not totally useless) posted over there.

  • Procedure ..Please have a look and give ur suggestion

    Hi all,
    Please have a below procedure.
    Suggest me if I do anything to make it more efficient?
    Because I'm very very new to pl/sql .
    I have to send this to code review.Before just to make sure everything is good and all logic and everything.
    Thanks in advance.
    PROCEDURE proc1 (
      in_report_parameter_id   IN      NUMBER,
      in_date_format_mask      IN      VARCHAR2,
      in_start_date_time       IN      TIMESTAMP,
      in_end_date_time         IN      TIMESTAMP
    AS
        my_current_date_time TIMESTAMP;            
    BEGIN
          my_current_date_time := TRUNC(in_start_date_time);
          DELETE FROM table1;
      LOOP
         EXIT WHEN my_current_date_time >= in_end_date_time;
         INSERT INTO table1 (
                     date_time )
         VALUES (my_current_date_time);
          my_current_date_time := my_current_date_time + numtodsinterval(1, 'DAY');
      END LOOP;
      DELETE FROM table1
         WHERE   TRUNC (date_time) IN
              SELECT TO_TIMESTAMP(report_parameter_value, in_date_format_mask)
                FROM report_parameters
              WHERE report_parameters.report_parameter_id    = in_report_parameter_id
              AND report_parameters.report_parameter_group = edr_rpt_constants_pkg.date_format_mask_group
              AND report_parameters.report_parameter_name  = edr_rpt_constants_pkg.excluded_date_name
    END proc1;

    Hi,
    I meant something like this:
    INSERT INTO table1 (date_time)
    WITH   all_dates   AS
         SELECT     in_start_date_time
                      + LEVEL - 1     AS dt
         FROM     dual
         CONNECT BY   LEVEL <= 1 + in_end_date_time
                                    - in_start_date_time
    SELECT     dt
    FROM     all_dates
    WHERE     dt     NOT IN     (
                       SELECT  TO_TIMESTAMP (report_parameter_value, in_date_format_mask)
                     FROM     report_parameters
                   WHERE     report_parameters.report_parameter_id    = in_report_parameter_id
                   AND     report_parameters.report_parameter_group = edr_rpt_constants_pkg.date_format_mask_group
                   AND     report_parameters.report_parameter_name  = edr_rpt_constants_pkg.excluded_date_name
    ;If you post CREATE TABLE and INSERT (or CREATE TABLE AS) statements, then I' can test it.
    As Tim said, TRUNCATE TABLE is not a PL/SQL command, so to use it in PL/SQL you have to use EXECUTE IMMEDIATE, like this:
    EXECUTE IMMEDIATE 'TRUNCATE TABLE  table1';The word TABLE before the table name is required.

  • Please have a look at my site

    Hi i've just uploaded a site i'm working on. See it
    here and the css file
    here.
    It displays ok in Firefox but in IE 6 it looks awful. Have a
    look and you'l see what i mean. Can anyone explain to me why this
    is happening?
    Also before i added the "contentfooter" div the site was
    centred in the browser (well in FF at least) but now it's aligned
    to the left.
    Another thing i would like is to be able to set the height of
    contentleft, contentcenter and contentright to vertically
    auto-stretch if possible.
    Any help would be greatly appreciated.
    *EDIT, i played about with it and fixed the issues with IE.
    I'm still trying to iron out a few problems though. Now the top
    shadow doesn't look right in IE but it's nearly there. I created a
    "bluetext" style for some of the text but it's not showing up. I'm
    still interested in auto-sizing the site vertically.
    thanks guys

    There was a great explanation from Murray on 10th September.
    Find this
    thread and see if it sorts you out. If not, post back.
    "Horizontal alignment of text boxes with css"
    Jo
    "ali_chisholm" <[email protected]> wrote in
    message
    news:ee4j9d$mll$[email protected]..
    > Hi i've just uploaded a site i'm working on. See it
    >
    http://www.mensanafitness.co.uk
    and the css file
    >
    http://www.mensanafitness.co.uk/mensana.css.
    >
    > It displays ok in Firefox but in IE 6 it looks awful.
    Have a look and
    > you'l
    > see what i mean. Can anyone explain to me why this is
    happening?
    >
    > Also before i added the "contentfooter" div the site was
    centred in the
    > browser (well in FF at least) but now it's aligned to
    the left.
    >
    > Any help would be greatly appreciated. I need to get
    this sorted asap.
    >

  • I have made a blog about Web templates...please have a look

    Hello Everyone,
    In my quest to make web templates I could not find a whole lot of relevant info. I feel like I am flying blind. I had asked, in a previous thread, for anybody with knowledge on making templates to share this info. Well, we did not get a whole lot.
    So, I have decided to make a public spectacle of my adventure in creating them. Please visit the blog, and please chime in if you have relevant info, or questions (please note though, any questions may not be answered right away. At least not by me-'cause as of right now I have no answers LOL). The more people that participate the faster we will all learn how to do this.
    http://lrwebtemplates.blogspot.com/
    My goal is to create a pdf of this knowledge once we have ironed out out all the bugs. Thanks for looking. And thanks in advance for any help/participation in the effort.

    Thanks for doing this, Paul. Hopefully you'll get some useful stuff to add to it soon. A n additional item is the entry on Goerge Jardine's Lightroom Journal from Andrew Rahn. Nothing new there for us who have worked on trying to figure thsi stuff out and hardly the direction I had hoped things would go, but maybe it will lead to more in the future.

  • Help making a treepage in htmldb- Carl/Scott please have a look

    How do I make a tree page of this data?
    create table Flatfile
    (Pgroup varchar2(30),
    Pclass varchar2(30),
    Manufacturer varchar2(30),
    Article varchar2(30),
    Price Number(6,2));
    Insert into Flatfile Values
    ('Application Software','Database Software','Oracle','Oracle 10G',115);
    Insert into Flatfile Values
    ('Application Software','Database Software','Microsoft','MS SQL Server 2000',200);
    Insert into Flatfile Values
    ('Application Software','Spreadsheet Software','Microsoft','Excel',100);
    Insert into Flatfile Values
    ('Monitor','15"','Acer','Acer 15"" TFT superscreen',199);
    Insert into Flatfile Values
    ('Monitor','15"','Sony','Sony R1500 flat',225);
    Insert into Flatfile Values
    ('Monitor','17"','Philips','Philips Flatscreen',250);
    Insert into Flatfile Values
    ('Monitor','19"','Viewsonic','Viewsonic PLasma Monitor',275);
    Insert into Flatfile Values
    ('Processor','AMD','AMD','FX-55',600);
    Insert into Flatfile Values
    ('Processor','Intel','Intel','P4 3 GHZ',399);
    I tried alot, but simply can't figure it out, please help:
    A fixed level of two or three would be fine. I just don't understand the concept in creating one in htmldb. So:
    Pgroup
    ---Pclass
    Or
    Pgroup
    ---Pclass
    ------Manufacturer
    How must my query be written?
    What do I fill in for these parameters:
    Identify Query - You do not code the query. Instead, you identify the following:
    ID - The primary key column of the table that is then used as the foreign key reference.
    Parent ID - The foreign key column of the table that references the primary key column, thus forming the hierarchy.
    Leaf Node Text - Select the column to display. Although this is a singular selection, you can edit the resulting query after it is defaulted to concatenate in other columns.
    Link Option - If the tree is for informational purposes only, a Link Option is not necessary. If the tree will be used for navigation, select Existing Application Item.
    Sincere,
    Peter
    Message was edited by:
    Pete

    Pete,
    Your example begs the question - if it's too hard for you to navigate it, then it will DEFINITELY be too hard for your users.
    Let's say I was looking for a Monitor on your site. I would have to search the entire top-level of the tree and come up with a list of several nodes which MAY contain what I'm looking for:
    - LCD TV
    - Monitors LCD
    - Monitors CRT
    - Plasma Displays
    - Screens
    - VGA
    Instead, why not have a higher-level category called "Displays", then list each one of these sub-categories under it? Something like this:
    + Displays
      + CRT
        - VGA
      + LCD
        - Monitors
        - TVs
      + PlasmaI think that if you consolidate your tree, it will 1) solve your scrolling problem and 2) make your site more usable.
    Thanks,
    - Scott -

  • Please have a look, its to do with JLists

    Hey guys I have been searching for the information online and in books but i cant find anything that works.
    I am inserting a name (string) into a JList.
    But before I do I need to search the JList to make sure the record dosent already exist in the list.
    Becuase if it does, i dont want to enter in the name again.
    My problem is searching through the list, becuase JList has no list iterator...and i must use a JList
    For this reason I am trying to do it with loops...Will someone please look at my code and try help me. My problem is that: tn does get a value, but tmp never gets the value of that position in the list.
    String tn = new String("");
                   int j = 0;
                   int y =utwoModel.getSize()+1;
                   int x = uModel.getSize();
                   while (result.next())
                             tn = result.getString("UserResponsible");
                             while(j<y)
                                  for(int f = 0;f==j;f++)
                                       String tmp = new String(uModel.elementAt(j).toString());
                                       System.out.println("tmp:"+tmp);
                                       if(tn.compareTo(tmp)== 0)
                                            uModel.addElement(tn);
                                            break;
                                  j++;
                                  y =utwoModel.getSize();
              

    isStringInList is a simple method to check if a String exists in a JList:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class TestList extends JFrame
         JList list;
         public TestList()
              String[] tabs = { "one", "two", "three", "four", "five" };
              list = new JList( tabs );
              getContentPane().add( list );
              System.out.println( "six in list: " + isStringInList( "six" ) );
              System.out.println( "one in list: " + isStringInList( "one" ) );
         public boolean isStringInList(String value)
              for (int i = 0; i < list.getModel().getSize(); i++)
                   Object o = list.getModel().getElementAt(i);
                   if ( o.toString().equals( value ) )
                        return true;
              return false;
         public static void main(String[] args)
              JFrame frame = new TestList();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setVisible( true );
    }

  • Please have a look my problem and suggest us ..................

    I Have iphone 3gs Using in present time, but my iphone can't ios 6 update.
    please how can i update ios 6 in iphone 3gs, plz tell me how can i update ios 6.................   and this iphone not installed any apps.............plz tell me............

    Follow the directions here:
    http://support.apple.com/kb/ht4972
    iOS 6.1.3 will be installed on your phone.

  • VERY IMPORTANT! PLease have a look!

    HI Champs,
    We have a daily load to Cube through Process Chain,and it has got  2 aggregates on it.
    The steps in the Process Chain is as follows:
    1.Delete Index from CUBE1.
    2.Load data to CUBE1.
    3.Create Index On CUBE1.
    4.Delete Overlapping request From CUBE1.
    5: Roll Up of CUBE1.
    Note: We have kept COMPRESS AFTER ROLLUP SETTING ON in the Aggregate.
    Now The problem is everyday while performing 4th steps i.e.Deleting Overlapping request.
    First it deactivates previouse aggregates and then delete overlapping request and fill the aggregates again in this step only and later on it failed by giving following error: : Error when structuring the index of aggregate 100079 for InfoCube ZCOPA_C05. Each day we have to repeat this failed steps.And 5 steps is no more use as aggregates filled by previous steps only.
    So, can anyone suggest me how to overcome from this probs.
    Please....I m tired by repeating the failed steps..Please
    10zin

    hi,
    hope the load is full load to cube. we have faced the same issue.
    first step before the load deactivate the aggregates using the program, then you can have the dlelete index lod cube delete request and create index then add the activate and fill program for the aggregates.
    rollup and fill in this case going to have same time(full load )
    SAP_AGGREGATES_ACTIVATE_FILL  Activating and Filling the Aggregates of an InfoCube 
    SAP_AGGREGATES_DEACTIVATE  Deactivating the Aggregates of an InfoCube 
    Ramesh

  • Sorry this is way off topic...NYC Petition, please have a look

    I know this is WAY off topic for this forum, but this is the only forum I follow and contribute to. And since we will ALL be affected by this at some point or another if we visit NYC I think it is worth all of our attention.
    Here is the text from the email I got from the APA...(link at bottom)
    The Mayor's office in New York City is seeking to instate a new rule that would require permits and proof of insurance for any group of 2 or more persons using a camera in a public area. The regulations would require that anyone using a tripod or shooting in one location for more than 30 minutes (including set-up and break down time) must obtain permits and show proof of insurance of at least 1 million dollars per occurrence. Read more about the new rules here: http://www.nyc.gov/html/film/html/news/080107_proposed_permit_rules.shtml
    We all need to act now to fight these proposed regulations which will place absurd restrictions on the freedom to photograph in New York City's public spaces.
    This affects not only professional photographers but the First Amendment rights of anyone with a camera to spontaneously document what happens on the streets of this city.
    Due to pressure from advocacy groups, the Mayor's Office has agreed to extend the period that it will allow public commentary until August 3rd.
    Picture New York has initiated an online petition opposing the new rules, which over 12,000 indidivuals have signed so far. The petition is closing on August 3rd. Please take a moment to sign if you have not already done so.
    Here is the link to sign the petition:
    http://www.pictureny.org/petition/index.php

    you have to be careful with your variables:
    the declared variables inside the actionlistener(s) are not these in your main class!!
    what you might do:
    a) let your main-class implement ActionListener
    public class MainClass extends PARENTCLASS implements ActionListener {
       public static void actionPerformed(ActionEvent ae) {
    }b) create your own event handler
    public class MainClass extends PARENTCLASS {
       public MainClass() {
          insert.addActionListener(new YourActionListener(this));
    public class YourActionListener extends ActionListener {
       private MainClass main;
       public YourActionListener(MainClass parent) {
          main = parent;
       public void actionPerformed(ActionEvent ae) {
          main.year = "abc";
          main.id = "id";
          // or implement setXXX methods -> main.setYear("abc"); main.setId("id"); ...
    }hope it helps...

Maybe you are looking for