Threshold control for peak detector

Hi there,
I am building a vi which recieves a set of data, and then needs to find the peaks in the data (there should be no more than 3). The problem is that the peaks are variable in amplitude, depending on the source and I need a method of controling the threshold without having to examine the raw data. The ideal solution would be a graph being displayed with a horizontal line whose height / distance from the threshold and is actively controllable.
Any ideas?
Attachments:
labview pic.JPG ‏84 KB

What I usually do for automated peak detection is, assuming one ofthe the desired peaks is the highest values in the original array, I find the max value in this array and then set my threshold to some percentage of this value (i.e. 0.7 times the max value).
Randall Pursley

Similar Messages

  • I am trying to detect signal peaks (derivatives of the peaks both +ve and -ve peaks). simultaneously 2 peaks detectors are running, 1 for +ve and other for -ve peaks.

    i am trying to detect signal peaks (derivatives of the peaks both +ve and -ve peaks). simultaneously 2 peaks detectors are running, 1 for +ve and other for -ve peaks. when a peaks get detected it would trigger a pulse of approx 1 sec duration and at the same time it would disable the other peak detector for 1 sec time duration. after the time period, again both the peak detectors would be enabled. i have been able to detect both peaks but still not able to control the detectors block the way mentioned before.
    the code and the data are attached.
    Attachments:
    eog peak detection.vi ‏192 KB

    I'm not suggesting any of this as a model, and your needs are different than mine.
    1) Go to Preferences -> Audio.  Under "Default Audio Tracks", Set "Mono Media: Mono".  Set "Stereo Media: Mono"  (Choices from the pull-down for both are Use File, Mono, Stereo, 5.1, Adaptive)
    You can change these, but I don't. I am using both mono and stereo tracks. I set up a custom sequence with the particular combination of stereo and mono tracks I want.
    2) Set audio for clips by selecting all clips and going to Modify Clip -> Audio Channels Tab.  Under "Number of Audio Tracks" there should be a "1".  Under Channel Format it should read "Stereo".
    I am not sending the audio to anyone else to edit further. I am doing a final stereo mix. If camera one is set up to record 2 mikes as a stereo track, then I leave that unchanged and put it onto a stereo track. If camera two is set up to record one mike onto channel 1 as ambient sound and channel 2 is a mono feed from a sound board, then I modify those clips as Preset Mono, 2 audio tracks, Channel format Mono, and that puts the left source channel (or whichever I choose) onto Audio track 1, channel 1 (of one), and right source channel onto audio track 2, channel 1.
    4) Delete all the existing audio tracks in the sequence and replace them all with mono tracks, so all tracks in the sequence are mono.
    I modify the tracks while creating the sequence, and ultimately use a custom sequence.
    Under my Effects Controls panel there is only Channel Volume, and nowhere to adjust the pan.
    I'm using the mixer, not the effects control panel.

  • How to set threshold value for single tablespace in grid control 11g

    Hi,
    I want to set the threshold value for a single tablespace in grid control 11g,
    please provide me a navigation path.

    Sandy wrote:
    Can you please provide me the full navigation path?go to Targets --> Databases
    Select the Database you like to set this alert for
    Select link Metrics and Policy Settings

  • "Timed event" for peak detection input

    I have a program that takes some data and looks for peaks in the data it collects. What I need to do is make a timed event such that the "peak width" parameter will change from one control variable that I can change manually to a second one after a certain time. Do I need a second loop and some boolean logic for this, or is there a much simpler way?
    I don't have access to the entire program right now, but the attached screenshot should contain all the relevant stucture.
    Attachments:
    untitled2.jpg ‏112 KB

    Sorry for the multiple posts.
    Upon closer inspection of the first VI image attached, I think I should clarify a bit more. In this attachment, a subVI called "peak detector" is being used to locate the magnitude and position of maximum values of the data array. I think this is the similar VI as the one shown here. This VI is being passed the following input parameters: 
    So it looks like the goal is to change the value of the "width" input manually after a certain period of time has elapsed. There was some ambiguity in my mind of exactly what this meant.
    If we just want to change the value of the "width" input during future iteration(s) in the stacked sequence structure, one way would be to place a different control inside each stacked sequence structure. You could add Wait (ms) VI's inside each stacked sequence to delay the progression from sequence to sequence.
    By contrast, if the goal is to change the value of the "width" input in the middle of the "X" array, then we could alter Detect Peak VI's default behavior by going into the block diagram of this VI. You might need to press "Ctrl+m" on its front panel to get an editable VI in this case. There, switch the threshold value to another added input parameter after a certain number of iterations into the array.
    What is the behavior that you want to see?
    Just some thoughts if you haven't solved the issue yet. Hope this helped, let me know if you have any questions or comments, and best of luck.

  • What does the location of the peak detector mean

    i would like to know what the locations of the peak detector refer to? what does the value of the location of the peak detector tell? does it tell the location of the peak and if so, what unit is it in? also, if i set a threshold value, does it mean that only one peak would be detected or any value higher than that threshold would also be detected? if i were to set the sampling rate for my peak detection to be 400 per millisecond, do i expect to see an array of values or one absolute peak value after one cycle?

    Greetings!
    The peak value VI gives you four outputs, actually: positive and negative peak values and the positive and negative peak "horizontal" locations. The locations are in data points, not actual time. To get the time, you have to calculate it from your sample rate. Also, the vi does indeed give you the absolute peak of a waveform, which, as you can guess, requires that the entire waveform is sampled BEFORE the calculation is made. This can slow down real-time sampling, since there is considerable processing involved in calculating the peak value...you need to keep this in mind when designing your application. To answer your last question, you will obtain ONE reading per trigger.
    Hope this helps!
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • How to set automatic e-mail alert for 90% threshold reach for MAXDBdatabase

    Hi,
    I want to set automate e-mail alert for 90% threshold reach for MAXDB database i.e. data area. I want to know where i can set the automate e-mail alert for data area in MAXDB database? As i have already have script for oracle tablespace alert if tablespace reaches 90% it sends me an auotmated e-mail.
    Please let me know where to do the settings or any script available for MAXDB database data area automate e-mail alert....
    Thanks,
    Narendra

    Hello,
    What is the version of your database?
    Are you SAP customer?
    Please see the MAXDB documentation,
    Review the Standard Events at:
    http://maxdb.sap.com/doc/7_7/default.htm
    -> Glossary -> Event
    And u201CMonitoring Free Memory in the Data Areau201D section at:
    http://maxdb.sap.com/doc/7_7/default.htm
    -> Database Administration
    -> Monitoring Databases
    see example at:
    http://maxdb.sap.com/doc/7_7/default.htm
    -> Tutorials ->Database Manager CLI Tutorial
    -> Using the Event Dispatcher Function
    -> Event-Controlled Sending of E-mails
    Thank you and best regards, Natalia Khlopina

  • Deleting peak values detected by peak detector vi

    Hi,
    I m using the peak detector vi to detect peaks every 100 samples, if the difference between two consecutive peaks is greater than 15 i want to delete the peak with the higher amplitude only. This data set, should be plotted again on another waveform. I m able to detect peaks that have amplitudes greater than 15, but I dont kn ow how to delete only these peaks.
    Attached is the waveform, with a single peak with high amplitude which I want to delete.
    Any help would be appreciated.
    Thank you.
    Regards.
    Attachments:
    peak_detection.doc ‏88 KB

    Hi Prakruthi,
    please have a look at this forum thread:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=69416&requireLogin=False
    It contains a complete VI for deleting peaks. You only have to insert one more condition to deal with the "only peaks with difference > 15" requirement.
    Regards,
    Johannes Bauer

  • Why different types of peak detectors show different results?

    In my project i need to insert a peak detector but when i use different types of peak detectors they show different results. why is this so?

    I also find the thresholds used will give different results.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Can i use subfolders with source control for developer ?

    We'd like to use the repository as source control for our developer files.
    We planned to use the following structure in the repository:
    - Application Container
    - Folder
    - Files
    We uploaded the files in the repository.
    Now if we open the file through the ron the file will open in form builder, which is pretty good.
    The following thing I'de like to do is a checkout of the file ... ok ...i'm going to file - administration - checkout - the message occurs: no versionable object exists ! ... ? :-(.
    So I go to file - administration - source control options .. i'd like to say forms that it has to look for the file in a subfolder of the application system .. ok.
    After changing this i try again - the same message.
    If I return to source control options the container entry has been changed to the application folder.
    Are Subfolders not supported by the source control for developer ?
    Does anybody have the same effects ?
    Background informations ?
    Thanks in advance
    Mario
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by [email protected]:
    Did you check the file in first? When you first put files in Repository, they are initially unversioned until the first checkin...
    Brian<HR></BLOCKQUOTE>
    Hello Brian
    Sorry, for the delay. I worked for some day for another customer.
    Yes, i did.
    I'm working like this:
    - upload file with check in Folder which is under an application Folder (app - fmb )
    - then i check out the fmb in the repository
    - doubleclick in repository, which opens the form in form builder
    - change the file
    - File - Administration - check-in - connect to repository - choosing the workarea - and defining the folder (app - fmb ).
    - The file will be check-in, but directly under the folder app.
    Thanks in advance
    Mario
    null

  • Follow-up transaction copy control for opportunities

    Our CRM system is currently configured to permit follow-up opportunity creation.  When follow-up transactions are created all product categories are copied to the new opportunity.  We would like to stop this.  All header and business partner data should be copied as present, however product information should not be copied.  (i.e. follow-up transactions currently work, we only want to switch off product data copying)
    I am not familiar with follow-up transaction customization, and not sure exactly where to start.  Should I be modifying the current BAdI or is there a standard customizing option to switch off copying of product categories?

    Hi Derek,
    Just try this:-
    Go to SPRO->IMG->CRM->Transactions->Basic Settings->Copying Control for Business Transactions->Define Copying Control for Transaction Types.
    Search for entry Source=oppt and target=oppt.In this entry, uncheck the check box-Copy Item Number and see if it resolves your issue or not?
    Thanks and Regards,
    Rohit

  • Copy Control for Transaction Types

    Hi,
    Was wondering if someone could help on following topic. We need to specify the possibility of copy control (follow-up) for certain transaction types in CRM 6.0. I've specified the source TT (ZAPP) and the target TT (ZCON) in customizing activity : Define Copying Control for Transaction Types.
    ZAPP = Custom Appointment Activity
    ZCON = Custom Opportunity
    Now, when I want to create a follow-up for ZAPP in the WebUI (via dropdown 'More' and action 'Follow-Up'), I always get an extensive list of transaction types (about 30) rather than only the opportunity that I originally specified. Any ideas?
    Thank you,
    Sebastiaan.

    Hi Kai,
    Many thanks for your answer. Indeed, the COPY_DOCUMENT is a very good alternative as it also directs the flow for follow-up. However, I have a question in regards to using this method. I can see that there are parameters that need to be provided (like PROCESS_TYPE etc) but apart from that is it also possible to change fields in the copied document.
    e.g. Currently the description of the copied document gathers the description of the action definition, but how can you pass the description of the previous document for instance? Is this also done via the actual parameters?
    Thank you,
    Sebastiaan.

  • How do I set up timed access control for a time past midnight

    I would like to set up timed access control for a number of my devices that would stretch past midnight...   An open network from 6AM to 2AM - effectively only blocking access from 2AM tp 6AM in the morning....
    Any notion on how to do this?  the timed factily does not like the setting to enable 6A to 2A, says the times are invalid. 
    Setting up timed access from 6AM to 11:59P, then doing another from 12A to 2A causes a service "hiccup" of 1 Minute.

    Set up each device as follows:
    Everyday........Between.......6:00 AM and 11:59 PM
    Add a second rule for each device that will state....
    Everyday.....Between.......12:00 AM and 2:00 AM
    You might think that there would be a one minute break between 11:59 PM and 12:00 AM, but that will not be the case, at least on every AirPort that I have ever programmed..  Reason.....11:59 is really 11:59:59:59 turning off at 12:00 AM.  But, you have a second rule to allow access at 12:00 AM, so the AirPort will be "on" at the same time the first rule ends, so there will be no break.
    If you really want the second rule to turn the AirPort "off" at 2:00 AM.......then set that time for 1:59 AM. If you set the rule for 2:00 AM, then AirPort will really turn off at 2:01 AM.

  • "the activex control for flash player could not be registered" - Solutions Roundup

    I recently ran into this problem on my computer:
    http://at32.s3.amazonaws.com/flash_install_problems2.jpg
    I am a Flash developer (as in I write SWFs, I don't work for Adobe).  and when I updated IE to 10.2, "the activex control for flash player could not be registered".  Since I am a developer, I also have Firefox and Chrome installed, with Flash running without problems.  For a long time now, Internet Explorer has used a different version (ActiveX) to the other browsers, which use plugins.  I am a strong supporter of Flash, it's great to develop with and has a very wide feature set which is growing all the time, unlike fixed technologies/standards.  However, the weakest part is the install process - I don't understand why their is a Download Manager.  Google Chrome does it's best (so far) by managing the install/update process entirely in the background.  Anyway, it was in my best interest to try and get to the bottom of this.
    For the record, on the problem machine I have Windows 7 with IE8, but I have seen almost  identical symptoms with IE9, Windows XP SP3, as well as various  iterations of Flash Player (10.0, 10.1, 10.2 and even some final  editions of version 9).
    First I tried the standard support here:
    http://kb2.adobe.com/cps/191/tn_19166.html
    Basically, doing the manual uninstall and manual install of the latest version (without using the download manager, or have IE open).  This did not work.  I also tried the Microsoft "subinacl" program, together with "reset_fp10.bat".  This didn't work either.  However, you should try all of these things first before progressing further.
    A quick note about people who had tried running the following at a command prompt: "secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose"
    I didn't do this, because on investigating further it didn't seem to work with Windows 7, only Windows XP, Windows 2000 or Windows 2003 - though there was a few threads where this had fixed the problem for some users.
    For my solution, it is recommended you use the manual uninstall / installers, so you should have them downloaded ready to use.
    I then heard about problems with permissions in the registry with the key: HKEY_LOCAL_MACHINE\Software\Classes\shockwaveflash.shockwave
    So I opened regedit.exe (start - run - typed "regedit.exe"), navigated to the key and sure enough, I couldn't open it - permission denied - even though I had an administrator account.  If for some reason, you can access this key (and any subkeys), then it's likely the following fix will not resolve the problem.
    I then done further diagnosis, by using Process Monitor to try and install Flash Player, and I got the following:
    http://at32.s3.amazonaws.com/flash_install_problems.gif
    This shows all the access denied errors the Flash Player install was experiencing when trying to write to the registry key.  This confirmed that this was the problem.  I only stress this because several people said it was unwise to tinker with the registry.  Though this is common advice, this is the only known fix for this precise problem at present, since you need to manually adjust the permissions yourself.  I don't know who is at fault here - Microsoft or Adobe - but let's just get Flash fixed...
    The solution:
    Firstly, you may want to backup your registry, or the exact key.  I didn't do this so I've provided no instructions on how to, but it is recommended for the paranoid.  Also make sure as much software is closed down as possible - browsers, IM software, any junk in your system tray. As way of example, I happened to have "BBC iPlayer" installed and running in the background which uses Adobe AIR and Flash Player, so I exited that too.
    1) Open regedit (start - run - type "regedit.exe").  You may need to right click on it and select "Run As Administrator", but I didn't as my account was already administrator.
    2) Navigate to the key. HKEY_LOCAL_MACHINE\Software\Classes\shockwaveflash.shockwave
    Click on it to confirm that you cannot access it (you will get an error) - if their are no problems - this probably isn't the cause of your issues.
    3) Right click on it and click Permissions, and ignore any message that may pop up.
    4) Under "Group or Usernames" click "Add".  Type your account name name, or "Administrators" in the box, then "Check Names" to format it correctly, then Ok.
    5) Now on the next screen click the checkbox to enable Full Control (this will also automatically enable "Read" permission too).
    6) Click Advanced, then the "Owner" tab at the top.  You will see that their is no "Current Owner".  This is what we will now fix.
    7) Click on your name to change the owner to (I went for Administrators).  Also enable the checkbox entitled "Replace Owner on subcontainers and objects".  Then click Ok.  You will get an error message, which you can try clicking Retry to, but hit Cancel - this is not a problem.
    8) Click Ok a couple of times and this part of your registry is now fixed.
    9) Now it's a simple case of running the manual Flash uninstall program, then finally the manual Flash installer (for Active X - not the Firefox/Chrome plugin versions).  To my surprise, after a couple of days looking into this - I finally had a solution and Flash in IE once more.  If you are using Firefox too you may find Flash is no longer installed their (the uninstaller removed it).  In this case just install via the Adobe site or try to watch a video on You Tube and you will be prompted or linked to the install.
    Hope this provides a good round up of the possible solutions to this problem.  Hopefully Microsoft or Adobe can find out what causes this issue in the first place so we don't have to go down this route for much longer.  Chrome's implementation of Flash shows how effortlessly things can work!

    They will stay on the screen.  However, Process Monitor is only intended for advanced users.  It is recommended that users try to navigate to the troublesome registry key using regedit, and see if they can access it or not without an error.  This is far easier than trying to use Process Monitor, which is very complicated.
    I used Process Monitor to confirm that it was just that key which was causing the problem, and not others.  Process Monitor is not to be confused with the new Resource Monitor which is accessible via Task Manager in Windows 7 (and possibly Vista).  If you must experiment (and Process Monitor is very useful for diagnosing many deep-level problems if you know what you're looking for) Process Monitor can be downloaded from here:
    http://technet.microsoft.com/en-us/sysinternals/bb896645
    It replaces the older Sysinternals "FileMon" and "RegMon".  For those interested in the technical side, I had to setup a number of filters to be able to get the results display as in the screenshot.  First of all to just show Registry events.  Then to just show events from the manual Flash activeX installer executable.  The I added a filter to show only non-successfull results.  And finally, for the purposes of the screenshot, added a filter to just show those with "Access Denied", since other non-critical errors are also picked up due to missing keys because installation has not yet been fully completed I guess.   When experimenting, most of these filters were applied using the "is not" boolean logic, which will make sense if you experiment with the program.
    Without adding any filters, it picks up so many events (hundreds per second) that it's otherwise unusable.  e.g. 40,000 events within the first few seconds of opening the program. For this reason, I recommend simply using Regedit to diagnose the problem with the particular Flash registry key.

  • A lost my remote control for apple tv. I want to use my phone as a remote but the applications can' pair with the Apple TV device , how can I pair them without remote?

    A lost my remote control for apple tv. I want to use my phone as a remote but the applications can' pair with the Apple TV device , how can I pair them without remote?

    Setup for remote app: http://support.apple.com/kb/ht1947
    Specifically:
    Set up Apple TV (2nd and 3rd generation)
    On Apple TV, select Settings from the main menu.
    Select General > Remotes > Remote App. If Home Sharing isn't set up on your Apple TV, you should turn it on.
    Apple TV (2nd and 3rd generation) uses Home Sharing to stream content from your iTunes library on your computer to your HDTV.  If  you connect your Apple TV to your iTunes library using  Home  Sharing, you can use Remote to browse and play content from any  iTunes library in the Computers   section of your Apple TV. You can also  use Remote to select  between available speakers to enhance  your  audio and video experience.

  • How do I set up different hardware controls for different patches in mainstage?

    I'm using Mainstage 3.0.4 and a Novation Impulse.
    I created a concert, with the drawbar organ as my first and most important patch. I assigned the hardware controls on the Novation exactly how I wanted them, with the sliders controlling the drawbars, and the rotary controls changing the distortion, reverb, etc. It was perfect. I was happy.
    Then I added a new instrument (a new patch, not a new channel or anything like that), a Wurlitzer. Once again I assigned my hardware controllers as I wanted them, and was happy with that.
    When I saved the concert, and went back to my organ patch, my settings didn't stay the same, but they still work for the Wurli.
    My question is this - do I have to have a new concert for each instrument patch I want to use, if I need to assign different controllers for each patch? This would be stupid! If not, what I am doing wrong, that I can only set up one set of hardware controls per concert, instead of per patch?
    Thank you in advance for the help!!!

    Hi
    matthewabennett wrote:
    CCTM, thank you! I have a small idea what you mean, but I still can't implement it :-)
    You have some fundamental choices:
    A) If you want to see Drawbar Controls for organ Patches, and then have other types ( knobs/sliders etc) for other Patches, you could simply make all the screen controls you need, then assign and map them as required.
    B) you could simply use drawbar screen controls only and remap them to other parameters for non-organ patches
    C) You could use Smart Controls ( which will update their appearance in a 'smart' way
    D) You could make your own Drawbar type controls using standard faders
    The basic process in a 2 part thing:
    Assign incoming MIDI messages from your controller to Screen Controls in Layout mode. This is global for concert. Per patch ( or Set or globally for the Concert) you then map the Screen Controls to parameters for each patch as needed.
    Smart Control MIDI assignment is done in the Assignments and Mappings pane
    CCT

