Curve: average value of the maximum peaks?

Hi @ all!
DIAdem 11.1: is it somehow possible to calculate the average value of all the maximum peaks of a curve?
If yes, how can I make it?
Thanks for your help!

Hi Rednaxela,
Sure, once you have created a channel containing "all the maximum peaks", then you can calculate the average value of that channel either with the CCh() function or the StatBlockCalc() function.  The real question is what you mean by "all the maximum peaks".  Most humans staring at the same data curve will come to similar conclusions as to what "all the maximum peaks" are.  The trick is to define how a computer (program) needs to proceed to come to the same conclusions.  This is actually considerably harder than most people anticipate, because humans are really much better at identifying peaks than computers.  The actual method we use to define "all the maximum peaks" will depend strongly on the details of your data curves.
Would you be able to post a sample data set or send it to [email protected]?
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • How to prevent numericstepper from setting the value to the defined Maximum when a number greater than maximum is entered in by keyboard and user hits the "Enter" key.

    I need to set the Maximum so that the use can use the mouse to change the value of numericstepper (and not go over a certain number), but at the same time I have to allow the user to enter their value by typing in the text field. When the user enters a number greater than the Maximum, I disable the "Ok" button of the dialog and show a red warning(error message). The issue is that the user can hit "Enter" and numeric stepper would set the value to the Maximum and the dialog box would close and the rest of code would run. I want the numericstepper not to change the value and keep showing the warning even if the user hits the "Enter".
    Note: Setting maxChar does not help since my maximum is 1000, and user might enter 5555
    I would appreciate the help.

    Thanks for trying to help, But
    The issue is that if I set the maximum value of stepper 1 greater than the max value that I want, then the user can select an invalid value(of myMax + 1) when he clicks on the UP arrow of the numeric stepper(which is not acceptable for what I am working on).
    I need to preserve the users invalid number, while not letting the user to select an invalid number by clicking UP key.
    I noticed that when the user enters a number greater than the Maximum, and then click on the down arrow, it would set the value to 1 less than the maximum. This is not acceptable either.

  • Calculate the average value

    the data I measured changed rapidly, so i want get the average value of the data
    Do not tell me to use mean.vi , i have already know that.
    and i got an idea which is add the data into an array every time, then sum of all the data value and take the result divide by the number of elements
    but i dont know how to achieve that, anyone can build a simple vi to show me ? thank you
    i have attached my vi which is using mean.vi to calc the average value, you can delete it and using in your way ,  thank you !
    Solved!
    Go to Solution.
    Attachments:
    EN-new.vi ‏274 KB

    Hi I got a similar issue for averaging. I used the mean.vi from the math function but the average is rolling when i run it. I am trying to calculate the average for the data i read to the RT FIFO (which is around 40000 lines).I got the writing part working, however, when i am reading the data, I couldn't get it working. I thought i read the data as a 1-D array, and then pass it to the Mean.vi and then got the result. But seems like the mean is only showing the last data in the array.
    Can someone help me with this??
    Attachments:
    FPGA-vi.png ‏242 KB
    RT-vi.png ‏182 KB
    RT-2mod.vi ‏515 KB

  • Function module that can give the last value or the highest value of a key

    hi,
    Is there any function module that can give the last value or the highest value of a key feild in a z table.
    regards,
    johnson

    Hi ,
    We have  aggregate functions in SQL. Some of the functions are as follows.
    MAX(col ) Determines the maximum value of the value in the column col in the resulting set or in the current group.
    MIN( col ) Determines the minimum value of the content of the column col in the resulting set or in the current group.
    AVG(  col ) Determines the average value of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    SUM( col ) Determines the sum of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    COUNT( col ) Determines the number of different values in the column col in the resulting set or in the current group.
    For further details , type the function name name and press F1 for further help.
    Eg: select count(mantr) from mara into workarea where condition.
    Reward points if helpful.
    Thanks and Regards.

  • Maximum peak frequency

    Hello..
    I'm a user of NI product (LABVIEW 8.5).
    My problem is, i'm using DAQ VI that read the signal from the hardware and then i transfrom it into frequency domain by using FFT.
    In the frequency domain, i get a graph with a set of different frequency. Here is the set of data
    1. At freq= 0Hz, magnitude= 23 - this is the offset
    2. At freq= 20Hz, magnitude= 5
    3. At freq= 35Hz, magnitude= 18
    4. At freq= 55Hz, magnitude= 10..
    So, which VI should I use so that it will display the frequency of 35Hz which contain the maximum peak frequency of my signal?
    TQ

    1. It appears that your frequency resolution is 1 Hz.  For FFT based systems df = fs/N.  To get finer resolution you need more data points (increase N).  You can either take more samples, although the insects might not cooperate, or you can pad the data.  The FFT.vi will do that internally just by changing the FFT size input to a value larger than the number of samples in the dataset.
    Your saved data has 3000 points and you get two outputs (at 8 and 9 Hz) to represent that peak.  Changing the size to 15000 results in 7 points in a peak at about 8.6 Hz.
    2. Your data looks very strange.  It appears that about 40% of the input data is saturated at amplitude = 0.21.  This has to distort your results far beyond the DC offset.  You cannot do anything about that after the data has been recorded because all the information is lost in the saturated intervals.  Please check the gain of your preamplifier.
    Lynn

  • Tachometer in WAD 3.5x - to show Avg of all values in the Data provider

    Hi All,
    I am creating a tachometer in WAD 3.5x.
    Actually the requirement for the tachometer i want to design is that it should display the Average value of the data column that is displayed in the dataprovider(which is a view in this case).
    My view (Data Provider for tachometer) contains only one data column, and its Result row contains the Average value for the data column. But when I run WAD, the tachometer doesnot read the result row, instead it reads each of the individual rows and creates a pointer for each record. Whereas as per my requirement, the tachometer should display only a single pointer depicting the average value of all records.
    I am trying to suppress all the single value rows and display only the result row in my view, am unable to do so.
    Any help would be much appreciated
    Thanks
    Shikha Verma

    Hi Shikha Varma
    Just quick thought just try with the swap axis and do the table cross verification..
    [Chart Types and its functions_Spedo meter|http://help.sap.com/saphelp_nw04/helpdata/en/c9/08533b97037963e10000000a114084/frameset.htm]
    As per the help in my RnD it is working but it is 7.X Wad just try it in 3.5 hope fully it will works for you..if not please excuse..
    Hope its clear a little..!
    Thanks
    K M R
    >
    shikha.v3 wrote:
    > Hi All,
    > I am creating a tachometer in WAD 3.5x.
    > Actually the requirement for the tachometer i want to design is that it should display the Average value of the data column that is displayed in the dataprovider(which is a view in this case).
    > My view (Data Provider for tachometer) contains only one data column, and its Result row contains the Average value for the data column. But when I run WAD, the tachometer doesnot read the result row, instead it reads each of the individual rows and creates a pointer for each record. Whereas as per my requirement, the tachometer should display only a single pointer depicting the average value of all records.
    >
    > I am trying to suppress all the single value rows and display only the result row in my view, am unable to do so.
    >
    > Any help would be much appreciated
    >
    > Thanks
    > Shikha Verma

  • Read-in CSV and Calculate Average Value

    I've got a csv file which I'm reading in but need to calculate the average value of the second column (CPU). It's in the following format:
    Date CPU
    01/09/2014 25.3
    02/09/2014 22.3
    03/09/2014 26.2
    04/09/2014 22.1
    I basically need the average CPU for the month. Any advice?
    Thanks in advance
    Adam

    "Date","CPU"
    "01/09/2014","25.3"
    "02/09/2014","22.3"
    "03/09/2014","26.2"
    "04/09/2014","22.1"
    '@ | sc test.csv
    (Import-Csv test.csv | measure CPU -Average).Average
    23.975
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Average Values in query

    Hi
    In my query I am unable to average the values in the query is there a way of getting number of records in the query please tell me how to get average values in the query level i went to properties i found the average option but that does not work.
    Regards,
    Nikhil.

    Hi Nikhil,
    Try with the solution detailed in the following document:
    www.service.sap.com/bi --> Product Information Previous Releases --> Media Library --> HOW TO... Guides -->  Guide List SAP BW 2.x -->  How to... Count the occurrences of a characteristic.
    Ciao.
    Riccardo.

  • Report requirements with Average value , forecasting value & Prod Quant.

    Dear Friends,
    I need a help in Reporting.
    The reqirement is like this:
    1. I need to display the daily production quantity.
    2. Also the Average value of the Production quantity for a month.
    3. And the Forecasting value for the first day of next three months.
    4. Restricted Cal month on filters with variables and calday in columns and  
        keyfigure in Rows.
    I have tried to calculate the Average but as the  report is based on cal day it gives me the average value for all cal days. But i need it for the entire month.
    Plz help me in solving this report with your golden ideas!!!
    Thanks in Advance and Points will be assigned!!!
    Thanks
    Sri

    Hi,
    Thanks for your early response.
    Actually i am unable to use tcode: KKBC_ORD rather able to use KKBC only.
    Using KKBC (Target/actual/production variance) and activating collective order from setting option only able to see the details for a particular leading production order only relating toa  particular period .
    My requirement is to display all the production orders settled in a particular period along with (Material code /order number/ Qty/Actual value and variance value).
    Note: If any leading order exists then that should be collective order i.e.(value and Qty should come against the leading order number).
    If there is any standard tcode exists please let me know else provide the tables and logic to bui;d up such a report.
    Regards,
    Ramakanta

  • How To keep CNiKnob from going directly from the Min axis value to the Max axis value?

    When a user drags the pointer on a CNiKnob with the mouse, he/she is able to drag the pointer directly from the minimum axis value to the maximum axis value.
    This is obviously unacceptable. So is there a way to disable this behavior or a work around?

    Unfortunately, there is not an easy way to do this with CNiKnob. One way you could work around it would be to handle the CNiKnob's OnPointValueChanged event and keep track of the previous value, then detect if the value jumps from the min to the max or vice versa and if it does, set it back.
    If you migrate to .NET in the future, the Measurement Studio Windows Forms .NET Knob control lets you easily configure this and is the default behavior when you add a Knob to your form. For more info, see the documentation for the Knob.InteractionMode property.
    - Elton

  • Cumulate value at the Query Level

    Hi.
    I have a scenario where the user enters the value for Cal Month. With this the query fetches the value for a key figure for the month (based on last value exception aggregation on CALWEEK). Now with this user entry I need to also fetch the cumulative value (YTD) for the same key figure for all the months till the month entered by the user. Subsequent to that I have to calculate the average value of the YTD Value (Average = YTD Value/Number of months). I can not add another Key Figure for cumulation in the cube as there are many many Key Figures like this. Please suggest.
    Cheers
    Anand

    Thanks Ravi.
    I am not sure I understand. I need to calculate both for the month and YTD using the same user entry - that is the month.
    Basically the variable has to pass one value to the first column and a range to the next like this
    User Entry = CalMonth (mm/yyyy)
    CHAR        Column 1           Column 2
    value           For the month     YTD
    Cheers
    Anand
    Edited by: Anand Nataraj on Oct 28, 2008 4:40 PM

  • How to calculate the ratio between the maximum and minimum peaks of the two waves using two looping to find the value of SPO2?

    hello everyone,
    i'm rai from indonesia
    I have a final project about pulse oximetriy, I have some problems,
    how to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops to calculate SpO2 ?
    My program image can be seen below predicament ?
    Attachments:
    spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi ‏249 KB
    spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi ‏249 KB

    Hi rai,
    I would appreciate it as kind of respect for forum participants if you would clean up your VI before uploading it (or images of its block diagram)…
    That being said:
    - Your inner while loops each run exactly twice. Replace them with FOR loops!
    - Lots of unneeded operations, mainly induced by ExpressVI usage. Is there a reason to convert to DDT and immediately convert back to 1D array?
    - You already calculate some Min/Max values. Ratio is just a division of two values…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How do you find the average value of all the data between two points on a single channel

    I am tring to calculate the average value of all the data points on a single plot between two seperate points
    I have attahced an illustration.
    Tim
    Solved!
    Go to Solution.
    Attachments:
    plot.jpg ‏173 KB

    Hey smoothdurban,
    I've seen Brad's code, and trust me, it's worth the effort to let him help you get it up and running - it's definitely the most ideal way to solve this problem.  However, as Brad said, there are multiple ways to tackle this - both interactive and programmatic - so in the meantime, I'll take a second to detail one of the interactive and sure-fire ways to find the average of data between two points on a single channel.
    We'll use"Flags."  Set up your VIEW graph exactly as you did on your original screenshot, using Band Cursors to approximate the beginning and ending X-values representing the range you want to examine.  Next:
    1. Click the "Set Flags" button () that is a part of your 2D Axis System.  Note that you can hold down the Shift button if you ever decide you want to do this on more than a single curve at one time.
    2. Select the "Flags: Copy Data Points" button that enables after Flags are set.
    3. This creates new channel(s) in the default (bold) group in the Data Portal that contains only the Flagged data.
    4. Select DIAdem ANALYSIS.
    5. Select Statistics » Descriptive Statistics.
    6. In the Channels input, select the newly created channel containing your Flagged Y-Data.
    7. Ensure that the Arithmetic Mean parameter is set.  You can preview the data and the result in the dialog before pressing OK to execute the calculation. 
    You may have noticed that in the Descriptive Statistics calculation, one of the parameters that you can set is the range of channel rows to operate on - so, if you know the row numbers of your beginning and ending X-values, you could just simply run the Descriptive Statistics calculation and use this parameter to operate on a row subset of your original channel instead of the entire channel.
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • How to find out the maximum value of one array

    hi all..
    I have one array that consists of some elements
    so I want the maximum value of the list ...
    if anyone knows this please help me..
    thanks..

    >
    If your array is already sorted, you can do a binary
    search.
    I think there are already methods to do that in
    java.util.Arrays. (?)
    If not, it's not hard to find an example on the net.
    A binary search will be more efficient.1. If your array is already sorted, you do not need a binary search. Either check the value of arr[0] or arr[arr.length - 1] depending on the direction of sorting.
    2. If your array is not sorted, try this:
    int maxValue = arr[0];
    for(int index = 1; index < arr.length; index++)
      if(arr[index] > maxValue)
        maxValue = arr[index];
    }

  • How to find out the maximum value in a Query within single material

    Dear all,
    Im creating a Query on 0SD_C03 where i have to disply Maximum value of a material which is having more that one transaction..
    EX:
    MATERIAL BILLED VALUE
    x with BILLED VALUE 100
    x with BILLED VALUE120
    y with BILLED VALUE 50
    y with  BILLED VALUE 80
    z with BILLED VALUE 50
    z with BILLED VALUE 60
    in a analyser i have to display X with billed value 120 that is max in X material and
    Y with billed value 80 that is max in Y material and
    Z with billed value 60 that is max in Z material
    In a query all the values are summing up. I.e for X its 220 and Y its 130 and Z its110 but we dont want to get total sum value we want individual values and the maximim of those values.......... 
    We are using BW 7.0 version
    Can any one help me out in this
    Thxs in Advance
    Venu

    Venu,
    In your query try creating a formula, with the value of each record as the key figure in the formula.
    In the aggregation tab select maximum in the exception aggregation dropdown and then select material as the reference characteristic
    then when you include material in the rows it will only display the maximum value.
    cheers
    mark

