Peak detection function for sawtooth waveform not working properly

I am using peakdetector function for finding peaks in a sawtooth wave. The peaks it detects is 2 units higher then the actual peak. But when i do the same thing for sine wave it detects the peaks properly.
Can anyone please tell me why am I having this problem and how to resolve it? Any help would be greatly appreciated. Thanks in advance 

With that line i got a sawtooth wave having 10 cycles. It dtects  all the 10 peaks but at an amplitude 2 units higher the the actual peak. I have attached a picture of what I got... 
Attachments:
sawtooth.jpg ‏206 KB

Similar Messages

  • Hi i buy G62 but the drivers for gaming is not working properly is there a way that i can download

    My gaming driver is not working properly Im using a ATI MOBILITY RADEON HD 4200 how can i download a new driver suit to my computer and where its nposeble to download it thanks in advance.

    Firefox will not appear in the Market for most phones with incompatible hardware. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    Even on some supported devices, a bug in the Market software prevents Firefox from showing up. This may be related to the fairly recent Android Market app update. If you go to Settings/Applications/Market and choose "Uninstall" you can uninstall the update, and then search for and install Firefox from the marketplace.
    Or, if you have a supported phone, you can download the app directly by typing this address into your phone's browser: http://bit.ly/fxbeta3
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

  • The minimize function for Chrome is not working

    Hello everyone,
    since yesterday the yellow round icon (which allows you to minimize the window) on Google Chrome it turned grey and it's not working anymore. Also all the other ways to minimize windows are not working.
    This is happening only with Chrome, and when I'm working with it the dock disappear...
    How do I restore the minimize function for Chrome?
    Thank you,
    Silvia

    I'm using 10.7.2.  When I highlight some words, the highlight turns into a colored oval!   The PDF file is from a vendor.

  • SetVisible() function for JDialog is not working on Macintosh machine

    Hi All,
    I have coded 2 dialog boxes and i m making only one dialog box visible at a time and using threading.
    But using setVisible() function works fine when I am running that code on windows platform; while when I run on macintosh machine this is not working.It seems as i setvisible() is not executing at all on macintosh machine.
    I am using jdk1.5 on both windows as well as on macintosh.
    Tell me if there is some other method to make dialog boxes/frames visible/invisible.
    Waiting for reply
    Thanks

    Since you mentioned that you're using threading, I have to ask: have you ensured that setVisible is called on the EDT, possibly by wrapping it in a SwingUtilities.invokeLater ?
    db

  • ICal: 'Open in Address Book' Function for 'Attendees' does not Work

    iCal lets you drag a Contact from Address Book to the 'Attendees' field of an iCal Event. (You can also put the information into the field by typing the first few letters of the person's name, and Address Book will automatically populate the field with contacts containing those letters.) When you click on a contact in 'Attendees' and select 'Open in Address Book', it is supposed to open the contact's information in Address Book (in case you needed their phone number, forgot their wife's name, etc.). In the previous version of iCal, this ALMOST worked; it would find someone in Address Book, but it would be the first person in your Address Book list with that first name; not always the person you wanted.
    The problem now is that when you click on a contact in 'Attendees' and select 'Open in Address Book', it simply opens the Address Book application and stops there; it does not go to the contact's data in Address Book. I sent Apple feedback on this problem 3 years ago, and again a few months ago, but it still does not work correctly. Does this work correctly for anyone?

    Mine actually performs the sync, but after a few rounds of syncing, some contacts get deleted, some get their photos removed, some get duplicated, and some get removed from groups. The sync basically puts my address book through a blender. I'm syncing both with MobileMe and Google. Well, that is I tried to. I've decided not to sync with Google since that's what seems to initiate the mess.

  • IProcurement - new VO for search results not working properly?

    Greetings
    There is a requirement for the project I´m working, where the search results on iProcurement must be filtered depending on some profiles setted for the user.
    So, basically the search shouldn´t look into ICX_CAT_ITEM_PRICES, but on a custom view that works on that table, but filtering results.
    Unfortunately, that´s not working. I extended the VO (which seems to be SearchResultsVO and ItemDetailParametersVO), so the queries are now pointing to the view. But once the search is performed, the results are not filtered. It´s the very same results as before.
    Am I doing something wrong? There is some cache that works even after the Apache server is restarted? Please I could really use some help on the subject! Thanks!
    Best Regards,
    Thiago

    Thiago,
    Why don't you use a local Jdev setup for substitution process so that testing and debugging is easier.
    Follow these steps for testing locally:
    1. Add your VO to AM.
    2. After extending VO, do the following,
    Right-click on your project in the Navigator pane, and select Edit Business Components Project (or right-click on the project's .jpx and select Edit <project>).
    a. Select the Substitutions section.
    b. From the Available list, select the base object that you want to replace and press ok.
    3. Normally, the BC4J runtime does not read a project's .jpx file. To override this default behavior in JDeveloper so you substitutions can be used, you must do the following to ensure that the classpath contains the .jpx file.
    a. Right-click on your project and select Project Settings.
    b. Then in Configurations | Development | Runner, add -Djbo.project=Name to the Java Options. Note that the Name value is the .jpx file name without the .jpx extension (for example, ExtendLabSolutions). Be sure to include a space between any existing options and the new option.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Pdf Filter for Sharepoint 2003 not working properly

    We are having some problem in crawling pdf documents in Sharepoint sites.
    We installed Adobe's IFilter 6.0 on the Sharepoint Farm.
    But, found that crawling is not happening properly. i.e, when full text search is given for some key words present in pdf documents, for some of the words search is not returning the documents.
    Here is a senario.
    There is a document called 'Best Practices.pdf', in 3 sub sites.
    'Throw EDMSException from catch blocks.' - a line that is present in the above document.
    In full text search if 'EDMSException from' is given, all the 3 documents under 3 sites are being displyed in the search results.
    But, if 'Throw EDMSException' is given, no documents are getting displayed in the search results.
    Please help on this issue.
    P.S. : There is a table in that pdf document and within a cell, the above line is present.

    Hi there,
    We are developing an application where we are storing pdf files as Image in SQL Server 2000. We tried to implement Full Text Search for the same, but it works only for text files and not for pdf files stored in database. We have installed Adobe's IFilter 6.0 and followed all instructions that i found in one article (http://www.indexserverfaq.com/Blobs.htm). We are not getting what we wre missing. Any help whill be greatly appriciated. My emailid is [email protected]
    Thanks in advance.

  • Transaction for a Zreport not working properly

    Hi all gurus,
    I developed a report which extracts some data from the system based on an user selection via select-option.
    A simple schema of execution:
    - the user completes a selection mask;
    - F8 to execute;
    - the report extracts required data and performs some check filling a return table containing the desiderata info;
    - ALV to show the results.
    The report works fine; the problem is the transaction I created over it.
    I simply created a transaction (ZCHECKPRiCE) for the report, but it doesn't work properly. Once the tx is called, the selection mask is properly shown and the user can fill it. So far, everything seems to be fine. But when the user presses F8 to start the process, the report suddenly quits and the SAP welcome screen is shown. What could it be the cause of this strange behaviour? I guess there's something I missed creating the transaction, but now I can access the tx property and don't see anything wrong. Can you please help me solving this problem? Thanks in advance.

    Hi all and thanks for your help.
    I don't remember exactly which selections I made in order to create the transaction; since it's a work I've done many times, I did it quite quickly. Now, what I can see in the transaction property is what follows:
    Transaction code        ZCHECKPRICE                                 
    Package                 ZSRM                                                                               
    Transaction text      Report di verifica prezzi                    
    Program                   Z_CHECK_PRICEI                         
    Screen number        1000                                         
    Authorization object (blank)
    X Maintanance of standard transaction variant allowed
    Transaction classification:
    Professional User Transaction (radiobutton: selected)
    Easy Web transaction (radiobutton: not selected)
    GUI support:
    all the check are active (but seems irrilevant in this case)
    I'd prefer to apply modifications on the current transaction (ZCHECKPRICE) and not to create a new one from scratch.
    Any idea?
    Thanks again

  • Extending Container for custom layout not working properly

    I'm trying to extend javafx.scene.layout.Container to make a custom layout manager that centers a grid of components and fills all available area in the stage (minus some insets, eventually). I'm using some private members to do this, but it's also being done by the JFXtras library, for example. (Incidentally, I would use the new MigLayout in JFXtras 0.3, but it may have an issue that doesn't allow me to do what I'm trying to do, see [http://groups.google.com/group/jfxtras-users/browse_thread/thread/a26bb47bbbc710a0]). Here's what I'm expecting from the layout:
    | 1 2 |
    | 3 4 |
    and after a resize something like:
    |           |
    |   1   2   |
    |           |
    |   3   4   |
    |           |
    -------------So far, my Container implementation is getting there, but I need to resize the window once after the application starts up to get it to work right. Right after it starts, the nodes are all drawn at 0,0. It appears as though scene.width and scene.height are only initialized properly after my impl_layout function is called the first time, but I'm relying on these to calculate the width and height of the scene/stage to do the centering. If I instead rely on scene.stage.width and scene.stage.height, it works right at startup but doesn't work properly when resizing.
    What should I do to fix my layout method? Is there a better way to handle this layout? HBox and VBox don't give me what I want because they don't set the positions of the components to fill the available screen area. I'm using JavaFX 1.1 on OS X.
    ----- GridContainer.fx -----
    import javafx.scene.Group;
    import javafx.scene.layout.Container;
    public class GridContainer extends Container {
        public var rows: Integer = 3;
        public var columns: Integer = 3;
        init {
            impl_layout = doGridLayout;
        function doGridLayout(g:Group):Void {
            println("width = {g.scene.width}");
            println("height = {g.scene.height}");
            def tXIncrement = g.scene.width / (columns + 1);
            def tYIncrement = g.scene.height / (rows + 1);
            var tX: Number = tXIncrement;
            var tY: Number = tYIncrement;
            var r: Integer = 0;
            var c: Integer = 0;
            for (node in g.content) {
                node.translateX = tX - (node.boundsInLocal.width / 2);
                node.translateY = tY - (node.boundsInLocal.height / 2);
                if (++c == columns) {
                    tX = tXIncrement;
                    c = 0;
                    if (++r == columns)
                        break;
                    tY += tYIncrement;
                else {
                    tX += tXIncrement;
    ----- Main.fx -----
    import javafx.scene.paint.Color;
    import javafx.scene.Scene;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    def width = 640;
    def height = 480;
    Stage {
        title: "Layout Test"
        width: width
        height: height
        scene: Scene {
            content: [
                GridContainer {
                    rows: 2,
                    columns: 2,
                    content: [
                        Rectangle {
                            width: 150,
                            height: 100,
                            fill: Color.BLACK
                        Rectangle {
                            width: 150,
                            height: 100,
                            fill: Color.RED
                        Rectangle {
                            width: 150,
                            height: 100,
                            fill: Color.GREEN
                        Rectangle {
                            width: 150,
                            height: 100,
                            fill: Color.BLUE
        } // Scene
    } // Stage
    ----------

    Incidentally, MigLayout is capable of doing this properly, but I had to create MigNode objects for each cell (see discussion link above).
    I'm still interested in how to do this with a custom Container, because I may end up using my own layout code in the future anyway...

  • Apple software update for windows does not work properly

    Apple software update does not work properly

    I FIXED IT!! I can't believe it . I actually figured out how to make it work(well sort of). My Apple Software Updater now works (almost) perfectly and I just successfully downloaded and installed itunes 10.6.3.25 through it!!!
    Ok , the way I see it, either the latest itunes update or the recent Windows Patch Tuesday on June 12th, 2012 must have inadvertently removed the Administrative Rights from the Apple Software Update Tool .lnk file.
    So you must go to where the file resides on your hard drive - for me that was C:\Program Data\Microsoft\Windows\Start Menu\Programs - Right click on the Apple software Tool icon and choose properties. Click on the compatibility tab. At the bottom of this tab click on "change settings for all users" and hit Yes at the UAC pop-up. Now make sure you place a check in the "Run this program as Administrator" under the Privilege level section at the bottom. Hit Apply and then OK. The hit Ok again to get off the properties pop-up.
    When I went back and clicked on the Apple Software Update shortcut, I got a UAC pop-up asking me if I wanted to proceed(something I had always, in the past, gotten but haven't since this problem started). The Apple Software Update tool came up and to my suprise the progress bar STAYED and started to slowly fill up partially with the green progress bar. Viola, the itunes 10.6.3 update showed up on the top part of the screen as a new update needing to be installed - the bottom screen, as usual, had the changelog info for the 10.6.3 update. I clicked on install and , again, Viola. the update downloaded and installed flawlessly. I had to reboot my computer and when it restarted, itunes was working perfectly and it was correctly showing as itunes v10.6.3.25.
    I say it is almost or sort of fixed because when you click on the Apple Software Update shortcut after the 10.6.3 install it goes back to doing the same thing it did before(i.e. processing for a second and then saying there are new updates but showing a blank field). Maybe this is the way the software now looks if there are no updates available to install - maybe Apple is working on this to eventually get it back to normal. All I know is the process I outlined above worked for me(at least to get the ASU to recognize and properly download and install itunes 10.6.3). It's certainly not perfect, but it worked. Please try this method and let me know what results you have with it. Good luck.

  • File-renaming functionality for book does not work as expected

    Adobe Framemaker 8.0
    I am on Windows XP. Dell computer. Xerox printer.
    I follow the basic instructions for renaming a file in a FM book (To change the name of a document in a book:
    1. In the book window, select the file you want to rename, and then choose Edit > Rename File.
    2. Type the new name of the file and press Return or Enter. When the alert message appears, click OK to update other files in the book.) but I do not get past step 1. Instead an error message comes up that says "The text cannot be changed. To change the name of this file, please display filenames."
    What is meant here by "filenames" and how/where would one display such?

    Thank you indeed! I was with your help able to rename the file. However, the Book Error Log barked at me that it couldn't open BadFileName (a reference not to the file I renamed but another file which I not so elegantly dubbed "Conten ts" (with an unintended space between "n" and "t"--maybe this spacing is the reason behind its being dubbed bad?) since it could not be found. Should I disregard the error message or play along and rename "Conten ts" to "Contents". If that's all I need to do to get rid of the error message then of course, I'll do it. Thank you for answering my last question--whether or not you answer this one. Cheers, Siobhan

  • Function module ADDRESS_PRINT_FORM is not working properly

    Hi All,
    I was using FM   ADDRESS_PRINT_FORM   to print the address according to post office guidelines.
    But the problem is for few adress it is giving different output as compared to the address i.e stored in SAP.
    Is there any FM to print the same apart from using the above given FM.
    Please reply with the needful answer.
    Thanks
    Shashikanth Naram

    Hi,
    Check the following Link for code verification,
    [http://forum.saptechies.com/viewtopic.php?t=1300&sid=e25d923722d2e264d51611c0fb61c2ed]
    If then the result is not as expected, you should check the settings for this function module (see the function module documentation).
    Or check in
    [ADDRESS_INTO_PRINTFORM;

  • After using apogee duet, mac's built in mic & logic's track headers for recording are not working properly.  How do I fix it?

    I use logic 9
    After using apogee duet for mac, I was away from my home studio without the duet and wanted to record vocals via the internal microphone on my mac book pro.  (Obviously, I know it wouldn’t be the same quality.  I wanted to do it as a draft, because I had a melody in my head and wanted to record it so I could remember it later.)
    After opening up a project I was unable to record audio.  I noticed the track headers had changed.  Sometimes the “record ready” button was missing.  But whether it was there or wasn’t, the same thing kept happening… After pressing the “record button” or the “record ready” button a window would pop up that said, “No input source selected!”  I tried to trouble shoot by configuring track header and by going to prefereces>audio>devices>core audio, and switched the “input device” to “built in microphone,” and things like that, but I still would get the same pop up window indicating “no input source selected.”   To be thorough, in preferences under “core audio,” I have selected universal track mode, 24 bit recording, and software monitoring.
    Do I need to reset something?
    If your recommendations help fix the immediate issue temporarily, how do I keep it from reverting back to the same problem if I feel like switching between the duet interface and the built in mic in the future?  How do I keep it permanently from this malfunction?  It seems like this is something simple that would be addressed.
    Also, as I was trying to think of anything it could possibly be.  I wonder if it could be the driver I installed for an old m-box2 possibly causing an issue.  After getting my new mac book pro, I downloaded a driver for m-box2 (the second generation that came out in 2005 and used pro tools LE.)  I used the m-box on my previous computer and it worked well.  Since I purchased a new macbook, I tried to use it on my new computer, but since the m-box2 is a 32 bit system, it didn’t work very well, which is why I got the duet.  I don’t know if that could possibly be messing anything up.  If so, should I uninstall it somehow?
    Thanks

    Ok, think this through... you've changed from a stereo source to a mono source.
    The message reads: “No input source selected!”
    On the track you're trying to record there is an Input section directly underneath the  I/O label. Click and hold to select the correct Input for that track.
    Also, the project you opened was saved with the Duet's driver/interface parameters.. if you open the same project without the audio interface Logic will do it's best to pick I/O that's compatible but I've never seen any DAW do this perfectly.. it always takes a small amount of user input. Especially since you've changed from the Apogee to the internal mic.

  • New update for Pages is not working properly, loosing many features. Where is the citation skill for instance?

    Very bad moment to change Pages version for a cloud-light version of Pages. Many features lost. No citations anymore. How is possible Apple release this software without proper testing?

    By the way, relying on instanceof is kind of poor. Sometimes it's unavoidable, but if you can redesign your program so that it doesn't have to do this, it would be good.
    You could add the Student objects to two different lists (it's still the same object, just used twice, so there's little waste of resources), one list represents all students, and one list represents just postgraduates or just undergraduates.
    You could also perhaps have a method in Student which basically says "add yourself to the appropriate list", and when you want to display student lists, call that method on all students.

  • After update to 33.0.2 html 5 for youtube is not working properly..its flickering..

    please help ..i dont want to use flash player ,,

    You can try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    You need to close and restart Firefox after toggling this setting.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check if there is an update for your graphics display driver.
    *https://support.mozilla.org/kb/how-do-i-upgrade-my-graphics-drivers

Maybe you are looking for