Peak/valley detection problem

Hi,
How can i detect the maximum peak to valley on the graph attached.  It is not the difference between the maximum and minimum all the whole data set that i require, I want to know the maximum value of the higher frequency peaks and valleys ignoring the small 'blips' within the data.
The X-axis is controlled by time and the number of samples between each peak varies between data sets.  I have considered using a moving average to smooth the data but cannot do this due variation of samples between peaks.
Using the peak/valley detection VI would work great but due to the small 'blips' in the data set a true maximum value cannot be found.
Can anyone help?
Tom
Attachments:
graph.JPG ‏20 KB

Hi Tom,
I have been looking into your issue in an attempt to find you a solution. My initial thoughts are that you should apply some form of smoothing to the waveform before subjecting it to the the Peak Detector sub VI to detect the amplitude of the peaks and the troughs. These amplitudes could then be subtracted form each other thereby arriving at the values you are looking for. Can I confirm that this would solve your problem.
I have been looking into a methodology for smoothing your waveform and I found the following example which uses a moving average technique, which I think could be useful. Take a look and let me know what you think.
Best Regards,
Christian Hartshorne
Applications Engineer
National Instruments UK  
Attachments:
Moving_Average-1.vi ‏15 KB

Similar Messages

  • Why no valley detected

    Hi
    Something seemingly simple I can not get to work...
    Please see the attached VI which contains an array constant (which represents a typical set of acquired data points) on which I perform a peak/valley detection.
    I would like to find the valley(s) but no matter what 'width' is used it never finds any valleys.
    Any ideas as to why this may be or suggestions on how else to determin the valley location?
    Many thanks for your help!
    Jack
    Solved!
    Go to Solution.
    Attachments:
    Valley Detect.vi ‏14 KB

    Hi there,
    You need to wire in a value for the 'Threshold' input. This input tells the VI to ignore any valleys below the threshold value. As there are no valleys in your data set below 0, you will not detect any if you don't wire in this input.
    Should you set the threshold value to '800' you will detect one valley. If you set the threshold value to '1200', you will detect three valleys.
    Hope this helps.
    Regards,
    Dave.
    Senior Software Engineer
    www.Adansor.com

  • Graph peak detection problem

    For surface analysis of a sample, I did signal processing and peak detection using inbuilt peak detector .vi . But the problem is in shown peak/valley location... I have attached the screenshot of one run. See there are some peaks(valleys) which are fairly away from the actual graph. I am confused. What might be the reason of this fault? Any idea?
    red blocks--> peaks
    green blocks--> valleys 

    I have used the peak detection function in several application. The peak detections will sometimes be inaccurate in amplitude. The reason for this is as I think covered by Kolan and Alain S. I have found the that the locations is more accurate than the amplitudes parameter. So use the locations parameter to pick values from your wave data. This will improve your accuracy
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Peaks and valleys detection of a zig-zag shape waveform

    Hi,
    I have 2 waveforms coming in and I would like to detect the peaks and valleys(with the location, or ) and write them to a spreadsheet file. 
    In a pattern like this
    peak #1(waveform 1)            peak #1(waveform 2)                  Location of peak#1(waveform 1)              Location of peak #1(waveform 2)   
    valley #1(waveform 1)           valley #1(waveform 2)                Location of valley#1(waveform 1)             Locationo of valley#1(waveform 2)
    peak #2(waveform 1)            peak #2(waveform 2)                  Location of peak#2(waveform 1)              Location of peak #2(waveform 2)
    valley #2(waveform 1)           valley#2(waveform 2)                  Location of valley#2(waveform 1)            Location of valley #2(waveform 2)
      The waveforms come in with varing heights, kind of like a wiggling zig zag shape.  Sometimes the peaks/valleys are very smooth and kind of hard to differentiate from the others. 
    Thanks.

    If you search the forums for peak detect, you will find a number of hits.  Also, here is a recent thread discussin peak detection without setting a pulse width.
    Basically, you want to use the peak detection.vi located in Signal Processing > Signal Operation.  That will find your peaks and valleys.
    In order to put all of this into Excel/Spreadsheet (do you have / want to use the Excel Toolkit or just the Write to Spreadsheet.vi?), you will need to  feed all of your points into a build array and a shift register and then when you are done aquiring data, feed that into the Write to spreadsheet.vi or to a vi for excel.
    The formating will depend on how you feed the data into your array, ie wave 1, location 1 or wave 1 , wave 2, etc
    Kenny
    Kenny

  • Multiple Valley Detection Query

    Hello There,
    I am having trouble detecting multiple valleys within a bell curve type shape (see pic). The valleys are moving horizontally and I need to detect each of their positions in real time. The other issue is that the dips increase and decrease in magnitude thus making it difficult to use the dip detect function as it keeps jumping from one to the other.
    any help would be greatly appreciated,
    thanks.
    Attachments:
    multiple valley detect.jpg ‏51 KB

    Hi TriboBoy,
    Have you tried setting the threshold level above your data so that the algorithm used within the Peak Detection and Display VI considers all of the valleys occurring below it?
    Below is a screen shot of the resulting graph using the Peak Detection and Display VI example in Example Finder:
    The blue threshold line corresponds to the valley data points being considered and has been set to a value higher than any expected data points.  
    It is also worth noting that the width used should be as low as possible (limited to a value of 3) so that the maximum number of data points are considered.  
    Let me know if this helps you at all.
    Regards
    Marshall B
    Applications Engineer
    National Instruments UK & Ireland

  • Determine changes in a signal (peaks, valleys and 'flat' zones)

    Hello!
    I am using a software to predict the values of a parameter as a function of time. The result is output in an excel file with the time on first column and the parameter values on the second column of a worksheet. When I represent the parameter values versus time in an XY chart it looks similar to a signal or waveform with no noise.
    I would like to detect the peaks, the valleys and the 'flat' zones and place coursors where the actual 'flat' signal starts to increase or decrease. More precisely, or rather additionally, I would like to be able to isolate a peak or a plateau if the height is over a certain treshold limit.
    By 'flat' zone I understand a portion of the signal that does not increase or decrease more abruptly than a certain treshold limit.
    Is anybody aware of an example that may do something at least somewhat close to what I am describing? Any suggestions?
    I have the LabView full development system with no additional packages or toolkits.
    Thank you.

    Hi RPJ,
    Thanks for your post and I hope your well today. 
    I great VI in vi.lib I would recommend using is the Peak Detector:
    Its outputs include,
    Locations - the sample number
    Amplitudes - the value at the peak/valley
    2nd Derivatives - which you can use to test how abruptly/sharp the peaks/valleys are.
    Its inputs include,
    Theshold - they amplitude theshold
    Width - how many samples above the theshold the peak/valley should be to be classed
    Peak/Valley - type
    You could use the 1st Derivative to find locations of flat zones (or use the 2nd derivative ..2nd Derivatives gives measurements of the second derivative of
    the amplitude at each of the peaks or valleys found in the current block of
    data. 2nd Derivatives gives an approximate measure of the
    sharpness of each peak or valley. If you are detecting peaks, these values are
    all negative. If you are detecting valleys, the values are all positive.)
    I hope this helps, please let me know what you think,
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • Detection problems in IE?

    I discovered last night that the Javascript Flash detection
    is no longer working in Internet Explorer on either of my
    computers. The script cannot recognize that I have Flash installed.
    I'm not sure exactly when it quit working, but I went back and
    looked at sites I haven't touched in months that WERE working, and
    it doesn't work on any of them now. I recently did a Windows update
    on both computers so it's possible something happened, but I
    haven't been able to find any info online about any issues. If I
    disable Flash detection, everything runs fine, so my Flash
    component itself seems to work properly.
    On this computer, I have Internet Explorer 6.0.2900... and
    the Shockwave Flash object lists file Flash9.ocx. I tried updating
    to the most recent version of Flash on my laptop and that didn't
    fix the detection problems.
    I'm using the standard script detection from Flash
    Professional 8.0. The problem seems to be with the lines:
    set swControl =
    CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i))
    if (IsObject(swControl)) then
    The If statement is returning false for every version. Anyone
    have any ideas about what could be causing this?
    Edit: Ok, if I change the line above to:
    set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash")
    Then the IsObject() function returns true. And the line below
    that:
    swVersion = swControl.GetVariable("$version")
    seems to return the correct version.
    So far, in my testing, this actually seems to work. (Although
    I can't be sure if it works on browsers that aren't broken the way
    mine seems to be.) So did something happen that suddenly makes IE
    not allow you to create the object using the version number? And do
    you NEED to use the version number?

    Sounds like there may be a problem with your install ..
    perhaps you have two
    different play version on your PC (eg you've installed a
    newer version, but
    old one didn't fully uninstall itself).
    One possible solution (if that is the case) is to run the
    uninstall utility
    from Adobe, then search your harddrive for any files matching
    *flash*.ocx ..
    and if they are actually flash players (look at properties
    version info tab
    to ensure they are macromedia/adobe flash player ocx's -
    don't want to kill
    something to do with flash memory (say)) then delete them.
    Also kill off
    the c:\windows\system\macromed\flash folder .. so then you
    have no flash
    player ocx left. Then go to the Adobe web site and
    re-download/install the
    latest Flash Player. NOTE: if you do this, be very careful
    you only delete
    things that can safely be deleted without causing problems
    elsewhere.
    Jeckyl

  • Installer failed to initialize.this could be due to missing file.please download adobe support adviser to detect problem.

    getting the message while installing cs 6 trial
    -installer failed to initialize.this could be due to missing file.please download adobe support adviser to detect problem.
    please help

    Error "Installer Failed to Initialize" | Install desktop application | Windows

  • Windows 7 detects problem with iPod shuffle and after troubleshooting say it can't fix and disconnects it.  What's up?

    Windows 7 detects problem with iPod shuffle and after troubleshooting say it can't fix and disconnects it.  What's up?

    You might get some help over on the shuffle discussions.
    http://discussions.apple.com/forum.jspa?forumID=822

  • Having Windows & iPods detection problems?

    Try Microsoft article below - has to do with iPod detection problem. Try This...
    http://support.microsoft.com/kb/925196

    Sounds like there may be a problem with your install ..
    perhaps you have two
    different play version on your PC (eg you've installed a
    newer version, but
    old one didn't fully uninstall itself).
    One possible solution (if that is the case) is to run the
    uninstall utility
    from Adobe, then search your harddrive for any files matching
    *flash*.ocx ..
    and if they are actually flash players (look at properties
    version info tab
    to ensure they are macromedia/adobe flash player ocx's -
    don't want to kill
    something to do with flash memory (say)) then delete them.
    Also kill off
    the c:\windows\system\macromed\flash folder .. so then you
    have no flash
    player ocx left. Then go to the Adobe web site and
    re-download/install the
    latest Flash Player. NOTE: if you do this, be very careful
    you only delete
    things that can safely be deleted without causing problems
    elsewhere.
    Jeckyl

  • My Book 3.0 (1TB, USB 3.0) detection problem with Envy Phoenix 810-135qe

    I have  a My Book 3.0 (1TB, USB 3.0)... The older My Book not the newer one... "My Book Essential" or something like that.
    I was using it with W7 x64 backup utility on an older HP desktop (HP Pavilion a6560t) without issue up to the day my new HP Envy 810-135qe arrived. I downloaded the latest drivers from WD support, and the thing PnPed fine off the non-powered USB 3.0 on the back of the 810. However, the 810 drops connection after sleep, hibernation, lock, or simply just over time. I've run diagnostics on the WD and the cables, all checked out fine. I tried shutting off power saving to the USB 3.0s in device manager (just a guess), and that seemed to work for a few weeks, however I'm still having the detection issue periodically. All of my drivers are up to date on the HP side. I'm fully reformatting the WD now to see if that might somehow fix the issue (I'll update in a few days on how that worked out).
    Anyone have any idea what's amiss? I suspect something with the BIOS. HP chat support has been no help (they go through the same checks I've already done myself) and they got really spooky on another chat when I asked about adding a SSD as the boot drive (I knew it was an issue from here and other forums).... Handed me off to second tier support, and all they would tell me is that they couldn't tell me anything... Basically, no support for any config except for how it was shipped because it's a "custom build" (yes, buyer's regret big time).
    Secondly, anyone running a similar config with a en external back up that's running smoothly? My WD is getting old so I was thinking of one of the newer portable USB 3.0 HDDs (both 2.5 and 3.5). My specs follow.
    HP Envy 810qe - Win 7 (810-135qe)
    Product number: F9A63AV#ABA
    Windows 7 Home Premium 64
    4th Generation Intel(R) Core(TM) i7-4770K processor quad-core [3.5GHz, 8MB Shared Cache]
    4GB Nvidia GeForce GT640 [DVI,DP,HDMI & VGA via adapter]
    12GB DDR3-1600MHz [2 DIMMs]
    2TB 7200 RPM SATA Hard Drive
    16GB mSATA SSD Cache
    Microsoft Office Trial
    Security software trial
    Blu-ray Reader & SuperMulti DVD burner
    15-in-1 Multi-slot Media Card Reader, 4 USB Ports (Front/Top), Audio [Front 2USB2.0, Top 2USB3.0]
    No TV Tuner Card
    Integrated Sound, Envy Audio; Beats Audio
    HP USB keyboard and optical mouse
    HP Wireless 802.11 a/g/n with Bluetooth(R)(2x2)
    HP Home & Home Office Store in-box envelope
    This question was solved.
    View Solution.

    Anglogator, welcome to the forum.
    I have the exact computer (See my signature below.).  I have installed a Samsung EVO 840 500 GB SSD.  It works absolutely great.  Samsung SSD's seem to be the only brand that boots without changing any settings in the UEFI Firmware.  If you decide to buy one, I will be glad to walk you through the installation process.
    I also have a "WD My Book Essentials" 2 GB external hard drive.  It works perfectly without making any changes to the BIOS.
    Please click the "Thumbs up + button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Hard drive detection problem - PLEASE HELP!!!!

    I'm about at my wits end with this problem.  One of my drives crashed over the weekend, and since then the replacement drive never gets detected.  When I have the second drive installed, my computer never gets past the "Verifying DMI Pool Data", then says disk boot failure.  When I take out the second drive, my computer boots fine.  I've tried different jumper settings, thinking maybe i looked at the diagram backwards, disconnecting my DVD drive and putting the hard disk on the secondary IDE, and installing the new drive as the master and installing Windows on it, with the old drive as the slave.  Nothing has worked.  As soon as I connect a second hard drive, I get a disk boot failure.  I've checked the boot priority a hundred times, and it's correct.  In case it was a power supply problem, I removed everything except the two hard drives and some RAM, and that didn't fix anything.  I'm lost as to where to go from here.  My computer works fine without the second drive, but I need the second drive for gaming.
    I'm now thinking it may be the motherboard, because a couple things have happened over the last month.  First, all of a sudden I got a CMOS checksum error, then about a week and a half ago the onboard NIC died.  And when I installed the updated drivers and flashed the BIOS, on restart I received an error message saying something was wrong with the overclocking settings and had been reset to the default values.  The problem with that is I never overclock anything.   
    I'm not even sure the old drive actually crashed anymore.  I heard clicking coming from the computer, and when I all of a sudden lost access to the drive, I assumed it crashed.  But now that I am unable to get the brand new drive to work, I'm thinking I need to get a new motherboard.  I'm trying to avoid that as long as I can though because this one is only 5 months old.
    Would a possible solution be to just leave the master on IDE, and buy a SATA drive to use as a second disk?  Or does mixing IDE and SATA cause issues?
    Thanks for any help anybody may be able to offer.
    Anyway, here are my system specs:
    K8N Neo4 motherboard
    Athlon64 3200+
    2.5 GB RAM - 3x 512 and 1x 1GB stick
    Boot disk - Western Digital 120GB ATA 100 IDE
    Old Slave - Seagate 60GB ATA 100 IDE
    New Slave - Western Digital 120GB ATA 100 IDE
    NIC - Linksys 10/100
    DVD-RW - Mad Dog Multimedia
    DVD-ROM - Sony
    Graphics - GeForce 7800GTX
    Sound - Mad Dog Entertainer 7.1
    Power Supply - 420W

    Quote
    putting the hard disk on the secondary IDE, and installing the new drive as the master and installing Windows on it, with the old drive as the slave.
    Does the 2nd HD work then, were you able to boot up and install Windows?
    Does BIOS detect it?
    Have you tried a new IDE cable?
    Make sure that all the pins are properly in and not loose in the molex connector to the HD.
    Have you tried using the new drive alone on IDE-1 or 2?
    Have you tried clearing CMOS? remove P/S AC cord, press case power button a few times to drain remaining power then clearing CMOS buy way of the jumper.
    Quote
    I'm trying to avoid that as long as I can though because this one is only 5 months old
    Did you buy this MB new?
    If so you could RMA it.

  • ITunes cannot run because it has detected problem with audio configuration

    Hello! I am currently in a russ with my iTunes. When I try to open it, it gives me the message:
    iTunes cannot run because it has detected a problem with your audio configuration.
    I'm not sure what this means. I haven't changed any settings on my computer since the last time iTunes ran. Is there anyone that can help me? Thank you!

    I am also having the same problem. I have followed the procedures on the link page numerous times. It will work and I think I have fixed the problem and then it the problem starts again. I have uninstalled/reinstalled itunes and quick time, reverted to an earlier version of itunes, etc all to no avail.

  • Detected problem with the audio configuration

    Hi guys, can anyone help me with this problem?
    i really have no idea how this error occured. Coz i didnt do anything with the audio configuration.
    I worked well before i updated the iTunes.
    The error is:
    "The iTunes cannot run because it has detected a problem with your audio configuration"
    Thanks...

    Have you had a chance to look at this troubleshooting page? It may be of some help: iTunes 7 for Windows: iTunes has detected an audio configuration problem

  • Application Files. Detect problems

    I detected a slight problem in file manager. When I access photos on Lumia he shares to email, ONE Drive, why not with the software files? Contents of Where Drive share for software files. Have Lumia Black WP 8.1, how should I proceed?
    I have a picture on my cell phone, I want to change her location within the cell. Windows makes me carry this phone for ONE drive and yes where drive compartment fires the files, IE up load and unnecessary download.
    Poquet File Manager is the name of the application. I believe Microsoft should rely on this apo, to improve the files cannot be in version 1.0
    alencarsv

    Hi, alencarsv. We appreciate your insights on our products and services. For us to better address your concern, what's your phone's model? Just to clarify, you're using the developer preview OS on your phone, correct? It is the normal behavior of the phone to share your pictures to either of the following options: Social Networking accounts, email accounts, and to your OneDrive.
    What do you mean by 'it is not effective'? Keep us posted.

Maybe you are looking for

  • How do I connect to internet with Alltel Huawei (WAN) modem?

    I'm trying to connect my brand new MacBook OS 10.5.2 to the internet through an Alltel cellular wireless modem. Model: Huawei EC228. I have activated the modem successfully through the supplied "Quicklink Mobile" software and I have signal bars, but

  • Error while calling webservice with SOAP Receiver

    Hi Experts, When we run the report on the ECC 6.0 server we call the web service which is configured as a receiver SOAP Adapter, we are getting the following error:    XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Not enough message parts we

  • Why do I get a message that says "mail could not be moved to the trash"?

    WHy do I get a message that says "mail could not be moved to the trash" and how do I fix it? IPad 2 3G &wifi

  • ITunes says it needs to install rosetta

    All of the sudden, iTunes won't launch and Software Update says it needs to install Rosetta.  Never had to do that before.  Anyone know what's going on?  Could this be an issue created from the most recent update?

  • Custom paper size - seems scaled for A4

    Hi, I'm trying to print on the front of a card which when unfolded is 15cm x 30cm. I've made a PDF in Inkscape (page size matches paper dimensions) and opened it in Preview. I set a custom paper size of 15 x 30cm for my printer (Samsung ML-2010) in t