How to make trend mode graph?

I want to make a trend mode. For the trend mode: When the signal  graph reach the biggest x axis ( in panel) , the graph will compress
Attachments:
try_scope.vi ‏15 KB
trend_mode.JPG ‏49 KB

ha noi,
I am a little confused as to what is going on in the VI you posted, but I think I understand what you are trying to achieve based on the visual description and original image you posted.  I will see if I can put together an example that you can adapt for you application, but I'm not totally sure about a few of the finer details.  For example, are you always reading data in a constant chunk size (such as 12 elements per read, as in your explanation picture)?
Also, supposing there is a constant chunk size of 12:
On the first "period" where each bar represents one data point, a chunk is going to add 12 bars to the graph.
When each bar is representing 2 data points, each chunk will add 6 bars.
When bars are being scaled by 4, each chunk will add 3 bars.
But what happens after that?  When we start scaling by a factor of 8, chunk sizes of 12 aren't evenly divisible.  Each chunk represents 1.5 bars of the graph (12 / 8).  So what I was thinking is that you would use the average of the first 8 data points for the first bar, and then the remaining  4 data points to make up a second bar.  When the next chunk of data is read, bars would be recalculated so that there would be 3 bars (24 total data points / 8 = 3 bars).  It would continue this want until the next scaling was made to combine 16 points per bar.
When this happened, things would continued in the same way.  The first chunk would stil only be 12, so they would make up one bar.  After the second chunk there would be 24 data points, so a total of 2 bars (16 in the first bar, 8 in the next).
This method would be fairly scalable I think and wouldn't require a constant chunk size.  The only thing is that all raw data for the second half of the graph would need to be stored with bars recalculated each iteration until the next "divide down" is required.  After being scaled to the first half of graph, the raw data could be discarded and only the bar values for the first half would need to be stored.
So, any further information or clarification would definitely be helpful!
Devin K
Systems Engineering - RTT & HIL

