Peak hold function in LabVIEW

Hi,
I have a filtered signal in which I need to get the values of all my peaks (positive and negatives) and afterwards get the mean value. Some oscilloscopes have this function implemented, but I haven't found such a subVI in LabVIEW. Is there any chance to get this function or I have to program it? In this case, I've thought using the derivates of the signal and compare the values and check the derivate tendence, but I think that this function will made my process very slow. Any ideas?
Thanks in advance,
Angel

Just by doing a quick search on the functions pallete I found two VI's that should do what you want. the is a mean.vi and a peak hold vi. I do not know if you have already found them and they will not work or if you could not find them. these VI's may not be avaiable if you have the base package.
I Use labview 7.0 (full)
Joe.
"NOTHING IS EVER EASY"

Similar Messages

  • Sound and Vibration kit - Peak Hold

    I am evaluating a dynamic signal and would like to gather peak hold information from SVT 1/3 octave output. The SVT FFT tool has a "peak hold" function that allows for gathering spectral data over time, but it does not output an array of values. Is there a way I can capture peak hold from the SVT 1/3 octave output and create an indexed array that integrates a dynamic signal in a "peak hold" manner?
    I am evaluating exposure impacts of anthropogenic noise on marine animals for ocean noise pollution mitigation.
    Thanks!
    Michael Stocker
    Michael Stocker
    Director
    Ocean Conservation Research

    Hello mstocker,
    From your post this is what I understand:
    You want to perform peak hold averaging with your Third-Octave
    Analysis.vi and then obtain an array of data of  the peak values. The
    Third-Octave Analysis.vi has a selection for the averaging type you can
    select peak averaging as the type of averaging. Peak averaging combines
    the results of several measurements into one final measurement. The
    output of the Third-Octave Analysis.vi is a cluster. The cluster
    contains one array of nominal frequencies and an array of band power.
    Is this what you were looking for?
    If I have misunderstood your post, please reply with clarification. I would really appreciate it.
    Regards,
      Sandra T.
    Applications Engineer | National Instruments

  • 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 .

  • MIDI Read function in LabVIEW 8.2

    Is there a MIDI read function in LabVIEW 8.2?

    http://forums.ni.com/ni/board/message?board.id=170&message.id=280480#M280480
    You could have aksed it in your previous post since it concerns the same functions.
    André
    Message Edited by andre.buurman@carya on 10-26-2007 09:12 AM
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • Register a Callback function in LabVIEW

    Is there any way to register a callback function in LabVIEW. For example:
    I have a DLL on Win2k that run a thread. This thread is doing a certain task (it is not important what it does...) I can't predict when this task will end and I need to know when the task is over. The easy way would be to poll this DLL and ask: "Is it over? Is it over?" over and over again. No! I don't want to poll. Not because it's too easy. I want this DLL to wake me up on time.
    Any idea, solutions, function that I'm not aware of, new features...
    Thanks
    Nitrof

    I think I have a much better solution for you. Here is an example program that show how to set a LabVIEW occurence in a dll. Therefore when your dll is done it can set the LabVIEW occurence, meanwhile your VI is just waiting on the occurence.
    More infomration on this is in the external code in LabVIEW manual Using External Code in LabVIEW
    NOTE:This will ONLY work in LabVIEW 7.
    Attachments:
    SetOccurDll.zip ‏165 KB

  • Different output of DST function in labview and matlab

    I am passing a 1D array of size 1550 as input to DST function. I have also calculated DST of same array in matlab using 'dst' function. I got approximately same answer till 1399th element but after that answers of two varies abruptly. I tried hard but I am unable to find the solution. I am attaching the data file in which it can be clearly seen that at 1530th element there is a difference of sign also.
    Attachments:
    data file1.txt ‏37 KB

    Out of curiosity, have you tried another software, like Octave? When you have two software that is different, which one is incorrect?
    Also, have you tried to use the DST function in LabVIEW directly?
    Another think to keep in mind... When you try to run a sequence for so long, small round-off errors could be cummulative and show later on the analysis. Also, it depends on how you load the data into each software. Hopefully when moving the platforms, the string conversion would not truncate the number. The best is not using string, but some kind of binary format...
    These are some ideas to check...
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Functions in labview

    Hy,
    I've got a question concerning functions in Labview.
    Is it possible to see the *source* of a function ?
    I'm working with the "Butterworth filter" and I need to know how it
    works *in the inside* :]
    Thank,
    Maura

    On Sat, 10 Jul 1999 23:19:29 GMT, Greg McKaskle
    wrote:
    >> I've got a question concerning functions in Labview.
    >> Is it possible to see the *source* of a function ?
    >> I'm working with the "Butterworth filter" and I need to know how it
    >> works *in the inside* :]
    >>
    >
    >The majority of the simple DSP functions are, to my understanding,
    >taken from the Numerical Recipes in C textbook. If you can get
    >your hands on a copy of that book, it will probably be the same,
    >or at least a very similar implementation.
    >
    >Greg McKaskle
    Thanks a lor for the info.
    So there is no way to get the algorithm directly from labview?

  • I am trying to call a function with LABVIEW developed in CCS compiler

    I used MPLAB (CCS compiler) to develop c code that is used to transmit and receive messages to and from an automotive display. It works great as a stand alone. I would like to call this function from LABVIEW but am having difficulty doing so. Does anyone have experience calling a MPLAB developed project from LABVIEW? Thanks in advance.
    Matt

    PTE wrote:
    I used MPLAB (CCS compiler) to develop c code that is used to transmit and receive messages to and from an automotive display. It works great as a stand alone. I would like to call this function from LABVIEW but am having difficulty doing so. Does anyone have experience calling a MPLAB developed project from LABVIEW? Thanks in advance.
    Matt
    MPLab is for programming PICs if I'm not mistaken. I'm not sure how you would want to call a function compiled in MPLab from LabVIEW directly. MPLab will create binary code for execution on PICs and there is no LabVIEW that could run on a PIC. On the other hand I didn't think you could create standard Windows DLLs, Mac shared libraries or similar in MPLab at all.
    You will have to recompile your code in a C compiler that can create the standard shared library format for the plaform you want to call it from LabVIEW.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Can i call winmain function in labview

    hello everyone,
    Well i have written a C++ code that uses the  winmain function (windows function). i want to convert this code into dll and call that dll into labview.
    Is it possible to  call winmain function as one of the functions in labview. Please let me know as soon as possible.
    Thank you.
    Royal  tiger......

    You didn't say what development environment you're using, so I'm assuming Visual Studio. It sounds like you created a Win32 app (as opposed to an MFC app). This has a "WinMain" function. The prototype for WinMain is geared towards it being called by the OS when you run the executable. You could just add the __declspec(export) directive in front of the return type, but you also need to change some build functions in Visual Studio to get a DLL. You probably also don't need all the arguments that WinMain uses. You're probably better off by starting with a new DLL project in order to get the framework for a DLL, and then copy and past the function code. That's what I would do.
    I would also strongly suggest that you crack open the "Using External Code in LabVIEW" manual that gets installed when you installed LabVIEW. It's in the "manuals" directory, filename of "lvexcode.pdf".

  • "HOLD" functionality NOT working in Sourcing cockpit.

    Gurus,
    I have 2 issues:
    1)
    I am trying to hold requsitions in Sourcing cockpit but when I add them to Workarea and click " HOLD" button it doesn't do anything ( NO Messagee, Nothing) and when I check back in it still shows the requsition item in the scourcing cockpit not the hold status.
    I think the Hold Functionality is not working properly...is thee any fix to it or any OSS Note.
    2)
    We are facing a issue with the “Vendor Text” being getting copied from a catalog item to a Free Form item while the creation of shopping cart.
    When I am creating a SC - say with 3 line items with 3rd line item as Freeform item and 1st and 2nd as catalog items then the vendor text is getting copied from the Catalog line items in  to the Freeform line item.
    So if two catalog line items are there then Vendor text gets copied twice in the Freeform Line item.
    Is there any OSS note or any fix for this
    Kindly advice.
    ANKIT

    Hi,
    1)
    Please go through these SAP OSS Notes ->
    Note 1028009 Message 'Items are being processed by another user' 21.03.2007
    Note 680265 Incorrectly translated message in sourcing cockpit
    Hope this helps.Also seems to  be a bug in the system,so paralley raise an OSS message.
    2)
    Note 816763 - Copy items does not copy vendor text and internal note
    633726 - Internal note and vendor text are not copied
    661820 - Internal note/vendor text disappears
    Note 987686
    Note 988490
    Note 987640
    Note 1021692
    Note 930450 - Vendor text appears twice
    Related threads:
    Vendor Text and Internal Note in Shopping Cart
    SRM 5.0 SP 9 - Text fields shown incorrectly in 'Documents & Attachments'
    Text editor on top of page instead of under Documents
    SRM 5.0 SP 9 - Text fields shown incorrectly in 'Documents & Attachments'
    Re: Internal Note and Vendor Text field size
    Internal note, vendor text
    Re: Internal note text and vendor text disappears during the approval process.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Problems of integrating Matlab functions in Labview

    Hi,
    Does anyone know how to completely integrate Matlab functions into Labview program without a copy of Matlab in the system when I run the entire program?
    Initially I used 'Mathscrip' node but I heard that it doesn't support Matlab toolbox.  Thus, I tried out the other option 'Matlab script' node. This node works well in implementing Matlab functions but it indeed requires Matlab installed in the system. 
    So in other words, how could I realize the full integration(as what Matlab script node achieves.)  without Matlab installed in the system?   
    Cheers,
    Nicholas 

    hi smercurio,
    So you mean that the Matlab script is no longer necessary in my case right?
    Could I just ask my colleague to compile his codes to matlab dll and I use the Call Library Function Node  instead of Matlab script to call it?
    About MCR, is it the correct source at the following link  http://www.mathworks.com/matlabcentral/fileexchange/5268 ?
    Sorry for those basic queries in Matlab as I have very little experience in it. lol... thanks a lot.
    Cheers,
    Nicholas 

  • Vendor hold function

    Hello,
    our users work very often with the hold function in ME21N, because for new venndors we have a specific creating flow.
    So the purchaser creats a PO without vendornumber and do hold.
    The PO is correct in all points. The purchaser maintain the header text of PO also on a very detailed level. (2 pages is nessesary)
    If the Vendor is created the purchaser put it in the PO. What happens?
    All header texts are lost.
    Is this normal that the header text are lost if i fill the vendor in a holded PO?
    The same Behavior do we have on item level if we change the materialnumber.
    Here we lost all item texts.(material-text i would unterstand)
    Is this a normal Behavior or is there a possibility to manage this.
    Regards
    Ralf

    Hi,
    put a break-point in:
    program SAPMF05A
    include   MF05AI00_BELEG_MERKEN
    Module PAI BELEG_MERKEN
    CALL FUNCTION 'SAVE_TEMP_DOCUMENT'
    Best regards.

  • Where can i find the FFT functions in Labview 7.1 Express

    Can anybody tell me where i can find the FFT functions in Labview 7.1 Express or what i have to install??
    regards
    Acosmo

    Hello Acosmo,
    You can find them under
    All functions - Analyse - Signal processing - Frequency domain.
    It's maybe easier if you do a search: when you right click on the block diagram, you have a seach option, just write there FFT and you will have them there.
    Hope it helps,
    Paulo

  • Can not find size_t during import a dll and calling a function crash labview

    Hello, experts
    I need to use FingerLakeInstrument  DLL ( see the attached) inside Labview to talk to a CCD camera. it is built from microsoft visual studio C++
    I unzip FLI dll in my D:\proj\...\linfli-32 and import dll from there. created a c:\FLIDBG.txt as FLI dll needs to write debug message to it if FLISetDebugLevel() or others are called.
    During importing the dll, first thing I got is <sys/types.h>  ( ie size_t ) cannot be found. I have installed free version of microsoft visual studio C++
    but can not find "typedef unsigned int size_t"
    at the end, I just added
     typedef unsigned int size_t;
    in the libfli.h. Having done that, I am able to import all functions into Labview and have a user library called libfli.
    However, as soon as I start calling a simple function in a test.vi, such as FLIGetLibVersion(char* ver, size_t len), which involves nothing other than the library, the labview will crash.
    I created a simple C test.exe which calls many functions without any problem
    any suggstion?
    regards
    xiaofeng
    Solved!
    Go to Solution.
    Attachments:
    libfli-32.zip ‏93 KB

    Hi, Smercurio_fc
    thanks for your reply. Yes, you are pointing to the right place.  I have solved the crash problem.
    when importing DLL into Labview using Tools\import\Shared Library (.dll), Labview automatically set the calling convention as C not as stdcall (WINAPI).  it is this that later the labview crashes when a function is called.  as soon as I manually re-selecte calling convention as stdcall, my test.vi works OK (see attached).
    I tried Call Library Function too to call libfli.dll, as long as I select stdcall as call convetion. the test.vi works.
    How do I know which Call convention I need to choose if  there is no infomation from DLL provider?
    as for the size_t,
    I add   #include <crtdefs.h> in libfli.h and 
     add additional include path as
    C:\Program Files\Microsoft Visual Studio 10.0\VC\include.  this  solved the "not found" issue.
    for this case I know that the DLL is built from VC++,  is this right way? 
    again, thanks for your time.
    xiaofeng
    Attachments:
    test.vi ‏13 KB

  • MIGO use of the HOLD function

    HI Experts
    I have a requirement that the user will use a approval while posting MIGO.
    f.e. the tolerance checks failes and MIGO doesn´t allow to post. This is the trigger to ask the next higher person for approval to allow a higher tolerance.
    My Idea was to use the hold function.
    I will use BADI MIGO_GR_CHECK (MB_MIGO_BADI) Method HOLD_DATA_SAVE.
    But the problem is that I need the current information from MIGO (later MSEG/MKPF).
    Do you know how to get the information?
    The Paramter I can use in this method is just I_GUID.
    I know there is a sample coding, but this doesn´t help.
    Thanks
    Alex
    Edited by: Alexander Stappert on Mar 12, 2010 10:07 AM

    Solved

Maybe you are looking for

  • Enhancement in IDOC_INPUT_ORDERS not saving changes after order creation

    I have an enhancement at the beginning of the IDOC_INPUT_ORDERS function module used to create sales orders via EDI.  In the enhancement, I take the data records and make some changes to some quantities and units of measure.  After making these chang

  • Sync Send step in BPM.

    hi all, My BPM flow starts with a single message that I split using a message map into a list of messages into a block which is foreach mode to be sent synchronously one by one splitted messages to an Oracle stored procedure via the JDBC adapter. Aft

  • I saw a ghost reflected in my iMac screen?

    Do you think it was really a ghost or is it just because the screen is so glossy? I did just move into a new apartment and I have this feeling something is behind me often when I'm at the computer.

  • Can I force a site to be hosted in the U.S.? Or is it as simple as setting the country and culture?

    Hi,  I would like to target the U.S. with a new site but I'm not sure about the best way to do it.  I'm hoping it is as simple as changing the country and culture within settings. And do I need separate sites if I'm are targeting different countries?

  • Need to deny access to file manager for the user

    Hi I need to be able to deny access to the file manager, as I dont want my client deleting files. however, for some reason I have to allow him access to this as he needs to be able to upload files through InContext Editor (he needs to link pages to d