Maybe you are looking for

  • Libclntsh - Memory leak

    Hi every body, I have a big problem with my c++ program, after 3 hours of execution, my program explose, no enouth memory and the cause is that i have a lot of memory leak due at the use of the oracle librairie libclntsh, my oracle version is 9.2.0.7

  • Neither the menu or lightbox widgets are working correctly

    My website is at http://www.goodwinsanimations.com/2 I'm using the menu widget and lightbox widget in my website and neither are working correctly: The menus work but the dropdown feature does not work when I test it in either Mozilla Firefox or Goog

  • Help please with wrangling Windows 7 fonts

    This may seem off-topic, but I'm hoping the practical expertise of posters here in working with fonts might provide some insight.  I've posted in Windows-centric forums, but most general users seem not to understand font issues, so couldn't respond. 

  • Why i can't send "MAIL FROM:"?

    i wonder why i failed to send "MAIL FROM:" while commnunicating with the server using SMTP protocol? my code is: socket = new java.net.Socket(strServer, 25); dis = new java.io.DataInputStream(socket.getInputStream()); dos = new java.io.DataOutputStre

  • Why won't Norton AntiVirus 10.0 install on my PowerBook G4?

    I have a PowerBook G4 and have installed OSX 10.4.7 for PPC. I am now attempting to install Norton AntiVirus 10.0. The error message I get is: "...Software requires Mac OS X BSD Package." My PowerBook G4 does not have an Intel process (pre-Intel). I