Maybe you are looking for

  • Javaws problem on Suse Linux 9.2

    Hi. I'm using Suse Linux 9.2 and have a problem with Java Webstart (5.0). When I start javaws the CPU load rises to 95% and stays at that level. Nothing else happens. I can't start any application with javaws. Has anybody else experienced this proble

  • Limit usage in SQL

    I'm using OBIEE 11.1.1.5 and I want to add to my generated SQL towards the DB limitation on returning number of records. Can I add some TOP or LIMIT command? I tried adding in the postfix (advanced tab) but it failed.

  • Divide key figures in real time cube by using planning function

    Dear all, I have a real time cube which contains one key figure which is defined by 10 characteristics. For one country, the users types the values fpr the key figure in a wrong format, so I have to divide those values by 1000. I have tried to do thi

  • Reader not printing

    My Adobe Reader suddenly will not print to my Canon Pro9000 (un specified error) and will only print a quarter of a page to my i960. If I try to open Updater I get the whirling beach ball. I have rebooted everything, no changes Adobe Reader vers 10.1

  • Trying to upgrade Iphone 4 from IOS 4.3.3 to IOS 6

    Im trying to upgrade the IOS from 4.3.3 to 6. When I plug the phone into Itunes and click on upgrade, the process just kinda of freezes when the phone is being backed up. I can back up the phone no problem without doing the IOS upgrade. I do have the