How do i plotting waveforms on wavefrom graph accumulati​vely ?

Hi,
I'm trying to plot waveforms in a single waveform graph accumulatively.
As my program is in a "For Loop", everytime it runs once, it will produce a waveform and display out in the graph.
So if i set the loop to run 30 times, the graph will have 30 waveforms in it. But the problem is that everytime a new waveform is produced, it will replace the previous waveform in the waveform graph.
Even if i loop it for 30 times, the waveform graph will only have 1 waveform(latest) been displayed.
How can i solve it ? I want the graph to display all the 320 waveforms if i loop it for 320 times.
Thanks in advance.

Try using a waveform chart instead of a waveform graph if it's all the same signal and you want to see it appended.
If that's not what you're after, you'll have to be more specific.
Message Edited by Troy K on 03-12-2010 02:44 PM
Troy
CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
Beware of the man who won't be bothered with details. - William Feather
The greatest of faults is to be conscious of none. - Thomas Carlyle

Similar Messages

  • How to show two waveforms on XY-graph?

    Hello,
    i have two array with x and Y-values that are bundled and then displayed in XY Graph.
    How can i show two XY-waveforms on the graph at the same time?
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Wave.jpg ‏48 KB

    Hi one,
    open the context help and move the mouse pointer of the XY graph. Then read the help!
    Btw. you don't create waveforms, you create XY plots…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to obtain plot list from xy graph

    Hi!
    I have a XY Graph and I wnat to get the number of Plots in that Graph. There is no Property for this.
    Anyone knows how to do this?
    Bya
    hmann

    hi
    i don't know, but try it with the "array size" function... a xy-graph is a 1d-array of clusters. in these clusters there are two 1d-array which represent x and y coords. the "array size" function should return the number of plots (clusters) of the xy-graph.... try it and let me know if it works..
    ciao

  • How do I Change the plot waveform colour on a Dynamic Data type Graph?

    I have multiple different plots on different graphs, and I want to set the colours of the different waveforms.
    In order to display the waveforms on different graphs, I switched to Dynamic data type and then split the wire
    according to how many channels I have.
    I can set the graph background colour with a property node, and create cursors of different colours no problem
    using the array of references that I have created, so there is nothing wrong with my array of references or the property node.
    As soon as I try and wire a colour box into the Plot>Plot Colour control, I get error 1055 out of the property node.
    I was wondering if it was an error between the keyboard and the chair, but now I am thinking it is someting more sinister.
    The Error box pops up and can't be dismissed remaining the focus until I run TASKKILL on LabVIEW and terminate it.
    Any ideas on how to achieve my goal would be appreciated.
    (LabVIEW 8.6)
    Solved!
    Go to Solution.

    Hi Sheela,
    It's 1 plot per graph, up to 4 graphs displayed on different tabs.
    Here are some screenshots
    Attachments:
    graph_display.JPG ‏135 KB
    set_Plot_colour.JPG ‏79 KB

  • How can I plot data from excel in a XY graph

    Labview experts,
    I have a really simple problem in labview:
    I have some data in excel: 2 columns with a certain number data. The two columns are related to each other. So I want to plot all the points in a x y graph. Coordinates point 1: (row1,col1) coordinates point 2: (row2,col2)...
    Now i want, in a first step, import this data in labview and draw the X Y graph in labview.
    So the points of the first column on the x axis and the data of the second column on the y axis.
    that's how i do it now: Attachment
    That's only working if i'm using a waveform graph, but i want a XY graph
    Is there somebody with a solution,
    Kind regards,
    Jelle
    Attachments:
    tryout.PNG ‏9 KB

    To setup a plot of XY from dual column data in excel, select the two column including the name header for both column and then select to insert a scatter plot with the points connected by lines and Voila you have a 2 axis plot with x and Y dimensions and including the title for the trace from the column header already formatted for you. If you select more than 2 columns then the first is the X dimension and the remaindre columns all become Y axis traces for multiple plot lines for each column. This is easy folks and basic excel functions for plotting. One the graph is created and displaying the data, clear the data and save as a template. Now when you call the template and stuff the columns of data into the table fields, excel automatically updates the plot and all you have to do after stuffing the data in is save the excel file. Task done. Good luck.

  • How to stack waveform in one graph

    I am trying to stack 107 waveforms in one graph. I need to plot these to its depth (Y Axis is depth). That means the first wave will be plot at Y = 0, the next waveform will be plotted at Y = 0.1 (not 1). The third waveform will be plotted at Y = 0.2 (not 2). How do I do that?

    Do you mean a simple 2D graph? Try this, its a striaght mod of what you get in the Measurement Studio booklet.
    CNiReal64Vector rvecWave;
    CNiGraph m_graph;
    // Creates a sine wave 100 pts long, amplitude 0.09.
    CNiMath:ineWave(rvecWave, 100, 0.09)
    m_graph.Plots.Item(1).PlotY(rvecWave); // Item(1) exists by default.
    // Now add all the other plots.
    for (int i = 2; i < 108; i++)
      m_graph.Plots.Add(); // Adds a new plot.
      m_wave.Scale(1, 0.1); // Adds the offset.
      m_graph.Plots.Item(i).PlotY(m_wave); // Plots the wave.
    -Mike

  • How do you plot multiple curves on the same graph when using a while loop?

    I am writing a program that will plot the IV Output chracterisitcs curves for a MOSFET transistor. I have two sweep variables Vg and Vd. For each Vg valve selected, Vd is swept from its start to stop voltage creating a graph for that Vg valve. Both of the sweeps are done using while loops. Ideally I would like to display all of the Vg plots on the same graph while having the ability to do real-time graphing. Can anyone help me figure this problem out? I have attached my program. Thanks!!
    Tammy
    Attachments:
    outputfin2.vi ‏165 KB

    Hi Tammy & Tica T,
    As far as I see it - this thread is a very bad version of already existing bad version......
    http://forums.ni.com/ni/board/message?board.id=170&message.id=127857
    I expected, that an Applications Engineer from NI knows something about  a Transistor and how an Output characteristic looks like !!  Take a look to a typical Transistor Datasheet ( e.g. n-channel MOSFET) - you will see, that there is no relation of ID vs Time like in your example ( values vs time )  but  IDrain vs VDrain at different VGate's ( no relation to Mr. Bill Gates ).
    Find attached a vi, that in general does what you need - drawing of  curves vs x-axis (XY-graph in use)  - in test_sweep.zip.  And that you geet an impression, how it might be done ...... dynamic Output characteristic of a Transistor with Standard Equipment of a Lab ( Scope + Generator + Power Supply ) find in addition a Frontpanel - picture. One of the interesting points here is - the self-heating effect; visible on ch3 of scope - 5µs Pulse is already a very long time...... This measurement was done in order to compare with our own Transistors......... 
    Hope this helps a little bit to understand, what we are talking about.
    Regards
    Werner
    Attachments:
    test_sweep.zip ‏358 KB
    dynamic Transistor char.png ‏65 KB

  • How do I plot multiple points (scatter) on the same graph?

    Hello,
    I have a graph with a fixed X-axis and an array of Y values which varies. How do I plot these new y values without replacing the previous ones? E.g to have a scatter of new data? Example of shown in Figure 1 below:
    Figure 1: (Note: image was photoshopped to demonstrate goal) 
    Figure 2: Current block diagram, LabVIEW VI:
    Thank you!
    Solved!
    Go to Solution.

    Think about what you are really building. You are building an array of clusters, right? For each element in the array you have a cluster whos content has a value for the X axis and a value for the Y axis. As long as you are not connecting the datapoints in the graph (which you aren't), you can plot the datapoints in any order. If you are building your X portion of the cluster seperately than your Y portion of the cluster, you just have to make sure the indexes do not get transposed somehow.
    Build the lower half of the attached picture, and you will see what I mean. (hopefully)
    Attachments:
    Chart.PNG ‏21 KB

  • How to Generate Event on change in Plot Legend for XY Graph

    Hi,
    I have two XY graphs on the front panel and would like to maintain a common plot legend such that any change in the plot legend affects both graphs.
    Objective: I would like any value change in plot legend to fire an event.
    How do I program that?
    I know of value change event for the graph but am unable to find something specific to the plot legend. Other option is to have the user press a "refresh" button that will fire the event.
    Feel free to share thoughts on other elegant methods to achieve the same objective.
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Hi Sarah,
    Looks like you are talking of exactly what I want!
    I have attached a sample VI to try achieve what I want. But it still has some issues which are:
    1) I am unable to configure a Plot Attribute Change Event. I have used a mouse leave event instead. How does one configure a Plot Attribute Change Event?
    2) Is there no single property which will transfer all the settings of plot legend from one graph to plot legend of another graph? In my sample VI, I have to read each property of the master graph and feed it into the slave graph.
    Kindly note I am using LV FDS 7.1 on Win2000
    Thanks,
    Gurdas
    Message Edited by Gurdas on 03-27-2006 11:51 PM
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu
    Attachments:
    Graph_PlotLegend_Event.vi ‏45 KB

  • How can I plot  a graph in sections???

    Hi
    This is what I am trying to do:
    I have a graph class that uses a double array to plot.. surprisingly a graph. The problem is that the file that I am plotting from is too large to display all of its data at once on the screen.
    What I am trying to do is have a forward and back button that will allow you to display a fixed chunk of data at a time.
    Also does anybody know how to clone a double array????
    Any help would be great...
    Cheers...........

    Read the file.
    Write a funtion to return all values from
    starting from start to end like
    public double[] getData(int start, int end)
    Use the charting tool to plot only the current set of
    values.. Change the start and end parameters according to
    what the user wants.. (forward or backward)
    Try JFreechart... Its an excellent charting tool..

  • How do I plot an array of waveforms?

    The computer on which I am building my VI doesn't have access to the internet, so I can't post any of my code (so I'll use as much detail as possible)
    I am taking DAQ measurements for four devices that come in as (I believe) an array of dynamic data type. I split the signal and I have each channel outputting its own dynamic data type. After a user-specified time interval, a timed while loop will trigger the DAQ to take a measurement and write the data to a file and plot the data. The file writing was easy, but I am stuck on the plotting aspect. 
    What I have: Since efficiency won't be an issue (~15 minute average time delay), I have created a shift register of dynamic data type. Each iteration of the while loop, I append the newly acquired data to an array of dynamic data using the BuildArray function. I need to be able to take this and plot it in a graph, but every time I try it tells me that the dimensions of the source and sink don't match. Also, I need to do this for each of the four sets of data (and put them on the same plot). 
    What can I do to get plottable data from my shift register?
    I cannot open .VI files, so I would really appreciate it if I could get responses in pictures of block diagrams or text. Thanks.
    Solved!
    Go to Solution.

    Hi nc61,
    stay away from DDT (dynamic datatype) and you will be fine. Especially when trying to collect data by building up arrays of DDT (which probably isn't doing what you really want)...
    - Use DAQmxRead to get either arrays of data or waveform(s). Use BuildArray for simple data or waveform functions for waveforms to collect data in shift register. Plotting will be easy with those data!
    - There's the well-known example finder in LabVIEW's help menu. Try it...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • 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

  • Turn off a single plot of a multiple plot waveform graph

    I have a multiple plot waveform graph (4 plots). I want to turn off one of the plots, say plot 2. Is this posible from the graphs property node? The property node seems to only give a reference to plot 0. I am using labview 7.
    Cheers,
    Wayne

    I think you can use "active plot" together with "plot.visible"
    property node to control which one you'd like to display. By default,
    the property node refers to plot 0, but you can change to plot 1 or
    other plots by changing active plot property node. You can search
    "Plot" in LabVIEW Help if you'd like to know details.
    Good luck,
    Jian
    On 18 Feb 2004 03:28:49 GMT, [email protected] (Computerman74)
    wrote:
    >>
    >>I have a multiple plot waveform graph (4 plots). I want to turn off
    >>one of the plots, say plot 2. Is this posible from the graphs
    >>property node? The property node seems to only give a reference to
    >>plot 0. I am using labview 7.
    >>Cheers,
    >>Wayne
    >>
    >>
    >>
    >>
    >>
    >>
    >
    >I would love to know if this is possible. I have been trying to figure i
    t out
    >myself.
    >There is a way to turn a single array off and that is what I am doing for now
    >untill this is possible. The plot is still there but reads zero when tunred
    >off. It would be cool to have the abillty to turn off a single plot.
    >I have tryed all the property nodes with no luck. The answer may be in the
    >array size but I can't seem to control that either.
    >For now you can use wire all 4 channels using the comparison select. Use a
    >constant of 0 And wire up a swtich. When the input is false the output is zero
    >in effect making the plot inactive but it still there.

  • How can I draw two differenct plots at the same graph?

    [I am beginner]
    I have two different set of data which have differenct x-axis values. How can I draw two data at the same plot?
    For example, one data set is
    x y
    1 3.5
    3 2.3
    5 1.3
    8 3.2
    The other
    1 2.3
    2.5 5.4
    4 2.5
    If I use m_graph.plotXvsY two times. But it draw only one graph at the same time.
    Please let me know. Thank you in advance.

    Do you really need the two sets of data on the same plot or is what you really care about is that the two sets of data are in the same graph? If it's the former, then there's not much that you can do since a plot can only contain one set of data. You can append to an existing set of data by calling the corresponding Chart (for example, ChartXvsY) method, but the result is that the plot's data will appear continuous.
    If it's the latter, the way to do this is to add multiple plots to the graph and plot each set of data in a separate plot. For example, go to the Plots tab in the graph's property pages, add another plot, then here's some sample code that demonstrates how to plot the sets of data from your example above:
    double xData1[] = { 1, 3, 5, 8 };
    double yData1[] = { 3.5, 2.3, 1.3, 3.2 };
    CNiReal64Vector xDataSet1(4, xData1), yDataSet1(4, yData1);
    m_graph.Plots.Item(1).PlotXvsY(xDataSet1, yDataSet1);
    double xData2[] = { 1, 2.5, 4 };
    double yData2[] = { 2.3, 5.4, 2.5 };
    CNiReal64Vector xDataSet2(3, xData2), yDataSet2(3, yData2);
    m_graph.Plots.Item(2).PlotXvsY(xDataSet2, yDataSet2);
    Hope this helps.
    - Elton

  • How do I plot bar graph using MStudio.NE​T for VB

    I can not find the FillToBase property in waveformplot object using MStudio 7.0 for VB.NET. How can I plot the bar graph like that in Mstudio 6.0.

    The Measurement Studio .NET WaveformPlot does not currently have an equivalent for CWPlot's FillToBase property. In the meantime, though, you can use the WaveformPlot's custom drawing services to emulate this functionality. For example, if you dropped a new WaveformGraph on a form, you could copy and paste the following code to draw bar graphs on the WaveformPlot:
    Private Sub OnBeforeDrawPlot(ByVal sender As Object, ByVal e As BeforeDrawXYPlotEventArgs) Handles WaveformPlot1.BeforeDraw
    DrawBarGraph(e, 0, Color.BurlyWood, Color.Firebrick)
    End Sub
    Shared Sub DrawBarGraph(ByVal e As BeforeDrawXYPlotEventArgs, ByVal baseYValue As Double, ByVal outlineColor As Color, ByVal fillColor As Color)
    Dim plot As XYPlot = e.Plot
    Dim g As Graphics = e.Graphics
    If plot.HistoryCount > 0 Then
    ' Clip the data to just what will be drawn with the current axis ranges.
    Dim xData() As Double, yData() As Double
    plot.ClipData(xData, yData)
    ' Calculate the screen coordinates of a base y value and the clipped data.
    Dim baseY As Double = CType(plot.MapPoint(e.Bounds, 0, baseYValue).Y, Double)
    Dim points As PointF() = plot.MapData(e.Bounds, xData, yData, False)
    Dim outlinePen As Pen = Nothing
    Dim fillBrush As Brush = Nothing
    Try
    outlinePen = New Pen(outlineColor)
    fillBrush = New SolidBrush(fillColor)
    ' Iterate through the mapped points and calculate the bar, fill it, and outline it
    For i As Integer = 0 To points.Length - 2
    Dim currentPoint As PointF = points(i)
    Dim nextPoint As PointF = points(i + 1)
    Dim barX As Single = currentPoint.X
    Dim barY As Single = currentPoint.Y
    Dim barWidth As Single = nextPoint.X - currentPoint.X
    Dim barHeight As Single = baseY - currentPoint.Y
    g.FillRectangle(fillBrush, barX, barY, barWidth, barHeight)
    g.DrawRectangle(outlinePen, barX, barY, barWidth, barHeight)
    Next
    Finally
    If Not outlinePen Is Nothing Then
    outlinePen.Dispose()
    outlinePen = Nothing
    End If
    If Not fillBrush Is Nothing Then
    fillBrush.Dispose()
    fillBrush = Nothing
    End If
    End Try
    ' Cancel any further drawing since we completely handled the drawing of the plot.
    e.Cancel = True
    End If
    End Sub
    Hope this helps.
    - Elton

Maybe you are looking for

  • [Solved] Atheros Wireless Fails after Update

    After the update to kernel 3.6.37 the wireless on my Macbook pro is close to useless, but used to work very well before. Madwifi was upgraded as well but I suspect another problem. Using WICD there is no wireless at all! With networkmanager the avail

  • Aggregating on a collection object

    Hello! I have coherence caches with classes that have ArrayList properties. Are there better options for me to perform aggregations on coherence side on those Objects part of ArrayList<Object> rather then writing custom aggregator? ChainedExtractor a

  • "Apply Active Content Update" message ONLY in Firefox

    Here's my new website: www.ClampTools.com When I view it in IE it looks great. When I view it in Firefox (like for the Press link) I get this error: This page requires AC_RunActiveContent.js. In Flash run "Apply Active Content Update" in the Commands

  • What the best way to create XML files from JAVA application?

    Hi to all, I need to edit and to create new filex in format of xml. I know to parse, but what would be the best way to do: 1. - Create new file, create like simle text file, or there is some clases that know to do it in more simple way 2.a - Edit XML

  • TPS file is not deleted after FrameMaker creates PDFs via Acrobat 8

    Using FrameMaker 7.2 build 158, and Adobe Acrobat 8, when creating PDF files, the temporary PostScript file (*.tps), which is created before the final PDF, is not deleted after the creation of the PDF is complete. This is a big deal for us because we