Average value for waveform chart

Hello everyone.
Can i make a time interval, where i can measure average value for a waveform chart ?
for example fom 0:30 to 0:45
I have uploadet my VI
Thanks in advance
Oesen
Best regards
Oesen
Solved!
Go to Solution.
Attachments:
Trykmaaling.vi ‏83 KB

Oesen,
When you are displaying data on a chart, the newest data is appears at the right of the previous data. When the chart history buffer is full (default length = 1024), adding a new point deletes the oldest point.  Visually it appears that the data slides to the left as new data is added to the right end.
My question relates to how the user would "tell" the program what data to average. In the image you posted you marked a segment of the data to be averaged.  Suppose the user marks point "A" as the beginning of the segment. While the user is deciding where to put mark "B" additional data is acquired and point "A" disappears because it is beyond the history length.  What does the program do in such a case?   A slight variation is the situation where both "A" and "B" have been marked but some of the data is deleted from the history before the averaging or other processing has begun.
Lynn

Similar Messages

  • How to display value in waveform chart

    dear sir
    i am using labview 7.0 with dsc module for scada.
     now i want to display the difference between two tags value in waveform chart. Also i want to display that difference value on y axis and system date and time on x axis continously. Also if there will change in that tag value then there should be reflection of that value on wavwform chart with system time. Really i am in trouble. please help me.
    falgandha mohire

    Nadim,
    Why would an XY graph be preferable to using a Waveform Chart where the "t0" is the time of the measurement?
    I don't get it.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to update the absolute time value in waveform chart for labview 6i?

    Hey there,
    I'm developing a control system using labview 6i on win 2000 os.I'm receiving the sensor data every minute and i want to display the data on a waveform chart with absolute time scale on x-axes. I'm using the property nodes for the offset, multiplier and maximum values putting them outside the while loop and giving them input using get date/time in seconds function. the problem is that the time doesn't gets updated w/ refernce to the computer time and after a certain period the time shown on x-axes lags by several hours. any advise?

    Posting an example ussually help us nail these types of issues fast.
    I am therfore forced to guess.
    Do you have your code written such that the scale operations occur before the loop?
    The next thing I have to suspect (not being able to see your code) is if your dt is correct. If your dt is larger than what the chart is set for, then the time will fall behind.
    I have included an image showing how the chart can be used to show multiple sample rate plots such that the t0 of the readings are used to control how the readings are displayed. This example uses waveform data types (I believe they were available back in 6i). It should serve as a guide to do what you want.
    I suggest you start by recreating the demo and play with it until you have what
    you will need in your app.
    The beauty of this method is it lets you use the chart to plot signals acquired at different frequecies and plot them all together.
    reply to this answer if you have questions,
    Ben
    Ben Rayner
    Certified LabVIEW Developer
    www.DSAutomation.com
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Wform_demo.bmp ‏427 KB

  • Get max and min values from waveform chart

    Hi all
    Ive got a waveform chart and want to display the max and min value for the graph. How do i get the respective values?? Im using LabView 8.2
    holla
    Attachments:
    Untitled 231_LV80.vi ‏23 KB

    Thanks Mike

  • Cursor legend for waveform chart

    Greetings again. Is there a method to turn on the cursor legend in a waveform chart (like in the waveform graphs)? I'd like to allow a user of my application to be able to select a portion of a chart and have the application report the value plotted.
    I am acquiring data via the Analog In channels of a PCI-6036e at 1500 Hz to plot in real-time. I tried plotting my data with the waveform graph but it only shows the latest readings and does not scroll the data. I know I could build an array and rotate through it as the data comes in but that seems like a lot more effort just to be able to use the cursor controls to highlight data.
    Any ideas? Am I being too brief?
    Thanks-
    -dennis.

    Cursors are only avalaible on graphs, not charts. There was a post on this subject yesterday...
    See http://forums.ni.com/ni/board/message?board.id=170​&message.id=102968&jump=true
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • To more specific class for waveform chart

    Dear All
    In the attached VI diagram the "To more specific class" gives an error messag:
    LabVIEW:  Type mismatch: Object cannot be type casted to the specified type.
    so it can not work for my waveform chart. I think I changed some properties or some thing similar for my chart that can not work with this routine because it works for new instances of waveform charts but whatever I try to find the difference between my waveform chart and a new instance of waveform chart I don't not find any difference.
     Do you have any clue?
    Best regards
    Afshin
    Attachments:
    VI2.JPG ‏59 KB

    Try to use the "Controls[]" and the "ClassName" property instead. See attachment.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    WaveformChart.JPG ‏61 KB
    WaveformChart_85.vi ‏18 KB
    WaveformChart_85_CTL.ctl ‏9 KB

  • Different picture to be displayed for a specific range of values in waveform chart

    Hello there!
    I'm making a VI that is like a rainfall meter reader that displays an image of what will happen with a place with that amount of rain and will display a message (which will show on the string). Here is a picture of the FP.
    The mm of rain control will be the input and it will be displayed in the graph. The Boolean Controls in the other side will light up which is dependent on the value of the input. What I want to do is that I want to display an image (which will show on the Flood Hazard Map tab) and a sentence on a string (which will show on the Additional Announcement tab) for every boolean control. The images and the sentence on the string is different for every boolean control. For example, if the input is 7.5, the Normal Alert LED will light up and at the same time, I want to display an image and a message on a string. Here is the BD.
    I can't run the VI because there are more than one source in the string and in the path part. Also, I don't know what will I put in the False statement in the Case Structure. Also, I'm not really sure if putting the the Case Structure for each is right.
    Help is really appreciated (because this is my problem for almost 2 weeks now). Thank you very very much.
    I really wish to become an Electronics Engineer before I'm 21.
    Been 1 year in LabVIEW but still a beginner.
    Solved!
    Go to Solution.
    Attachments:
    tralala2.vi ‏34 KB

    I haven't the toolkit but I think you juste have to do this and put the good picture (or you juste make a pictures selector, like a table that you can find in the vision fonctions).
    Attachments:
    tralala2 (1).vi ‏28 KB

  • Average value for a Date Field in an OO Alv Grid.

    Hi Abapers.
    I've been searching for some info about averages in OO Alv grid lists but cannot find an answer to what I'm really need. The question is that, for getting an average, a 'C' value must be set in the field DO_SUM of the fieldcatalog structure for a field.
    Now, the problem is that I need the average of a date field (in 'normal' date format). I've tried it several times and read a lot of things but cannot find a real answer: Could it be done the average of a date field (e.g. for dates 01.05.2009, 02.05.2009 and 03.05.2009 the average is 02.05.2009).
    Best Regards.

    Hi,
    It will come along with the standard tool bar.For number fields, you can see it(Mean).

  • Logic - Average value for a particular Customer + Period

    Hello Experts,
    Please help me in the Logic to find out Average for the below scenario:
    This is the Output:
    Customer
    Period
    Payment Timeliness
    Cust-001
    01/97
    -4
    Cust-001
    01/97
    2
    Cust-001
    01/97
    3
    Cust-001
    04/97
    3
    Cust-001
    04/97
    5
    Cust-001
    06/97
    -4
    Cust-001
    07/97
    2
    Cust-001
    08/97
    3
    Cust-002
    09/97
    5
    Cust-002
    09/97
    4
    Cust-002
    10/97
    6
    Cust-002
    10/97
    -2
    Cust-002
    12/97
    -4
    Requirement is:
    Customer
    Period
    Payment Timeliness
    Cust-001
    01/97
    0.333
    Cust-001
    04/97
    4
    Cust-001
    06/97
    -4
    Cust-001
    07/97
    2
    Cust-001
    08/97
    3
    Cust-002
    09/97
    4.5
    Cust-002
    10/97
    2
    Cust-002
    12/97
    -4
    Display the Average of all the Payment Timeliness for a particular Month as shown above.
    My Code is:
    *&      Form  fetch_data
    FORM fetch_data .
      SELECT bukrs
             belnr
             gjahr
             blart
             bldat
             budat
             monat
       FROM  bkpf
       INTO  TABLE g_t_bkpf
       WHERE bukrs EQ '0470'
       AND   gjahr EQ p_year
       AND ( blart EQ 'EZ'
       OR    blart EQ 'DZ' )
       AND   monat IN s_month.
      IF sy-subrc EQ 0.
        SELECT bukrs
               belnr
               gjahr
               augdt
               buzei
               shkzg
               kunnr
               zfbdt
               zbd1t
               zbd2t
               zbd3t
               rebzg
         FROM  bseg
         INTO  TABLE g_t_bseg
         FOR ALL ENTRIES IN g_t_bkpf
         WHERE bukrs EQ g_t_bkpf-bukrs
         AND   belnr EQ g_t_bkpf-belnr
         AND   gjahr EQ g_t_bkpf-gjahr
         AND   kunnr IN s_kunnr.
        IF sy-subrc EQ 0.
        ELSE.
          WRITE:/'No Data Found'.
        ENDIF.
      ENDIF.
    ENDFORM.                    " fetch_data
    FORM display_paystats .
      DATA: l_due_date     TYPE faedt_fpos,
            l_timeliness   TYPE p,
            l_kunnr        type kunnr,
            l_counter      type i,
            l_period       type char5,
            l_tot_timeli   type p.
      IF g_t_bseg IS NOT INITIAL.
        WRITE: /10 'Customer ', 24 'Period ', 35 'Payment Timeliness'.
        WRITE: /10 sy-uline(44).
        LOOP AT g_t_bseg INTO g_wa_bseg.
          CLEAR l_due_date.
          CALL FUNCTION 'NET_DUE_DATE_GET'
            EXPORTING
              i_zfbdt       = g_wa_bseg-zfbdt
              i_zbd1t       = g_wa_bseg-zbd1t
              i_zbd2t       = g_wa_bseg-zbd2t
              i_zbd3t       = g_wa_bseg-zbd3t
              i_shkzg       = g_wa_bseg-shkzg
              i_rebzg       = g_wa_bseg-rebzg
           IMPORTING
             e_faedt       = l_due_date.
          READ TABLE g_t_bkpf INTO g_wa_bkpf WITH KEY
                                              bukrs = g_wa_bseg-bukrs
                                              belnr = g_wa_bseg-belnr
                                              gjahr = g_wa_bseg-gjahr.
          IF sy-subrc EQ 0.
            l_timeliness = g_wa_bkpf-budat - l_due_date.
          ENDIF.
          CLEAR g_wa_paystat.
          g_wa_paystat-kunnr = g_wa_bseg-kunnr.
          CONCATENATE g_wa_bseg-augdt+4(2) '/' g_wa_bseg-augdt+2(2) INTO g_wa_paystat-period.
          g_wa_paystat-timeli = l_timeliness.
          APPEND g_wa_paystat TO g_t_paystat.
          CLEAR : g_wa_bseg, g_wa_paystat.
        ENDLOOP.
        SORT g_t_paystat BY period.
        LOOP AT g_t_paystat INTO g_wa_paystat.
          WRITE:/10 g_wa_paystat-kunnr, 24 g_wa_paystat-period, 35 g_wa_paystat-timeli.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " display_paystats
    Where should I check the condition?
    I thought of assigning the Period / KUNNR in a Variable; then compare from the second record.
    But then how can I skip the check for 1st time inside a Loop?
    Since this is BSEG/BKPF entries; it is slow. So, please suggest some logic that doesn't affect the performance.
    Is it possible to write this logic within BSEG LOOP?
    Appreciate your help.
    Thank you!
    Thanks & Regards,
    Sowmya

    Found out by myself
    Closing the thread.
    SORT g_t_paystat BY kunnr period.
        LOOP AT g_t_paystat INTO g_wa_paystat.
          l_kunnr = g_wa_paystat-kunnr.
          l_period = g_wa_paystat-period.
          l_tot_timeli = g_wa_paystat-timeli.
          IF sy-tabix NE 1.
            READ TABLE g_t_paystat INTO g_wa_paystat1 WITH KEY kunnr  = l_kunnr
                                                               period = l_period.
            IF sy-subrc EQ 0.
              l_counter = l_counter + 1.
              l_tot_timeli = l_tot_timeli + 1.
            ELSE.
              g_wa_paystat-timeli = l_tot_timeli / l_counter.
              MODIFY g_t_paystat FROM g_wa_paystat TRANSPORTING timeli WHERE kunnr  = l_kunnr
                                                                       AND   period = l_period.
              CLEAR:
                l_counter,
                l_tot_timeli.
            ENDIF.
          ENDIF.
        ENDLOOP.
        DELETE ADJACENT DUPLICATES FROM g_t_paystat COMPARING kunnr period.
        LOOP AT g_t_paystat INTO g_wa_paystat.
          WRITE:/10 g_wa_paystat-kunnr, 24 g_wa_paystat-period, 35 g_wa_paystat-timeli.
        ENDLOOP.

  • Are Multiple cfchartseries/seriescolor Values for Bar Chart Possible

    Client wants their reporting bar charts adjusted to show
    green bars when counts are better than 90%, yellow when better than
    80% but less than 90% and red when below 80%. It is possible to
    have multiple series color based upon count values?
    <i>If not, I would recommend this as a future nice to
    have capibility.</i>

    HI Smitha,
    Then try this.
    Create a formula. Inside Just use the Round function to round your Keyfigure.
    Then use this formula to be displayed in the Chart Experts, Data Tab on the Show Value column.
    Let me know if it works.
    Regards,
    Vinaya Paulraj.

  • Display of "Average Values Text in ALV grid"

    Hi
        I use ALV grid to display  the fields from a table. I have 15 columns.  I need to do average for four columns.
    In the field catalog i did a do_sum for those fields.
       When the ALV grid is displayed I get average values for these columns.
    Eg. Let suppose the grid looks like
    Field1           Field2           Field3             Field4     Field5         Field 6.
    vendor1       18                 22                   6            17                28
    vendor1       54                 11                  16           62                28
    vendor1       33                 21                   26          79                18
                        35             18                 16        52             24
      My requirement is I need to display the text "AVERAGE VALUES" . ( I need something like this.)
    Field1                      Field2           Field3             Field4     Field5         Field 6.
    vendor1                   18                 22                   6            17                28
    vendor1                    54                 11                  16           62                28
    vendor1                    33                 21                  26          79                18
    Average values        35             18                16        52             24
    Could someone help me in this?
    Thanks & Regards
    Kavitha

    Hello,
    you can use event subtotal_text of ALV_GRID.
    Regards,
    Pedro Santos

  • 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

  • Average Consolidation for Facts

    Hi
    I have several measures/facts/accounts from source systems which are Average values (for example, average distance travelled). Having done some base modelling, I want to set the consolidation method for these measures/facts/accounts as average, so when the cube calculates the values higher up the dimension hierarchies (ie what the average of the average distance travelled is for the quarter) the values calculate properly.
    I am doing the modelling using Essbase Studio (11.1.1), and there is no option for and 'Average' consolidation method. Any ideas how to accomplish this.
    Note, not all measures/facts/accounts need to be averaged.
    Thanks for any help you can give.
    Matt

    A little out of the box. Those members that need to be averaged add a UDA to them. Also add a member called mbrcount and in your load rule, add a text column with the number 1 and load this to mbrcount.
    Then in your cube, add a dimension with two members input and calculated (you will never need to drill into this dimension. Have input stored and with a tilde. Cave calculated dynamic and qith a + use the formula somthing like
    If(@isuda(accounts,"averageme"))
    input /mbrcnt;
    Else
    input;
    endif

  • Where can I find the moving average value of Project stock

    Dear All
    All my company stock is project stock. For all my Goods Issues with 221 Q, system takes the moving average value for that consumption posting. Where this moving average value can be found?
    Other than MBBS, is there anything else?
    Thanks
    Edited by: srini v on Dec 12, 2009 12:48 PM

    Hi,
    Try MM60
    Regards,
    Pardeep Malik

  • Waveform Chart Y-T Values

    I have a waveform chart plotting Voltage values against time. I have to store both the values into a Spreadsheet file. I am able to store the values on Y axis (vOLTAGE), but not the time values. How cal i do so?

    One way is to build a waveform data type with Build Waveform function, add t0 and dt info, and use the Export Waveforms to Spreadsheet function. The dt, (delta time) should be readily available from the sampling rate of your data acquisition. You could also create an array of time values, append this array to your Y array for a 2D array and use the 2D input of Write to Spreadsheet file. There is a function in LabVIEW called WDT Get Waveform Time Array that shows how to create an array of time values.

Maybe you are looking for

  • Invisible pen drive

    Hi all, I have a 2Gb kingston pen drive that used to be seen normally by my imac. But something happened after one operation of file transfer: the transfer window froze, the transfer stopped and now my pen drive is no longer recognized by the compute

  • Windows 7 Desktop Manager 6.0 will not sync calendar with Outlook

    I just loaded Windows 7 and now I can't get Desktop Manager to recognize Outlook Calendar.  It shows (not installed) next to the Calendar on the sync window. I have uninstalled Desktop software and reloaded and same issue.  I am using a Bold 9700 if

  • OBEE Integration with EPM workspace failed

    Hi, I am trying to integrate EPM with work space and failing. Initally i tested without copying the file and got reg.proerties file not found in ......\9.5.0.0. Then, I cipied reg.properties file in the appropriate folder ....\9.5.0.0 and tried to re

  • How to keep last line together with table?

    Hi guys, I am new to Reports , so please excuse me for probably primitive question. I am creating consolidated invoices report consisting of invoice date + 2 last lines of company signature like Yours, XXYYY Ltd. Depending on number of lines in invoi

  • Adjusting frame to image - linked images

    hi, I have a bunch of images inserted in indesign, linked from an eps file. I have modified the images in illutrator and now updating links I have to modify the frames because the graphics are longer and they don't fit the image frame. I can go one b