Record the coordinate point of the max y value on chart

I am trying to figure out how to get labVIEW to record the x and y values at the coordinate point of the location of the max y value.  In other words, at the max y value, record the x and y values at that point.  I though of using the max and min fn under signal processing but it only records the maximum value on one axis.  I am using labVIEW 8.6.  Any suggestions?  Also I am very new to LabVIEW so I appologize if this is a really simple problem.

What do you mean by : "My max/min array does not seem to store the max/min values."
An array is a serie of numbers, so unless they are all the same there has to be a minimum and a maximum. 
What do you mean by : "...return to zero within a second or two..."
Does your vi hang for a second or two or what? 
What do you mean by : '...to stay at the max value until I exceed it?"
Exceed what? A loop that acquire data continuously or what?  
The solution provided by smercurio is ok for a static array but I start thinking that you acquire data and want to find the maximum value over different blocks of data.
Is that it?
If yes then you need a shift register that retain the maximum of passed blocks. With each new block compare the maximum of that block with the shift register value. If it's larger keep this one as a new maximum. If it isn't larger keep the original value.
Message Edited by Alain S on 07-03-2009 07:17 PM

Similar Messages

  • How to find out the max/min value of one field corresponding to a second field in HANA through graphical way.

    Hi,
    I am trying to find out the latest delivery date(EINDT)  for each purchasing document (EBELN) through graphical way.
    The view contains other fields apart from the above mentioned two fields.
    When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
    If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
    Hence , please help me in getting the solution while the view contains other fields also.
    Thanks in advance.
    Thanks,
    Jyothirmayi

    Hi Sreehari/Vinoth,
    Thank you for your replies.
    if only two fields are then I can get the max/min values of one field corresponding to other field.
    But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
    I hope you understood my issue.Please revert in case of questions.
    Thanks & Regards,
    Jyothirmayi

  • 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

  • I need to show grouped id and only the max order value for each unique id

    select distinct 
    Table1.id,
    Table1.id +' - '+ Table1.VisitNumber +' : '+ Table1.Priority as UidVisitKey,
    Table1.VisitNumber,
    DATEDIFF(d, [dob],[Visite_dte])/365.25 as Age_On_Visit,
    Table1.Priority,
    Table1.OrderOfVisit,
    Table1.OrderOfVisit + ' - ' + Table1.Notes AS VisitNote, 
    Table1.Visitor_FName,
    Table1.Visitor_SName,
    Table2.dob,
    Table2.sex,
    Table1.Visit_dte,
    into #Temp1
    FROM         Table1 INNER JOIN
                Table2 ON Table1.id = Table2.id
    WHERE Table1.LeaveDate IS NOT NULL 
    and Table1.LeaveDate  between DATEADD(mm,-1,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)) 
    and DATEADD(ms,-3,DATEADD(mm,0,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0))) 
    select #Temp1.id, max(#Temp1.[OrderOfVisit]), #Temp1.VisitNote 
    from #Temp1
    group by #Temp1.id, #Temp1.OrderOfVisit, #Temp1.[VisitNote]
    ORDER BY #Temp1.id
    drop table #Temp1
    ---I need to show grouped id and only the max OrderOfVisit for each unique id, and the VisitNote for each OrderOfVisit
    ----------------need help-------------

    Sounds like this
    select distinct
    Table1.id,
    Table1.id +' - '+ Table1.VisitNumber +' : '+ Table1.Priority as UidVisitKey,
    Table1.VisitNumber,
    DATEDIFF(d, [dob],[Visite_dte])/365.25 as Age_On_Visit,
    Table1.Priority,
    Table1.OrderOfVisit,
    Table1.OrderOfVisit + ' - ' + Table1.Notes AS VisitNote,
    Table1.Visitor_FName,
    Table1.Visitor_SName,
    Table2.dob,
    Table2.sex,
    Table1.Visit_dte,
    into #Temp1
    FROM Table1 INNER JOIN
    Table2 ON Table1.id = Table2.id
    WHERE Table1.LeaveDate IS NOT NULL
    and Table1.LeaveDate between DATEADD(mm,-1,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0))
    and DATEADD(ms,-3,DATEADD(mm,0,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)))
    select id,OrderOfVisit,VisitNote
    from
    select #Temp1.id, #Temp1.[OrderOfVisit], #Temp1.VisitNote,ROW_NUMBER() OVER (PARTITION BY #Temp1.id ORDER BY #Temp1.[OrderOfVisit] DESC) AS Seq
    from #Temp1
    )t
    WHERE Seq = 1
    ORDER BY id
    drop table #Temp1
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to display the max channel value on the report automatially?

    Hi all,
    I have 2 text boxes start and target ready on my report. I need one of my channel minimum value and the other channels max value to dispaly automatically in start and target box respectively.
    How do i go about it?
    Rsh
    Solved!
    Go to Solution.

    Hello Jason,
    There is an easy way to do this, and there is a more involved way to do this. I am hoping the "easy" way will solve your question, so I don't have to think about the solution that involves a little more effort:
    Starting with DIAdem 2010 there is a way to add properties to the legend (see image below) of any axis system. What I did for this example was to simply add the legend for the 2D graph (that's a simple check box in the "Curve and Axis definition" dialog, and then dragged the maximum value of any channel onto the legend. It will automatically add a new column to the legend table and display the maximum (or any other channel property) in the legend. This of course works separately for each axis system on a page.
    Starting with DIAdem 2011 there is a new "Curve Snippet" function that allows to create tables such as the one shown in the image below. Please have a look at the DIAdem 2011 example called "2D Tables as Legend and Legend for Axis System Labeling" to see how this was done, it's a little more effort, but it also adds extra flexibility:
    Do either of these look like a workable solution for you?
    Best regards,
         Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • How do I find the max value of scrollV in AS3?

    I used Ned's answer to get my 3 text fields scrolling together based on the value of one of them. Thanks Ned!
    The other two text fields scroll to match the 'parent' text field, but at the end - as you reach the last scroll position - the other two do not update and the 3 text fields are out of alignment. Its just at the end of the scroll. The rest of the scroll values align. I'm thinking if I can find the max scrollV value, I can force the other two to scroll one last time when that value is reached by the 'parent' text field.

    Thanks Rob! I knew it must be something available somewhere. That should allow me to do the needed calculations. Awesome.

  • Inactive sessions  accumulate exceed the max session

    Hi All,
    once i checked the v$session, always find lots of inactive session.nearly after two month it will exceed the max session value in the init.ora profile.
    I have check the sqlnet.ora profile and the value of expire_time is 10 minuter, while not sure why so many inactive session? and if i need to kill all inactive session?
    Best Regards,
    Chelsea

    INACTIVE users are users not actively running a query, but they are connected to the database.
    If SQL expire time is set, you can verify the logfiles, if users get disconnected because of idle connections.
    For the remainder I agree with the other post.
    Cheers
    FJFranken

  • 11g - job_queue_processes parameter default to 1000 (also the max value)

    Hi,
    I'm just playing with my first installation of 11g (11.1.0.6.0 on Windows XP) and I'm looking through the parameters, default values etc.
    I've noticed that if I create a database without specifiyng a value for job_queue_processes it defaults to *1000* (also the max possible value). Is this normal? A good idea?!! Why have they set the default so high? I would think setting it this high may lead to resource problems (O/S resource problems for example) and that most sites would not need to go anywhere near this high. What does the team think...?
    Regards,
    Ados

    Ados wrote:
    Hi,
    I'm just playing with my first installation of 11g (11.1.0.6.0 on Windows XP) and I'm looking through the parameters, default values etc.
    I've noticed that if I create a database without specifiyng a value for job_queue_processes it defaults to *1000* (also the max possible value). Is this normal? Yes. See http://download.oracle.com/docs/cd/B28359_01/server.111/b28320/initparams102.htm#CHDGECCF

  • How to get the MAX,MIN from the below table...

    Hi,
    Database is SQL2012 R2 Express and I have a table and would like to dig out the MAX,MIN value of a specifiied date (e.g 2014-11-03)
    Thanks

    Nope... It still output more than 1 value on the same date...
    DL-01-BAT 13.00753 13.00753 10/10/2014
    DL-01-BAT 13.01342 13.01342 10/10/2014
    DL-01-BAT 13.02706 13.02706 10/10/2014
    DL-01-BAT 13.03485 13.03485 10/10/2014
    Raw data is
    DL-01-BAT 13.00753 13.00753 10/10/2014 20:00
    DL-01-BAT 13.01342 13.01342 10/10/2014 21:00
    DL-01-BAT 13.02706 13.02706 10/10/2014 22:00
    DL-01-BAT 13.03485 13.03485 10/10/2014 23:00
    You mean after applying my suggestion?
    I dont think so
    See illustration below
    declare @t table
    Item VARCHAR(10), Reading VarChar(50),DateTimeReading DATETIME)
    INSERT @t
    VALUES
    ('DL-01-BAT', 13.00753,'10/10/2014 20:00'),
    ('DL-01-BAT', 13.01342,'10/10/2014 21:00'),
    ('DL-01-BAT', 13.02706,'10/10/2014 22:00'),
    ('DL-01-BAT', 13.03485,'10/10/2014 23:00')
    DECLARE @Date datetime = '20141010'
    SELECT Item,
    MAX(Reading) AS [Max],
    MIN(Reading) AS [Min],
    DATEADD(dd,DATEDIFF(dd,0,DateTimeReading),0) AS [Date]
    FROM @t
    WHERE DateTimeReading >= @Date
    AND DateTimeReading < DATEADD(dd,1,@Date)
    GROUP BY Item, DATEADD(dd,DATEDIFF(dd,0,DateTimeReading),0)
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Max condition value - exceeds while creating a SO

    Hi All,
    I have a requirement which we are trying to meet up by a solution:-
    Requirement:-
    A fund value (e.g. 1,00,000) is to be allocated on a particular spend which is offered to customers (e.g. discounts)
    So as and when the discounts are offered on the customer orders (SO) the funds value should get depleted
    this process goes on and the discounts are offered to the customers, but the total discounts offered till date has reached (98,000), hence when a new order where the discount offered is lets say (5000) it should not allow user to offer it, since it should not go beyond the total fund value i.e. (1,00,000)
    Solution:-
    Setup:-
    A condition type for discount ZCDS is created with "condition update" flag marked
    In the condition records of the above condition --> Additional sales data --> Max condition value we will put the total allowed fund of 1,00,000
    Transactions:-
    Mutliple SO's are created with ZCDS discounts condition types ((1) 30,000 2) 30,000 3) 30,000)
    Now in the cumulative values of the ZCDS condition record shows 90,000 for the above 3 orders
    Now a new SO is being created with ZCDS valuee of 30,000... IT SHOULD NOT ALLOW TO POPULATE THE ZCDS - CONDITION VALUE OF 30,000 IN THE SO, SINCE IT WILL EXCEED THE TOTAL FUND AMOUNT OF 1,00,000 WHICH IS ALREADY ASSIGNED IN THE "MAX CONDITION VALUE"
    ISSUE:-
    I am able to create a 4th SO with 30,000 in ZCDS condition type which is updating the "cumulative values" (1,20,000) in the ZCDS condition records as well
    QUESTION:-
    Can the above scenario met through the solution we have proposed ?
    Will the max condition value of 100000 not restrict the condition value in the SO since it is exceeding it ?
    Please suggest in case i may have to configure setup additional in it
    Appreciate quick replies!
    Jimit Shah

    Hi
    This maximum condition value i have tested some time back
    But my results were quiet different
    In your example for the 4 th order , when i tested system was taking only 10000 ( the balance of the max condition value)
    If we create another order say 5 th order, then  for that condition type ZCDS system was taking ZERO value
    So it was limiting to the maximum of 100000
    But it was allowing us to create N number of orders ( after max condition value was reached )
    For those extra orders system was taking zero value  for ZCDS ( which i think is meaning less)
    When i find time i will test this once again and come back to you
    I tested this once again today and found that once the maximum condition value is reached for the rest of orders system was taking the nett value as blank
    This is the same with my earlier findings
    In your example system will not take it to 120000 if the maximum condition value is set to 100000
    If that is happening then there is problem somewhere
    and in the condition  item details analysis system very clearly  tells that MAX value is reached for that condition
    MAX condition value is working perfectly
    Regards
    Raja
    Edited by: ramanathan raja on Feb 11, 2011 3:56 PM
    Edited by: ramanathan raja on Feb 11, 2011 4:04 PM

  • Does anyone know the max record time in voice memo?

    Hi I am trying to find out what the max record time is for 1 voice memo on an i-phone 4 with 32 gb of ram.
    I can not find it documented any where.
    Thanks
    Mark

    Thanks Ingo2711,
    The pages you suggested point to the local carriers as the only authorized service centers.
    The problem with Etisalat is that they outsourced that service to another company called Technocare.
    That company sent the phone back twice (for the reasons mentioned above) and suggested that I have it fixed at a third party, which I am refusing to do since that will void my warranty. Additionally, they are refusing to give me any thing in writing to that affect.

  • Is there a way to RECORD the mouse as a pointer when recording?

    Is there a way to RECORD the mouse as a pointer when recording a voiceover on a slideshow?  I want to use the mouse as a pointer (I know how to do that live), but the recorded show does not show my motions as I voiced.

    Oh, I see. I don't have Keynote, I've only recorded my screen for other things, so I don't know about that. Maybe someone else can help.

  • What is the max number of records in table

    Hello Friends,
    am using oracle 11g .
    How many records we can store in a table or what is the maximum size of the table . On what factors it depends.
    If the number of records are ever growing , what is the best possible solutiion ?
    thanks/kumar

    There is a limit based on the limit of the ROWID.
    You may find this limit in Oracle documentation.
    From database version 9.0 it is virtually unlimited for us, as it is hardly likely to reach the max value of the ROWID with data we can store now and with the actual speed of our computers (reported to our lifetime).

  • SQL Query to retrieve the All records based on the Max Dates.

    Hello all,
    I am trying to retrieve the newest record based on the date field (  nextDate  ).
    Currently there are only 4 records in the MC_Maintenance table and two in the Machine table.
    Machine table
    MC_id             EquipID          
    1                      0227
    MC_id             EquipID
    2                     0228
    MC_Maintenance table
    Maint_id           MC_id             Next_maint                  
    1                      2                      08/25/2010     
    2                      2                      07/01/2010
    3                      1                      06/11/2010
    4                      1                      07/11/2010
    What I  am trying to accomplish is,
    list the two machines from the Machine table with the MAX(Next_maint) controlling the MC_Maintenance output list
    These are the records that I would like to Display.
    Maint_id           MC_id             Next_maint                  
    1                      2                      08/25/2010
    4                      1                      07/11/2010                 
    Below is the SQL Query
    SELECT
           MC.MC_ID as ID,
            MC.complete_Date as completed,
            MC.next_maint as nextDate,
            MC.maint_notes as Notes,
            MC.facility as Facility,
            M.EquipId,
            M.name as name,
            M.SerialNumber as SN,
            M.dept as dept,
            M.Freq as freq
            From  MC_Maintenance MC, Machine M
            where  MC.MC_ID =  M.MC_ID
    '           USING MAX(nextDate )
    Any ideas would help.
    TJ

    I would have thought that was a simple group by problem?
    SELECT M.EquipID, MC.MC_ID, Max(MC.next_maint)
    FROM MC_Maintenance MC INNER JOIN Machine M ON MC.MC_ID = M.MC_ID
    GROUP BY M.EquipID, MC.MC_ID

  • Query - Filter by a specific dynamic date - Return only the max date record

    Hello experts,
    I'm building a query. In this query I have a filter named validity date. I need to select a record where the max date is less than this filter.
    For example:
    Comp. Code | Plant | Mat. | Cost Type | Valid. Date | Value
    0000000001   00001  0001  xxxxxxxx    12.05.2008   2,00
    0000000001   00001  0001  xxxxxxxx    09.05.2008   1,00
    0000000001   00001  0001  xxxxxxxx    05.05.2008   0,50
    If the user set 13.05.2008 in the filter, the report should return:
    0000000001   00001  0001  xxxxxxxx    12.05.2008   2,00
    If the user set 11.05.2008 in the filter, the report should return:
    0000000001   00001  0001  xxxxxxxx    09.05.2008   1,00
    If the user set 08.05.2008 in the filter, the report should return:
    0000000001   00001  0001  xxxxxxxx    05.05.2008   0,50
    The problem is that the date will be dynamic and I'll need to return just one line for a combination of Company Code, Plant, Material and Cost Type. First of all I would like to know the best way to do it. Do I need to use virtual key figure? If so, anyone could tell me some steps to do it?
    Thanks in advance,
    Helder

    Not Virtual KeyFigure.
    You can achieve this with Restricted KeyFigure with the restriction with CalDay (Variable) which user input while Running the Query. Its more like a Bucket. SAP Delivered Buckets Query is in the below link. Check that query you will understand better about Bucket.
    http://help.sap.com/saphelp_nw04/helpdata/en/40/94af39a3488979e10000000a11402f/content.htm
    If not clear try to Install the BC Query and play with that you will know better.
    Thanks
    Sriram

Maybe you are looking for

  • Date functions in WHERE clause? HELP

    The following two queries are identical except for how I supply the date values in the where clause, yet the first query using the a custom my_date function runs 30x slower than the one using the TO_DATE() function. Both return DATE types...any reaso

  • Embedded Text - Animation problem

    Hi All, I'm having a strange problem with animated text and embedded fonts. The best way to explain is to show you... When I don't embed the font, the problem goes away. It happens in both IE and Firefox and on multiple machines. I've also tried diff

  • In which way i can know that a job is running In background or foreground?

    Hi,    In which way i can know that a job is running In background or foreground? please tell me... or a report is in background or foreground.. Thanks , Arya

  • XML SQL utility

    Hi, When I try to execute this query using XML SQL utility I am getting the following error. I had declared 'XMLGEN & GETXML' as CLOB and tried but got the same error. Advice me. I am struggling to find the solution using XSQL Servlet..but couldn't g

  • How to employ google search in webdynpro java

    hello all im working on sample application how to employ google search in web dynpro. i dont clearly follow the steps im confused what to do after model creation.steps for context mapping and UI binding is not clear kindly help me complete this sampl