How do I make a graph overplot until manually cleared?

I need to prevent the plot from clearing between updates. That is, the previous traces remain on the screen and the new data is drawn on top of it. How can this be accomplished?

Use a chart...
Charts have their own buffer and keep the previous X readings with X being the size of the buffer (adjustable). Graphs do not but often have other properties that makes them better to use than a chart, in such cases you need to make a buffer yourself and feed the graph with all the data in that buffer. Circular buffers are often the best option.
If you are not talking about points but trends and you want to keep the previous trends and just add another plot you'll need to build a 2D array of the plots and feed that array to the graph.
MTO

Similar Messages

  • How can i make a graph y is unmber pasing from UDP port,x is the time stamp.and in the same time this graph can display several numbers to compare.

    how can i make a graph
    y is number(the blue wire)pasing from UDP port,
    x is the time stamp.
    plus in the same time this graph can display several differenr numbers to compare.

  • How can I make a graph using Xcode?

    Hi,
    I'd like to make a graph using Xcode 3.2.5 on an iMac 2009 with Mac OS X 10.6.7. I'm reading temperatures through the serial port (using an USB-serial cable) and I want to show how the temperature increases or decreases along the time. Can anyone help me?
    Thanks.

    history of this question is found here!
    Message Edited by GerdW on 11-26-2007 04:09 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can I make waveform graph and/or excel file with two different dynamic DBL values?

    As the question describes, I have two dbl sources from a load cell and linear actuator (from firgelli). I want to make a load/displacement curve from the force readings from the load cell and the displacement readings from the linear actuator. The load cell outputs an analog signal that can be acquired by a DAQ and the actuator comes in with a board and VI program to control the speed and measure the displacement of the actuator to a sample rate of my choosing. Is there a way that I can make a VI where it continues to collect data and construct the graph I'm looking for?
    Solved!
    Go to Solution.

    A couple points about your application:
    1.  Synchronization.  Since you're ultimate goal is a stress/strain curve, it is vital that your force and displacement data be synchronized appropriately.  If your sampling is beyond a few times a second, this is not really possible without some form of hardware synchronization via either a trigger and/or sample clock.  Two NI DAQ boards can be synchronized this way easily, but it seems you're using 3rd party hardware for one of these processes.  Would need to know more about that board to know what options you have.  You could specify what your resolution is in distance, and how fast the article will be moving, to get an idea of how fast to acquire, and how well you'll need to synchronize the data.  Another option, since it appears each data stream will be sampled on a hardware-timed sample clock, they will be offset in time, but not skewed during the acquisition.  You may be able to identify a feature in the data set common to each and use that to remove the timing offset after the process is completed.
    2.  Display.  To display data during the acquisition process, I usually recommend at least one display that plots vs. time.  Much easier to spot irregularities with the acquisition process that way.  However, if you'd like to also plot force vs. displacement, you can use an XY Graph to plot parametrically. For Example, in your case you would use the Displacement data as the X coordinates, and the Force data as the Y coordinates.
    3.  Saving data to file.  I would recommend using the Save to Spreadsheet File.vi (File IO pallette) to save your data.  If you use a comma as the delimiter, and save the file with a *.csv extension, you will have a file that is easily read into excel.  The standard tab-delimited spreadsheet file is also fine, it will just require an extra step to read it into excel to specify to excel what the delimiter is.
    4.  Batch vs. Real-Time Recording (Data File).  If your process is short (< 30 sec) you may be better off acquiring the data, Storing it locally to the VI (Array - usually maintained in a shift register), and then writing the file with a header (acquisition parameters, test article information, data column headers) and the data all at once in batch mode to the file after the process is finished.  If, however, it is longer than that you would be better off starting a data file with a header and appending the data to the file as you go, so that if something happens during your test, you at least have data up to that point.
    Hope this Helps,
    Kurt

  • How can I make a graph?

    I want to give a swing application x and y parameters and it should then draw a graph for me.
    x and only be positiv and y can be both positiv and negativ.
    I only give x1, y1, x2, y2, x3, y3, etc and it should draw a graph with the given parameter.
    is this possible?`
    and is there any finished code?

    what I already have is this code but here he draws the function x?, but how can I cange it that he only draws the coordinates i give him x1, y1, x2, y2, x3, y3, etc?
    // GraphDemo.java
    import java.awt.*;
    import javax.swing.*;
    public class GraphDemo extends JFrame {
    GraphDemo()
    // super("Resize me!");
    this.setTitle("Frame Title");
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    getContentPane().add(new GraphPane());
    setSize(400,400);
    setVisible(true);
    public static void main(String[] args) {
    new GraphDemo();
    class GraphPane extends JPanel
    final int margin = 8;
    public void paintComponent(Graphics g)
    Dimension d = getSize();
    Rectangle r = new
    Rectangle(margin,margin,d.width-margin*2,d.height-margin*2);
    // background color
    g.setColor(new Color(255,255,255));
    g.fillRect(0,0,d.width,d.height);
    // grid color
    g.setColor(Color.lightGray);
    drawGrid(g,r,16,16);
    // line color
    g.setColor(Color.blue);
    drawFunction(g,r);
    private void drawGrid(Graphics g,Rectangle r,int w, int h)
    for(int y = 0;y <= h;y++) {
    int gy = ntrp(0,h,r.y,r.height,y);
    g.drawLine(r.x,gy,r.width,gy);
    for(int x = 0;x <= w;x++) {
    int gx = ntrp(0,w,r.x,r.width,x);
    g.drawLine(gx,r.y,gx,r.height);
    private void drawFunction(Graphics g,Rectangle r)
    boolean start = true;
    double epsilon = .01;
    double xa = -3.0;
    double xb = 3.0;
    int oldx = 0, oldy = 0;
    for(double x = xa;x <= xb; x += epsilon)
    // just a picturesque
    // sample function
    double y = Math.exp(-(x*x));
    int gx = ntrp(xa,xb,r.x,r.width,x);
    int gy = ntrp(0,1,r.height,r.y,y);
    if(!start) {
    g.drawLine(oldx,oldy,gx,gy);
    oldx = gx;
    oldy = gy;
    start = false;
    // interpolation routine
    private int ntrp(double xa,double xb,int ya,int yb, double x)
    return (int)((x-xa)/(xb-xa) * (yb-ya)) + ya;

  • How do I make hyperlink buttons hide until I want them?

    I have a map with stops on it. I have made each stop a (on relase or Tap) button so that a box shows up on the side with info about that stop.
    Reasonable easy...except i want to put a close button and hyperlinks on this text box. So i have created multiple actions for a button to hide buttons show other buttons etc
    This is where it gets tricky. It seems that if i create a hyperlink button and tell it to be "Hidden until Triggered" it doesnt stay hidden. it is invisible but if i move the mouse over that area the hand curser comes up. i cant have them being acidentally clicked. Is there anything i am doing wrong? There is going to be ALOT of these so i have to get it right now.
    any help will be greatly appreciated.

    Encore does not provide scripting which is what I think may help.
    But it may not, since "hover" implies you are playing back on computer. That won't work even for the workaround used for this by using autoactivate to move from a still to motion menu.

  • My Adobe Acrobat 10 Pro creates PDFs with a graph background.  How do I make the background white?

    My Adobe Acrobat 10 Pro creates PDFs with a GRAPH background.  How do I make the scanned documents have a normal white background?

    This particular forum (sharing and storage) was created to help those transitioning from Photoshop.com to Adobe Revel. I will move your post to the correct forum so that it can get proper attention.
    We also have many other forums relating to other Adobe products at: http://forums.adobe.com.
    Out of curiosity, can you tell me how you found our forum page?

  • How can i make a plot in a 3d graph invisible

    hello all,
    attached is a half-way completed vi which shows how i would make the plot/plots in the 3d graph invisible. unfortunatly i do not know how "item" can refer to the plot i want to make invisible.
    any ideas?
    Solved!
    Go to Solution.
    Attachments:
    remove plot in 3d graph.vi ‏27 KB

    You are almost correct.
    The Item input is a string whose value is the name of the target plot. You can view all the plots names from shortcut menu->"CWGraph3D" group->"Properties" item->"Plots" tab ->"Plots" list.
    Attachments:
    remove plot in 3d graph.vi ‏20 KB

  • How can I make a chart ignore cells until their value is changed from 0?

    In the corresponding table, I used conditional formatting to hide zeros in the highlighted row by conditionally changing the text color to that of the table background. However, the zero value's are still represented in the corresponding chart as you can see in the attached photo . How can I make the chart ignore certain cells only until their values are changed from zero? Thanks in advance!
    Ryan

    Hi Ryan,
    Leave the cells empty until they're needed, or, if the cells' contents are determined by a formula, revise the formula to insert a null string if the value is zero.
    =IF(your formula = 0, "", your formula)
    Regards,
    Barry

  • How to make wave graph restart when the condition of case structure is changed?

    Exp: Condition of case structure a<b ( a: control, b: constant). A wavegraph puts inside a while loop , in True condition (a<b). How can I make the wave graph restart if a is changed?

    Aren't you confusin waveform graph and waveform chart ? If this is the case, you can clear a chart using the History data property node, fed with an empty array.
    Message Edité par chilly charly le 11-08-2007 01:57 PM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Example_BD.png ‏1 KB

  • HT202060 How can I make Activity Monitor show one graph instead of four for MacBook Air?

    How can I make Activity Monitor show one graph instead of four for MacBook Air?

    Learn about OS X: Activity Monitor shows one CPU Usage graph on systems with more than four cores
    Copied and pasted from top of the page.

  • When pressing Ctrl+f to find something in a page the Find box remains open until I close it, in ALL tabs I have in the firefox window. How can I make firefox open the Find box ONLY in the tab I am in?

    When pressing Ctrl+f to find something in a page the Find box remains open until I close it, in ALL tabs I have in the firefox window. How can I make firefox open the Find box ONLY in the tab I am in?

    Firefox 4 and later versions save the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    Use "File > Exit" or "Firefox > Exit" (Mac: "Firefox > Quit Firefox") if you want to restore multiple windows.<br />
    You can use "History > Restore Previous Session" to get the previous session at any time.<br />
    You may need to click the orange/gray Firefox button to see History.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox/Tools > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • Until the most recent update when the autocomplete location bar was selected, it "went" with no further clicking. Now I have to click the refresh arrow. It won't even work with the return. How can I make it work the old easier way?

    Until the most recent update when the url that I wanted in the autocomplete location bar was selected, it "went" with no further clicking. Now I have to click the refresh arrow. It won't even work with the return. How can I make it work the old easier way?

    cor-el, thank you so much. That fixed it, but does this mean I can't use AVG Safe Search.Is there a substitute? I do like the security (hopefully real) that it offers. What now? How do I get out of Safe Mode?
    Sherry

  • How can I make my iPhone keep trying to send a text until it finds service?

    While riding where cell coverage is spotty, I want to be able to reply to an SMS, put my phone in my pack and keep riding. What happens now is, if there is no service, the iPhone gives up and doesn't keep trying to send the message. The next time I stop and check my phone, instead of having a new message, I just have an undelivered warning. Is there a setting I can change to make it keep trying until the SMS is sent?

    No.

  • I have dial-up, and when I delete my browser history, the facebook games refuse to load for MONTHS until magically one day, they decide to open again. How can I make them load right away?

    I am using a gateway laptop, and Windows 7. I use Netzero as my dialup service, using my phone line. I deleted my browser history and cookies, but I left all passwords intact. Whenever I do this, the games on Facebook come up with a LOADING bar, but they hit 100 percent and never actually load. It does this for months, and one day, they magically (Without me changing any settings) decide to load when I click on them. How do I make the games load, and prevent this from happening every time I clear the history?

    I am using a gateway laptop, and Windows 7. I use Netzero as my dialup service, using my phone line. I deleted my browser history and cookies, but I left all passwords intact. Whenever I do this, the games on Facebook come up with a LOADING bar, but they hit 100 percent and never actually load. It does this for months, and one day, they magically (Without me changing any settings) decide to load when I click on them. How do I make the games load, and prevent this from happening every time I clear the history?

Maybe you are looking for