Number of Plot setting in XY Graph

Hi all,
Here i struck up with XY Graph. The problem is i need to set the number of plots for XY graph before i am going to start to plot. I searched such kind of property. I couldn't...Is there any possibilities?????.... 

Maybe you should attach a small example VI that explains what you are doing, because xy graphs can take a large variety of inputs. Each plot can take many data forms (array of cluster points, cluster of x and y arrays, complex data, etc.) so we need to know how your data actually looks like. For mutli plots you typically have an array or cluster array of such plots. Changing the number of plots simply involves changing the number of elements (=plots!) in that cluster array and LabVIEW has all the tools to do so. Keep the graph data in a shift register or action engine and dynamically add/remove plots as needed.
Can you explain what you perceive to be the problem?
(see also)
Message Edited by altenbach on 05-14-2009 08:10 AM
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • How do I determine the number of plots on a waveform graph?

    How do I determine the number of plots that have previously been plotted on a waveform graph? I am loading dynamic data from a file. If I convert to an array and size it and there is only one plot, I get the number of data points and I don't know how to tell the difference.

    Usually by reading the graph terminal or a local of it and determining the first or second dimension (not sure which at the moment) size of the resulting 2 dimensional array. If it is a 1 dimensional array you have either only one plot or an array of clusters each representing one plot. But as these data types are determined by compile time, there shouldn't be a problem with this causing ambiguity.
    Rolf K
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • XY-Graph: How to set number of plots in legends depending in number of plots

    Hello,
    i have an xy-graph that gets an array of plots. The size of the input array is can be different.
    Now how can i set via properties the number of plots shown in the plot-legend?
    Thanks

    Hi Thomas,
    there's a property to determine the number of plots shown in the legend…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How do I change the number of plot areas in a Mixed Signal Graph

    How do I *programatically* change the number of plot areas in a Mixed  Signal Graph?  I recognize that the developer can choose to add or  remove a plot area during edit mode but I want to select between 2 or 3 visible plot areas and scale the plot areas appropriately.  Is there a property that tells me how many plot areas (or yscales) there are?  I also need a property that I can write to as to set the number of plot areas available.
    Aside from manually making too many plot areas and then hiding the unneeded plot areas how can I do this?
    Jonathan

    Hello,
    I don't think that is possible - I searched the property and invoke nodes but didn't find something to do that.  This would make a great product suggestion though, which you can submit (it goes directly to R&D) by clicking the word feedback in the bottom left corner of the Contact NI page linked below:
    Contact NI:
    http://sine.ni.com/apps/utf8/nicc.call_me
    Best Regards,
    JLS

  • Xy graph with dynamic number of plots

    I've got an XY Graph with some dynamic number of plots to graph. Once I know this number, I change the LegPlots property and plot the data from an array containing all the plots. The data is displayed correctly, but I get overlapping colors. Say I'm only trying to graph 3 plots. I get three lines (good) but then the three lines have 29 colors (bad), as if it's plotting all possible plots at the data points of the three. The legend updates to only show three (good), but am I missing something else? Does the LegPlot property not govern that, but only governs the legend itself?

    If the problem is the code then I'll take a look at my mess of wire, I just wanted to see if it was the LegPlots property first.
    Here's what it looks like, just in case
    Attachments:
    toomanycolors1.JPG ‏25 KB

  • Programmatically Changing Waveform Graph and the number of plots

    I have a waveform graph that needs to display a variable number of plots based on the number of inputs.  Is there a way to programmatically adjust the number of plots displayed on the waveform graph?

    You need to use the Active Plot input before the Plot Name(s).  Property nodes are read from top to bottom so you can alternate several pairs of ActPlot,Plot.Name;ActPlot,Plot.Name, etc.  Then wire 0,1,2,etc to the ActPlot and your chosen name to the Plot.Name right under it.  Or, use for loops and index the ActPlot input.  See the pic.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013
    Attachments:
    plot names.JPG ‏37 KB

  • Plotting a variable number of curves on different XY Graphs

    Is it possible to plot any number of curves on different XY Graphs?
    In my case, sometimes I need to plot 3 curves, sometimes 4, sometimes 6, etc. Generally, it is between 2 to 6 plots on different XY Graphs.
    How can I go about doing this? 
    What I am thinking so far is to have six XY graphs on the front panel, but somehow programmatically activate the first 2, 3, 4, 5 or however many plots I need to make.
    I am really at a loss here.

    YIKES! Don't make 6 graphs. Just make one graph, and the graph can take an array of clusters, where each cluster element is an array.
    For example, cluster element 1 is the x data array, cluster element 2 is the y data array. Then you build an array of these clusters. See below:
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    graph.png ‏5 KB

  • Hiding plots programatically in XY graphs

    My data acquisition plots five y values along a time axis. There are occasions when the number of plots is less than this due to user set-up of the test. The problem that I have is that the XY graph continues to plot all five values with the empty values drawn on the zero line of the y-axis. Whenever I try to disable the visible property of the plots it doesn't seem to recognise them as active plots and delivers an error code saying 'Invalid property...."etc. The plots can be made invisible only if the user choose to acquire 5 sets of data. Can you help?

    Make sure you are using the order: Set Active Plot -> Set Active Plot's Property
    As in the attached LV 6.1 example
    2006 Ultimate LabVIEW G-eek.
    Attachments:
    Vis_Graph.vi ‏45 KB

  • Variable number of data sets in multiplot

    I would like to be able to overlay sets of spectra to compare intensity variations. I am familiar with the multiplot usage, but my question involves how to allow a variable number of data sets to be overlayed. I have a vi that plots a spectrum after the user presses a "load file" button. I would like to add a boolean that when true would continue to stack spectra on the existing plot, and when false would just plot an individual spectrum each time. How can I accomodate a variable number of data sets in the multiplot?

    Assuming you're using the X-Y graph (the word "multiplot" means little to
    me) then each dataset is a cluster of the X array and Y array for that
    dataset. To put several datasets on the graph you make an array of these
    clusters. This should be very clear in the context help for the X-Y plot
    terminal.
    To add spectra you simply append it to the array of spectra already in the
    plot. The brute force and simplest to understand approach would be to use a
    local to retrieve all the data that's currently in the plot as an array,
    append the new plot to the end and write it all back to the plot, either to
    its terminal or via another local. More elegant would be to buffer your
    array of plots internally within the program and have an array of Booleans
    allowing you to selectiv
    ely show/hide plots, either by omitting datasets
    when writing them to the graph or, to maintain consistency in plot styles,
    writing an empty element to the array in place of hidden datasets, but if
    this is meaningless to you then the first suggestion is perfectly adequate.
    jeffrz wrote in message
    news:101-50650000000800000050150000-982303670000@q​uiq.com...
    > I would like to be able to overlay sets of spectra to compare
    > intensity variations. I am familiar with the multiplot usage, but my
    > question involves how to allow a variable number of data sets to be
    > overlayed. I have a vi that plots a spectrum after the user presses a
    > "load file" button. I would like to add a boolean that when true would
    > continue to stack spectra on the existing plot, and when false would
    > just plot an individual spectrum each time. How can I accomodate a
    > variable number of data sets in the multiplot?

  • 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

  • Multi plot cursor in Mixed Graph

    If Digital waveform and normal waveform graph is plotted in a mixed graph, and if I choose watch all plots(multi plot) in cursor, LabVIEW closes immediately with an error popup dialog
    I have attached the print screen image of that error popup
    Attachments:
    error.JPG ‏188 KB

    Hi Stephen,
               I found a considerable solution to overcome that error.
               Build all the array data at first and then generate digtal
    waveform in single instance.
               ie., With number of numerical array data, build a 2D array of
    numerical data and make a transpose and then generate a waveform.
               It generates number of digital waveform equal to that of the
    column size of 2D Array.
               Do not build generated digital waveforms. This creates an error
    while using multi plot cursor--> watch--> All plots.
               I have attached the modified, bug removed Vi with this message for
    your reference.
    Regards,
    Raja
    Project Engineer
    Soliton Technologies
    www.solitontech.com
    Attachments:
    Mixed Graph Modified without Error.vi ‏25 KB

  • How can I programmatically remove a selection of plots from a waveform graph?

    I have a waveform graph to display a number of plots, which I need to programmatically add and delete to as selections of data are chosen by the user for display.
    I've looked under the VI Server Property node and cannot see anything suitable for adding extra plots, or removing existing plots. I expected to see a Plot Data array variable, with each element containing the data for each of the plots on the graph. There is such an array for the annotations, which I can easily edit by Removing Subset for Array, or Insert into Array, but nothing for the plot data. The Value property is a Variant, which I'm unsure how to handle. Should I be working with this perhaps? Can this be done by creating a Local Variable read node? Or am I missing something simple here??
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

    Hi Mike,
    I was trying to use the Property Node (Value) to read the waveform graph, but I was getting a Variant type back, not a 2D array of DBLs as I expected. Turns out I was passing the graph control reference to a subvi whose control refnum had the Include Type flag unchecked. As a result of this explicit definition, Value was of an uncertain (undefined) type and couldn't be natively provided. It would have had to have been cast into a more specific type to work. Have solved the problem by ensuring all my references are of a strict type, and now (as you recommend) the Property Node (Value) is useful
    Many thanks for the response!
    And many thanks for the demo too! You put that together remarkably quickly!
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • How to chang the number of plots in the plot legend during run time?

    Hi, I am using waveform graph. At run time only i will come to know, how many plots should be plotted in the waveform graph. Based on the number of plots i have to change the plot legend. Is there any method to do the same?

    Maybe something like this?
    The inputs on the left are (from the top)
    your array of data you want to plot (or anything that contains the number of inputs you have)
    next one is an array of colorschemes (maybe you dont need this)
    and the third is an array of booleans that are true if that "channel" should be plotted and false otherwise
    /Anders
    Message Edited by Tohatsu on 01-08-2008 08:56 AM
    Attachments:
    graph.JPG ‏10 KB

  • 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 to change a phone number that was set-up when ipad was being set-up. It was my wife's and not mine. want my number as the main number.

    How to change a phone number that was set-up when you first set Ipad up. Took wife's number instead of mine. Her number is on i-cloud and messaging, face time.

    Goto -settings-iCloud-delete account u will then have to set up a new iCloud account.if u do this it will delete anything u may have backed up in  iCloud on your old account.

Maybe you are looking for