Fast Data Display with Decimation (XY Graph)

There is an excelent NI application note detailing how to efficiently display large amounts of data on a graph by utilizing a decimation algorithm; however, the example code is designed for fixed-rate sampling. Has anyone written code that would be applicable to variable-rate sampling?
Inputs: XY data arrays, graph width
Outputs: reduced XY data arrays
(NI Developer Zone > Development Library > Measurement and Automation Software > LabVIEW > Development System > Optimizing Applications > Managing Memory > Managing Large Data Sets in LabVIEW)

Hi,
That is a very good question. I have not seen an example like that. The main changes that you would need to implement is the way you create you array of min/max. You can use the index of the min and max values to extract a value form the X array. Now you can save that pair into the array in the right order.
I hope this helps. Let me know if you have any questions.
Regards,
Juan Carlos
N.I.

Similar Messages

  • Want date displayed with time on the top banner

    Want date displayed with time on the top banner
    On the top banner, I see signal, network, wifi, time, alarm, Bluetooth and battery. I want to see date and month and year too. How?

    There isn't a way to display the date in a banner..  BUT - The calendar icon does display the date and day. 
    HTH

  • Date display with possible solution not working

    <bean:write name="peter" property="tDate" >
    Hi I am displaying the dates from database using above tag.
    Now the problem is I dont need to display the dates which are sundays
    so let me know how to do this
    thanxs in advance
    possible solution I got as below
    Just add a method to your ActionForm like this:
    code:
    public boolean isDateSunday() {        if (theDate == null) {            return false;        } Calendar cal = Calendar.getInstance(); cal.setTime(theDate); return(cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY); }
    Then in your jsp:
    <logic:equal name="peter" property="dateSunday" value="false" >
    <bean:write name="peter" property="tDate" >
    </logic:equal>
    but
    Actually I am getting dates from database directly .No actionform is involded.
    I have access to only jsp page and in that follwoing code
    <bean:write name="peter" property="tDate" >
    even i tried to put the java code in jsp file but getting error on this line
    property="dateSunday" as there is no getter method for this in bean.even though there is getter method for tdate

    You dont have to put java code in your jsp.
    Add a getter method that returns a boolean value in which you check if the tDate (date property) resolves to a sunday.
    package yourpkg;
    class YourBean{
       private date tDate; //you already have this property and getter/setter methods for it.
       public boolean isSunday() {
         if(tDate== null){
              return false; //or throw an exception
         Calendar cal = Calendar.getInstance();
         cal.setTime(tDate);
         return cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY;
        //other props and methods
    }Then in your jsp,
    <logic:equal name="peter" property="sunday" value="false" >
               <bean:write name="peter" property="tDate" >
    </logic:equal>Note the above will automatically call the isSunday() method on your bean.
    Does that help?
    ram.

  • Choose from list - data display with condition

    Hi,
    I 've developed a form using screen painter, I ' ve attached a choose from list to fill GRPo Number.  In the choose from list the GRPo no. should not display again which once I have selected and saved. 
    Let me have a good solution please and it would be appreciated.
    Thanks & Regards,
    Venkatesan G.

    Hi suresh,
    where did you put this code?....In the choose_from_list event handler?..I've tried a similar solution, before reading your post, but it doesn't work because if i dynamically set the condition for the choose from list i got an empty table.
    i've tried to put my code when beforeaction=true and i have this kind of problem. The difference is that i need to set the filter starting with the value i've entered on the field connected to the choose from list. I put code here, so it's more clear
    If (pVal.Before_Action = True) And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST) Then
                        Dim oCFL As SAPbouiCOM.ChooseFromList
                        Dim oCons As SAPbouiCOM.Conditions
                        Dim oCon As SAPbouiCOM.Condition
                        Dim sItemCode As String
                        oEditText = oMatrix.Columns.Item("V_ItemCode").Cells.Item(pVal.Row).Specific
                        sItemCode = oEditText.Value.ToString
                        oCFL = oForm.ChooseFromLists.Item("CFL_Item")
                        oCons = oCFL.GetConditions()
                        oCon = oCons.Add()
                        oCon.Alias = "ItemCode"
                        oCon.Operation = SAPbouiCOM.BoConditionOperation.co_START
                        oCon.CondVal = sItemCode
                        oCFL.SetConditions(oCons)
                    End If
    My situation is that i type something in V_ItemCode column and after that i press the tab key to open the choose from list.
    Would be ok if i get the SAP standard beahviour too, that doesn't open the choose from list, but fills the field with the first code starting with what you type.
    Thanks in advance

  • Issue with display of decimal places

    Hi,
    In our custom built components we are facing a strange issue with the display decimals  where the data type of an element is "QUAN - Quantity field, points to a unit field with format UNIT".
    If the element has a value of 3000.000 KG the value is displayed as 3000. Where as for an element which has a value 3000.123 KG the same is displayed as it is with the decimals. We tried to resolve the issue by using Text editor or Input field as read only but in vain. The display property in the context are set to default.
    If we change the element data type reference to "Dec - Counter or amount field with Comma and Sign" then all the values are displayed with the decimal places even if decimals are zero.
    As a result we are facing alignment issues for the various quantity related elements displayed on the screen.  To change the underlying data type of the element is a not a solution for us as the data type quan is required for conversion from one unit to another unit.
    Can someone please advise how we could resolve this issue.  We are on NW 7.0 + EHP4 + NW 7.01 SP4, kernel patch level 55 for 7.01
    Regards
    Rohit Chowdhary

    Jameel, Thanks for the answer but this is a not a solution for us. We have around 40-50 webdynpro components and with mutliple views referring to this data element / domain combination. More so the context are bound to database tables / structures . 
    I hope to get a reply from Thomas on possible solution for this. I am not sure if I can open an support ticket for this issue.
    Rohit Chowdhary

  • Display more than one Graph in the same page along with report datails

    Hi,
    I have  to display 3 lines out put along with the 3 GRAPH’s  below corresponding to the 3 lines  in the same page of a the report output. .How do i achieve this?  The function modules like ‘GRAPG_2D’,   ‘GRAPG_3D’ brings the graph in separate pop up, but I want all the 3 graphs in the same page along with the some text above those graphs (ie my report details in 3 lines).
    Could you please let me know how to achieve this?
    Waiting fro your kind suggestions,
    Regards,
    Steve

    Hi,
    Refer to the following code to display graphs in report.
    DATA: BEGIN OF ITAB_DATA OCCURS 0,
    DATANAME(15),
    QUANTITY1 TYPE I,
    QUANTITY2 TYPE I,
    QUANTITY3 TYPE I,
    END OF ITAB_DATA,
    BEGIN OF ITAB_OPTIONS OCCURS 0,
    OPTION(20),
    END OF ITAB_OPTIONS.
    ITAB_DATA-DATANAME = 'Electricity'.
    ITAB_DATA-QUANTITY1 = 55.
    ITAB_DATA-QUANTITY2 = 62.
    ITAB_DATA-QUANTITY3 = 59.
    APPEND ITAB_DATA.
    ITAB_DATA-DATANAME = 'Gas'.
    ITAB_DATA-QUANTITY1 = 35.
    ITAB_DATA-QUANTITY2 = 52.
    ITAB_DATA-QUANTITY3 = 44.
    APPEND ITAB_DATA.
    ITAB_DATA-DATANAME = 'Water'.
    ITAB_DATA-QUANTITY1 = 18.
    ITAB_DATA-QUANTITY2 = 22.
    ITAB_DATA-QUANTITY3 = 19.
    APPEND ITAB_DATA.
    CALL FUNCTION 'GRAPH_MATRIX_3D'
    EXPORTING
    COL1 = 'Jan'
    COL2 = 'Feb'
    COL3 = 'Mar'
    TITL = 'Utility Expenses in US$.'
    TABLES
    DATA = ITAB_DATA
    OPTS = ITAB_OPTIONS
    EXCEPTIONS
    OTHERS = 1.
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • Can't get a dynamic data type and wire (waveform double) to both display on a waveform graph

    Hi,
    I'm teaching myself LabVIEW. I wish to delay a wave form and display it with the non delayed wave form. I used a delay from the examples. The output of the delay is wire (waveform double). The Simulate signal output is dynamic data. My conversion from wire (waveform double) to dynamic does not display on the waveform graph. The VI is attached. Can anyone offer any comment.
    Solved!
    Go to Solution.
    Attachments:
    Three input graph.vi ‏92 KB

    It is displaying just fine.  The display is hidden behind the display of the second signal. Expand the Plot Legend to show all three plots. Then toggle the plot visible property of the second and third plots.
    Lynn

  • Print XY Graph with 600000 data without taking Snapshot of graph

    Hi 
       I want to print a XY Graph with more than 600000 data with word format but the graph shouldn't be the snapshot can any body suggest please 

    A couple points:
    First, just because the data you send to a graph has 600,000 datapoints in it, that doesn't mean that you will see 600,000 values in your graph. Unless you are using a monitor the size of a house, the graph won't have nearly enough resolution to show all the data. The data will get decimated down to the resolution that is available on the graph. If you don't do it, the graph will.
    Second, what do you mean that it shouldn't be a "snapshot"?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Display with #/ data in reporting

    Hi experts,
    One of the field in Quivery Displaying with #/ infant of the value,
    the Actual date :INVIJAY
    But it displays    :#/INVIJAY (wrong display)
    I have checked the hole data flow right from source, RSA3-PSA-InfoObject-Infoset.
    the hole flow is being displyed in rightway like INVIJAY.
    In RSRT also it displayed wrong like #/INVIJAY
    1. what is the solution  for this issue, what I have to do to get like INVIJAY.
    2. when data is not available it displays #, I want empty instead of #
    I am in BI 7.0 environment. in object Properties also everything ok.
    Regards
    Vijay

    Vijay,
    Your infoobject is compounded with any other infoobject and compounded infoobject is blank.
    There are 2 things to do.
    First, load the compounded infoobject so that you will get correct value like XX/VIJAY
    Secondly, if you do not want to see the value of compounding infoobject 'XX' then insert this compounded  infoobject just above the main infoobject in query designer and hide it.
    Let me know if this is not clear to you.
    Thanks,
    Harry

  • I wanted to keep my locked screen display with the time and date from turning off is that possible

    So I enjoy my locked screen display with my chosen picture because it has the time displayed nice and big and its a cool nightlight but the locked screen display/wallpaper/time with date always goes black after 13ish seconds of locking it is there no way to let the locked screen stay on while charging? because it is awesome if it could stay on as a nightlight also so i dont have to press the lock button to see what time because the normal display is ugly am I just being super picky or am I not the only one who agrees or maybe it does exist im just stupid please respond when you can also thanks for reading much appreciated.

    wjosten wrote:
    Again, there is NO WAY to do what you asked: display the time constantly.
    I have a clock app that displays the time constantly on my iPad. I use it as a bedside clock. Many clock apps have the ability to disable autolock just within that app. Whether there is one that lets you pick your own background, I don't know but I wouldn't be surprised if there were, based on the number of clock apps out there. While what I'm suggestion is not precisely what the OP asked (display the system lock screen), it seems it might be a possible workaround.

  • Need help with converting date format to decimal in SSRS expression.

    Hi all,
    I have a decimal data type column with a record in the following format 20150219 --> yyyyMMdd. And I am trying to convert the return value from SSRS date/time parameter to a decimal value.
    The TMDTOP column is the decimal data type with date records in yyyyMMdd format.
    My return parameter is the following:
    =IIf(IsNothing(Parameters!SystemDate.Value),Fields!TMDTSY.Value,CDec(Format(Parameters!SystemDate.Value,"yyyyMMdd"))) 
    When I try to run the report I get the following error:
    Failed to evaluate the FilterValue of the DataSet ‘DataSet1’. (rsFilterEvaluationError)
    I appreciate if anyone can help me on solving this problem.
    Thanks in advance.

    why casting date to decimal here? Can you explain?
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • 0CALWEEK to be displayed in date format with start of week date

    Hello everyone,
    I have a requirement wherein I want to display 0CALWEEK info object in the cube in date format with start of week date in the Bex query report. For example if 0CALWEEK is 23.2005 then in Bex report it should display as 06.06.2005. Anyone got any ideas if we can achieve this without adding any additional info object in cube itself ?
    many thanks,
    Neeraj

    Hi Neeraj,
    There are multiple ways to achieve this.
    1. Virtual characteristics. This approach still requires having a placeholder of 0DATE type in the query, but you don't have to populate it in your load. This could slow down you query as well.
    2. Depending of the frontend you using you can run Excel macro (BEx) or Table exit (Web).
    Please let me now if you need more details.
    Regards,
    Gersh

  • How to display the same data simultaneously on both a graph and a table.

    I am a beginner.
    I would like to display a reference line(?) on dvt:graph
    whenever a row is selected on the related af:table.
    I would like to show the same data,
    simultaneously on both a graph and a table.
    Is it possible?
    I hope for a good hint. ^-^...

    Hi,
    yes. It depends on how the reference line is getting its data. If e.g you can use EL to bind it to ADF bindings then attribute bindings for attributes of the iterator that also renders the table are enough to get the current selection.
    If this is not possible you can follow http://thepeninsulasedge.com/frank_nimphius/2007/07/02/adf-faces-rc-programmatically-executing-a-button-method-using-javascript/ and create a selection listener for the table to programmatically manipulate the graph
    Frank

  • Data Load with HAL Problem with Decimal-delimiter/Language Setting

    Hi,
    we use HAL to load Data into Essbase. The Data is with a . as Decimal Point like in
    1252.25 When i upload these Data with HAL the number becomes 125225.00
    The Locale of my OS is German
    The Locale i specified for the file in HAL is English
    If i change the Locale of my BS to English the Problem disappears but thats annoying.
    Has anybody else such a problem ?
    Is There a Solution for this ?
    Thanks.
    Kevin

    Reading over John's blog, we created a rule file.
    But, it looks the load process using the rule file seems to be hanging? are we missing any thing? We are using comman seperator and having number of lines to skip as zero.

  • Which dangle (internet data card) is compatible for mac book pro retina display with mervicks 10.9.3 in india

    I was using a dangle (wireless portable internet data card) called TATA Photon plus in INDIA since 6 years with a MAC book pro. it was working fine. since I have changed my MAC book pro with retina display with mervicks 10.9.3 its not recognizing the device. service providers say it will not work for 10.9.3. so, my question is which device can work for my purpose ? any body can suggest!!

    Your query should be addressed to the service providers.  They should be able to give you a definitive answer.
    Ciao.

Maybe you are looking for

  • New A03 video driver posted for Venue 11 Pro 7130 - please report any remaining issues here!

    We have posted the updated A03 version of the video driver.   If you are having video problems on your 713x, please update to this latest driver ASAP. http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=3DTCD&fileId=3390560770&o

  • Iphone 4 battery draining quick getting hot till hours

    Hi there, I got a problem with my iPhone. I restored it Yesterday via iCloud and today the battery is draining very quick and its getting hot. No background apps running! I got iStat, it says the workload is always at ~3. A reboot doesn't help. Hopef

  • Issue with availability check

    Hi, We are creating delivery for stock transfer order using customised transactions via ATP check. During ATP check, the system is indeed creating outbound delivery, but with zero quantity. I checked the stock in MMBE, it is showing stock. Also in MB

  • No call or text?

    Both my friend and I have Verizon. Everytime he tries texting me or I try texting him, neither of us receives a message. The same goes with calling eachother. We checked to make sure we have eachothers number correct and they are but our calls and te

  • Want to collect deletion of query in request

    Hi, i want to delete a query form the P, for that need to collet the deletion of a query in a request how can i do that???? Regards Kiran Edited by: kiran kumar on Jan 21, 2009 9:48 PM