Similar Messages

  • How to make fullscreen mode work using javascript

    1.I want to open the window in fullscreen mode.
    It works fine for internet explorer.
    But in netscape navigator 8.0 as the tab browsing is there
    The menu bar appears on the page.
    That i don't want.
    2. Also when the window opens in full screen mode and if after that
    i press the ctrl+N the new window doesn't open in full screen mode.
    Giving the sample code as below.
    So how to make it work in full screen mode in both cases.
    //The sample code is given
    //check.html
    <HTML>
    <HEAD>
    <TITLE> Full Screen </TITLE>
    <script type="text/javascript">
    <!--
    function myPopup() {
    window.open( "http://www.google.com/", "myWindow", "status = 1, height = 300, width = 300, resizable = 0,fullscreen=yes" )
    //-->
    </script>
    </head>
    <body>
    <form>
    <input type="button" onClick="myPopup()" value="POP!">
    </form>
    <p onClick="myPopup()">CLICK ME TOO!</p>
    </body>
    </HTML>Plz help me.
    Thanx in Advance.
    Reema.

    dont try to use a browser for what its not intended to do.
    A browser is never been intended to work in fullscreen mode. Trying to control the size a browser is displayed in, is considered bad practice and sites that do it are usually very annoying.

  • How to make a simple graph

    This is my first use of Numbers. I made a chart to list equipment for my insurance company. Pretty easy, but I would like to make a graph that shows me the percentage of equipment cost for each of the 5 categories. Here's what I have:
    Column A: Quantity
    (then I list manufacturer, item name, serial number)
    Column D is Category
    Column E is Item Cost
    How can I build a graph that shows the total cost for each category? I bet this is easy.... but it eludes me!
    Thanks!

    Wow, thank you very much for your reply! I think that what you describe is what I did to the the column for the replacement cost for the items. I had =A*F to put the extended cost for each item where A=Quantity and F=Item Cost and G=A*F (total replacement cost). That worked very well to do the math for me.
    But where I'm stuck, and it may be the terminology confusing me is my column E for Category. All of my items are broken up into one of 4 categories. I would like to get the total cost (column G) broken down by the categories in column E. I wonder if this makes sense.
    If I select column E (Category) and choose a chart, it breaks things up by column A which is the quantity. I'm wondering if I were to make column A the category it would automatically break things down by category then. I wish I could post a screen shot. Maybe you understand my verbal description?
    Thanks!

  • 11g how to make time-line graphs ?

    Hi !
    I'm looking for the way how to make make time based or date based graphs ....in bi publisher  11g(ps6) ?
    This is basic functionality but I'm  not able to find it there  ?
    x  = timestamp
    y = value
    x = date
    y =value
    How to do it ?
    Thanks

    A  whole  lot  about  Time  Machine for help with TM problems.  Also you can select Mac Help from the Finder's Help menu and search for "time machine" to locate articles on how to use TM.  See also Mac 101- Time Machine.

  • How to make beautiful intensity graph/chart?

    I have one question for plotting the intensity graph using labview. I have ten bins
    particle data (as attached, the first row is particle size which is y and the x is time, and the z is the particle concentration). I try to plot a intensity graph, but I got a very ugly picture. I use the property node but still don't get a good one. I want to know if the data is sufficient to make a nice plot and how to make it? Thank you very much.
    Attachments:
    06242008-dNdlogDp-flow3.txt ‏27 KB

    Thanks,altenbach. What I mean beautiful picture is something like thisnot include the top line). Anyway, could you put your vi in the post, I use labview7.1, thank you.
    altenbach wrote:
    jzhao wrote:
     I use the property node but still don't get a good one.
    I have no idea what that means! What kind of property??? What did you wire to it????
    An intensity graph needs the point regularly spaced (linear or lograrithmic), while your y mapping is nonlinear. This means you need to re-interpolate for a regular xy grid.
    Unfortunately, I don't know what you mean by "ugly" can you show us an example and tell us in what way it is ugly.
    Here's a quick attempt, remapping the y-axis to 200 equally spaced points. I don't know if you consider this ugly.
    Message Edited by altenbach on 06-28-2008 01:32 AM
    altenbach wrote:
    jzhao wrote:
     I use the property node but still don't get a good one.
    I have no idea what that means! What kind of property??? What did you wire to it????
    An intensity graph needs the point regularly spaced (linear or lograrithmic), while your y mapping is nonlinear. This means you need to re-interpolate for a regular xy grid.
    Unfortunately, I don't know what you mean by "ugly" can you show us an example and tell us in what way it is ugly.
    Here's a quick attempt, remapping the y-axis to 200 equally spaced points. I don't know if you consider this ugly.
    Message Edited by altenbach on 06-28-2008 01:32 AM
    altenbach wrote:
    jzhao wrote:
     I use the property node but still don't get a good one.
    I have no idea what that means! What kind of property??? What did you wire to it????
    An intensity graph needs the point regularly spaced (linear or lograrithmic), while your y mapping is nonlinear. This means you need to re-interpolate for a regular xy grid.
    Unfortunately, I don't know what you mean by "ugly" can you show us an example and tell us in what way it is ugly.
    Here's a quick attempt, remapping the y-axis to 200 equally spaced points. I don't know if you consider this ugly.
    Message Edited by altenbach on 06-28-2008 01:32 AM
    Attachments:
    DMA_N.jpg ‏162 KB

  • How to make a compass graph with Numbers?

    Hi, I did a search for compass graphs and there are a few excel examples, do you know if there are any Numbers, versions, and user friendly ones at that. As I am not a mathematician. Basically I am plotting the frequency of doorway directions to compass points, e.g. N, NNW,NW,W, on a bar chart, but the paper I am comparing it to, has used a compass graph, with the freqency as longer lines eminating from the compass point depending on the number of doorways.
    The directions could be input as degrees if required. Any help appreciated

    Hi Nanouk,
    A compass graph would certainly be appropriate for this data, but that chart type is not available in Numbers.
    You can fake it with a little work, though.
    Arrange the data in pairs as shown. Note that the values in column C are expressed as negatives.
    Create four Stacked Bar charts, one from each data pair. You will need to click the three bar icon that appears at the upper left of the selection to change it from horizontal to vertical. That makes Numbers consider the pair as parts of the same series, and stack the two bars.
    Open the Chart Inspector and for each chart, remove everything except the actual bar, and for now, the Label on the X axis (if this helps identify which graph shows each pair). Set the Y Max to the maximum expected value, Steps to 1 and Y Min to the negative of the Max value. Use the Pen and Fill controls in the Toolbar to set the Fill colour to None and the Line to None.
    Switch to the Metrics Inspector (ruler icon) and set the size of each chart to the same values (I used 0.5 wide and 4.88 high (with Max Y set to 10).
    Drag (or use the arrow keys, with or without the shift key) the four charts into place.
    Add as many circles (from the Shape button—be sure to set Fill to None) as you want and drage them into position.
    I left the bars in the default colours to assist in lining them up correctly. Those colours can be changed by clicking on the individual bar, then using the Fill well.
    Too fiddley? You could just dump the data into NeoOffice and use that to create a Compass chart.
    Here's one produced from the same data set.
    Graph from NeoOffice (same data, in single column, all positive values).
    Regards,
    Barry

  • How to make a chart/graph of text?

    Trying to make a chart of "Causes of Death" from a database of people to see how many people died of each cause. I have a standard database with names listed vertically, and categories (last name, first name, age, cause of death, etc.) horizontally. Please help!

    Additional thoughts.
    You can automate the generation of the list in Table 2, column A.
    Add two columns to the right end of Table 1 (or use existing columns if there are two there already).
    For the example, I'll assume they're columns P and Q.
    In Q2, enter
    =IF(LEN(D)>0,D,"")
    and Fill down the rest of the column. (This copies the contents of column D to a column placed to the right of P, necessary for the VLOOKUP function in the formula used in Table 2.)
    In P2, enter
    =IF(COUNTIF($D$2:D2,D2)=1,MAX($P$1:P1)+1,"")
    and Fill down the rest of the column. (This produces a running count of the distinct causes listed in column D, and marks the first occurrence of each with a serial number.)
    Note that P1 may contain only text or the number zero.
    Note that the function is quite literal—Whiskey and Whisky will be identified as distinct causes and counted separately.
    On Table 2, in cell A2, enter:
    =IFERROR(VLOOKUP(ROW()-1,Table 2 :: P:Q,2,FALSE),"")
    and Fill down the rest of the column. (This looks up the serial numbers in column P of Table 1, and returns the cntents of the cell to the right of each one. The IFERROR part acts as an error trap to avoid error triangles where the formula looks for numbers larger than the highest serial number. "FALSE" in VLOOKUP will appear as "exact-match" in the formula when placed in the table.
    Regards,
    Barry

  • How to make character mode reports in reports 6

    iam finding difficulty in setting the properties for the character-mode reports in reports 6.0!!how do i preview and print character mode reports in landscape mode
    (132*66)
    thanks in advance.
    jitendar

    thanx very much for ur advice sasha !!
    i changed the layout model to character mode but the main problem is that how do i change the pagesize of the screen to 132*66!
    at presenti can view only 80 chars screen!
    is there any answer to it !!! can i change this setting so as to view my 132 column report on the screen first and then print on the printer !!
    thanking in advance,
    jitu :-)

  • How to make Focus Mode appear in Metadata

    The metadata panel in Lr 5.4 shows all the camera information from my Nikon D7100 with the exception of focus mode.  I know that the focus mode data is collected, because I see it when I open a photo file in Nikon View NX 2.  Is there a way to get it to show up in Lightroom?

    Marvin H wrote:
    Is there a way to get it to show up in Lightroom?
    If you just want to view it (on a per photo basis), consider Jeffrey Friedl's Metadata Viewer plugin.
    If you want to use in lib filters or smart collections, my ExifMeta plugin is the only one I know of.
    (internet search for plugin name and author's name if you have it will reveal in short order)
    Rob

  • How to make a line graph from x,y table

    I have a table with x-values in one column and y-values in the next column. I want to make a line plot connecting these x,y values. It would be like a scatter plot with the points connected in order.

    Many people complain that the scatter plot doesn't connect the dots. The problem is,they're right. So you can use the shpes button and select the first item, line. then draw lines between the dots yourself if you want them.
    just before you print, I meant, AFTER your done with getting the data for the chart, and your definately not going to change anything. Because those lines are just object on the page, floating above all the other objects. They will not move to follow the points underneath on the chart.
    Does that help explain better?
    Jason

  • How to make a FFT graph show imaginary multiple of 1x of the speed in LabView

    I am using LabView to analyse vibration of a turbocompressor and show it on a FFT graph. What I want the program to do is to automatically draw lines on the X axis of the graph and show the possible 1x, 2x, 3x ... of the vibration according to the speed of the motor. For example if the speed of the motor is 10 kRPM then 1x is 166.6 Hz and 2x will be 333.33 Hz and so on. It is like having grid lines on the x-axes which will move with speed. Is this possible?
    I am using LabView 2010.
    Solved!
    Go to Solution.

    If you have the sound and vibration suite have a look at the order analyses functions
    one a single fft graph you can simply rescale the axis with the property node (or change the df accordingly)
    Attached a quick shot, where I took the dominat frequency as order 1  (I plotted the data twice .. still room for improvement )
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    2. x scale.vi ‏52 KB

  • How to make the values of a combination graph (bar and line) visible always

    Hi ,
    I am using jdev 11.1.1.6
    i have created a combination graph which has a bar and line.
    The data with respect to bar and graph were only visible when i keep the mouse pointer on it.
    i need to set the values visible always.
    kindly let me know how to make it.
    In pie graph its by default showing the data always.
    regards
    Siva

    Hi Sameh Nassar,
    Thanks for the input, am using the combination graph and i dont have this property added till now.
    i tried adding them manually in source but it didn't work. so I assume that this property is good with pie chart alone.
    please correct me if am wrong.
    This is my combination graph structure.
        <dvt:comboGraph id="comboGraph1"
                          value="#{bindings.testVO1.graphModel}"
                          subType="COMBINATION_VERT_ABS_2Y" shortDesc="Graph 1">
            <dvt:background>
              <dvt:specialEffects/>
            </dvt:background>
            <dvt:graphPlotArea/>
            <dvt:seriesSet markerDisplayed="true">
              <dvt:series lineWidth="0"/>
            </dvt:seriesSet>
            <dvt:o1Axis/>
            <dvt:y1Axis/>
            <dvt:y2Axis/>
            <dvt:legendArea automaticPlacement="AP_NEVER"/>
            <dvt:graphTitle text="Combination graph"/>
            <dvt:o1Title text="x axis"/>
            <dvt:y1Title text="y1 axis"/>
             <dvt:y2Title text="y2 axis"/>
          </dvt:comboGraph>
    regards
    Siva

  • How to get trending line in the graph

    Hi,
    I am using 10g. I have requirement as the following :
    Name Date Metric
    I can have bar graph against Date and Metric. My requirement is to have a trending line, so I calculated slope and regression line y=mx+c but I am not getting the right trend line. I can use regr_slope function to create a view in rpd but it doesnt support date values. Can you guys let me know how to get trending line like same in Excel.
    Thanks

    Hi,
    It's better to do at UI level.
    Can you please check the below link:
    http://kpipartners.blogspot.in/2009/04/linear-regression.html
    Hope this helps.
    Thanks,
    Pramod.

  • HOW TO MAKE THE SAVE BUTTON IN GREY MODE IN QA32 INTIAL SCREEN

    Dear friends,
    How to make the save button , in the tcode QA32  intial screen in GREY MODE.
    As  i don't want the screen variant created by me should not be seen by the user.

    Hi
    There is one option ,You can protect yor varient but not hide it.
    To protect>QA32>Mydefault>Varient Attibute>click on protect varient.
    If you select the field Protect variant, the variant can only be changed by the person who created it or last changed it.
    I hope this can be one of the solution
    Regards
    Sujit

  • How do I make a sinus graph GUI

    Hey! Anyone know how a script that easily makes a sinus graph using GUI. I use Eclipse as editor!

    Using JFreeChart
    import java.awt.Color;
    import java.awt.Dimension;
    import javax.swing.*;
    import org.jfree.chart.*;
    import org.jfree.chart.plot.PlotOrientation;
    import org.jfree.chart.plot.XYPlot;
    import org.jfree.data.xy.*;
    import org.jfree.ui.*;
    public class SinChart extends JFrame
        public SinChart(String s)
            super(s);
            XYDataset xyDataset = createDataset();
            JFreeChart jfreechart = createChart(xyDataset);
            ChartPanel chartpanel = new ChartPanel(jfreechart);
            chartpanel.setPreferredSize(new Dimension(800, 400));
            setContentPane(chartpanel);
        private static XYDataset createDataset()
            XYSeries sinSeries = new XYSeries("Sin");
            XYSeries cosSeries = new XYSeries("Cos");
            for (double x = 0.0; x < 720; x += 10)
                sinSeries.add(x, Math.sin(Math.toRadians(x)));
                cosSeries.add(x, Math.cos(Math.toRadians(x)));
            XYSeriesCollection seriesCollection = new XYSeriesCollection();
            seriesCollection.addSeries(sinSeries);
            seriesCollection.addSeries(cosSeries);
            return seriesCollection;
        private static JFreeChart createChart(XYDataset xydataset)
            JFreeChart jfreechart = ChartFactory.createXYLineChart("Sin Curve Demo", "Angle (Deg)", "Y", xydataset, PlotOrientation.VERTICAL, true, true, false);
            jfreechart.setBackgroundPaint(Color.white);
            XYPlot xyplot = (XYPlot)jfreechart.getPlot();
            xyplot.setBackgroundPaint(Color.lightGray);
            xyplot.setDomainGridlinePaint(Color.white);
            xyplot.setRangeGridlinePaint(Color.white);
            return jfreechart;
        public static JPanel createDemoPanel()
            JFreeChart jfreechart = createChart(createDataset());
            return new ChartPanel(jfreechart);
        public static void main(String args[])
            SinChart sinCosChart = new SinChart("Sin & Cos Curve Demo");
            sinCosChart.pack();
            sinCosChart.setVisible(true);
    }If this is homework then I bet this solution is not acceptable to the person marking the homework!

Maybe you are looking for

  • Customer Workflows Not Working from SRM Inbox

    Hi everyone, We are upgrdaing our EBP v3.5 system to SRM 5.0 (SRM SERVER 5.5 SP 5). We are using integrated ITS and have many bespoke workflows which need to executeable in the SRM inbox via the integrated ITS and ultimately the portal (EP 7.0). We h

  • How can i edit default XML in Poratl?

    How can i edit default XML in Poratl? I want make some change on Discussion.xml,but i can't find it and  i  want Edit it, what should i do? Thank you very much for your Help! Best Regards! Han

  • Web Service issue in eclipse IDE

    Hi, I am trying to execute a code for web service related in eclipse IDE (Plug in environment). when i am trying to debug, It throws class not found exception in plugin environment and its not creating instance for Wsdlparser1. but it is executing fi

  • ServletInputStream error when reading more than once

    I have an application which needs to look at fields in a multipart request in several different places of the code. The first time I look at the request, it works just fine, but every time after that it doesn't. Here is a simplified example of what i

  • Reg; Webi Reporting Queries

    Hi Gurus. 1. How to add 6 months to the current date in Webi report.. 2. My report is having last one year data,  I want to display only one month report from the Sys date.. Regards L k Vepuri