Labeling Variable Number of Plots on a Graph?

I'm loading up an unknown number of files and graphing them. Since it can get a bit confusing, I'd like to be able to take a portion of the file name and label each plot on my graph. Since there is a variable number of graphs, I can't seem to work around how to wire the property node. There are several other things I'd like to do with the graph, but dont know if its possible or not such as having a label pop up if your cursor is over a plot.

You are going to have to embed the reference node for the graph into a for-loop like the attached example. File names or portions thereof are built as strings and then added into the property node Plot>>Plot Name.
I'm not sure about how to get a label to pop up if you are over the plot. You might be able to do it with some cursors and associated code.
Attachments:
Graph-Names.vi ‏20 KB

Similar Messages

  • 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

  • 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 .

  • 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

  • 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 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

  • How to make sure plots in xy graph are present?

    Hi community,
    since updating to LabVIEW 2014 this week I have an issue with code that worked previously (or didn't but the problem was unnoticable).
    As shown in the example llb I created to showcase the issue, I'm filling xy graphs with quiete some data and then programatically colour the plots.
    The problem is that if there are too many plots then the property nodes that are to colour the plots thow errors as if the corresponding plots were not present in the graph yet - even though I used a single frame flat sequence structure to try to make sure data is written to the plot before trying to colour them.
    Maybe this would have happened in LabVIEW 2013 too - but the threshold for the number of plots was higher. All I can say is that I observed this with data sets that worked fine in LabVIEW 2013.
    To reproduce simply run "colour the graphs.vi" with sufficiently high values for "numerisch" and "numerisch 2" (50 on my machine may be more on yours). I left the error out terminals of the property nodes unwired so you get taken to the right position when the error occurs.
    Can I somehow check whether all plots are in the graphs yet? That way I could introduce a delay that makes sure I don't try to colour graphs that aren't there yet - regardless of the speed of the target PC.
    Has xy graph behavior changed in LabVIEW 2014? Or maybe its performance?
    Best regards
    Florian
    Solved!
    Go to Solution.
    Attachments:
    colour.llb ‏194 KB

    Florian,
    i cannot run your example as it requires some VIs from a LAVA-library (which i dont have installed).
    Nevertheless, there are some questions i am stumbling about:
    1. Why do you use a local variable rather the terminal to pass all plots to the indicator?
    2. If you place a wait function in the sequence frame which waits longer than the expected time for passing the data, does the error still occur?
    3. Do you run into the error if you enable panel updates before coloring the plots in order to slow coloring down?
    I can imagine that you have a race condition against the UI thread. The local variable (just like the terminal) has a buffer where the data is copied to. The UI thread will retrieve the data as soon as it is ready. I would expect the coloring to require the data be present in the UI thread already (in order to "acknowledge" the plot). So if, for any reason, the UI thread only cought 98% of all plots when you start recoloring, you race against the transfer of the last 2%.. depending on the UI thread execution speed, you can run into the error or maybe not.
    That is the reason why i want you to test for waiting times or slowing down the coloring.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • 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 let the user define the colors for each plots in the graph (I use LabVIEW 7)?

    How to let the user define the colors for each plots in the graph (I
    use LabVIEW 7)?

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • 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

  • VerifyError: Illegal local variable number. Class compiled, but run failed

    Environment:
    Visual Age for Java 3.5.3 (compiles to 1.2.2 class files)
    Runtime is the JRE 1.3.1 plugin.
    I have a class that VA compiles without problem,
    but when I use the compiled jar, the VM fails with
    the error
    java.lang.VerifyError: (class: <completeClassName>, method: <myMethod> signature: (Ljava/lang/Object;)F) Illegal local variable number
         at <rest of stack trace>
    I traced it back to the following piece of code:
    // produces failure
    BlockLabel: do
    if (true) break BlockLabel; // disable block for testing
    while(true==false);
    // produces no failure
    BlockLabel: do
    // if (true) break BlockLabel; // stay with test
    while (true==false);
    I am using these constructs
    with a labeled block,
    the do{..}while(true==false);
    and if(true) break BlockLabel;
    in lots of places in my code
    and it never produced any problems.
    So the VerifyError for "Illegal local variable number" must be due to some other reason. Can anyone shed some light on this? I have scanned the bug parade and have found VerifyErrors, but none with explicit mention of "illegal local variable number".
    Thanks, Sylvia

    How long is the method that this code is in?

  • How can I set a variable number of values in a SQL IN clause?

    Hi,
    How can I set a variable number of values in a SQL IN clause without having to change the text of the SQL statement each time?
    I read the link http://radio.weblogs.com/0118231/2003/06/18.html. as steve wrote.
    SELECT *
    FROM EMP
    WHERE ENAME IN (?)
    But we need the steps not to create type in the system and would there be any other solution if we would like to use variable number of values in a SQL IN clause ?
    We are using JDeveloper 10.1.3.2 with Oracle Database 10.1.3.2
    Thanks
    Raj

    Hi,
    can you please explain why the solution from steve is not the right solution for you.
    regards
    Peter

  • Possible to do variable number of REPLACE in SQL?

    Hello. Using Oracle 10G, R2
    Wondering if it is possible to do a variable number of REPLACE() entirely in SQL in a view.
    input_table.text_column = This (b)is(/b) some (i)text(/i) with (u)formatting(/u) codes
    Note: Using ( and ) to represent < and >
    rows in format_codes_table:
    (b)
    (/b)
    (i)
    (/i)
    (u)
    (/u)
    (p)
    (/p)
    etc. (The number of format_codes is not fixed)
    Desired output: This is some text with formatting codes
    This could be done with a user-defined function and then use that function in a SQL:
    create or replace function remove_format_codes(input_p IN varchar2)
    return varchar2
       v_output   varchar2(2000);
    is
    begin
       v_output := input_p;
       for r1 in (select format_code from format_codes_table)
       loop
          v_output := replace(v_output, r1.format_code);
       end loop;
       return v_output;
    end;
    create or replace view unformatted_output_vw
    as
    select remove_format_codes(input_table.text_column) as unformatted_output
    from input_table
    /I tried this SQL:
    select replace(input_table.text_column, format_codes_table.format_code) as unformatted_output
    from input_table
        ,format_codes_table
    /But it only replaces one format code at a time, and it is not recursive so the output is like this:
    This is(/b) some (i)text(/i) with (u)formatting(/u) codes
    This (b)is some (i)text(/i) with (u)formatting(/u) codes
    This (b)is(/b) some text(/i) with (u)formatting(/u) codes
    This (b)is(/b) some (i)text with (u)formatting(/u) codes
    etc.
    I've google'd Oracle recursive sql, looked at CONNECT BY, LEAD, LAG, MODEL, and I've also looked at a
    Tom Kyte example for varying in lists (http://tkyte.blogspot.com/2006/06/varying-in-lists.html),
    but I can't seem to find a way to replicate the loop in my user-defined function in SQL.
    Anyone think this is possible in SQL? If yes, any hints?
    Thanks

    Hi,
    Regular expressions (introduced in Oracle 10) are great for this:
    SELECT     REGEXP_REPLACE ( text_column
                     , '&lt;'          || -- left angle-bracket
                       '/?'          || -- optional slash
                    '[bipu]'     || -- any one of these characters
                    '>'             -- right angle-bracket
                     )      AS no_tag_text
    FROM    input_table
    ;You had some good ideas: recursive subqueries (new in Oracle 11.2), CONNECT BY and MODEL could also do this job, but not nearly as easily.
    In case you're interested, the following thread uses MODEL to do nested REPLACEs:
    SQL Query
    Edited by: Frank Kulash on May 13, 2010 4:08 PM
    Edited by: Frank Kulash on May 17, 2010 1:02 PM
    Fixed link

  • Using variables in the title of the graph

    Hi Gurus,
    I would like to use - for example a presentation- variable in the title of a graph.
    I assign a value for that variable in dashboard prompt.
    Does anybody know the syntax of using variable in the title of a graph
    (Not in a Title view!)
    Thanks in advance .
    Regards
    Laszlo

    You can reference presentation variables in the following areas :
    Title Views
    Narrative Views
    Column Filters
    Column Formulas
    Conditional Formatting conditions
    Chart scale markers.
    Gauge range settings.
    Static text.
    Direct Database Requests
    Dashboard prompts
    iBot Headlines and text

Maybe you are looking for

  • Recent update to 10.6.8 and now Finder app wont open.  Error 10810

    I cannot open finder after a recent update.  I get one error messages such as The application Finder can't be opened. - 10810. On reboot I get nothing but "finder quit unexpectedly" Can anyone help?  Im pretty much a novice and only recently upgraded

  • OR operator in places query. Can't get it to work.

    I got the follow and neither work. How do I get OR to work? place:terms=word1 OR word2&domain=www.google<i></i>.com&domainIsHost=true&expandQueries=true&queryType=1<br /> place:terms=word1ORword2&domain=www.google<i></i>.com&domainIsHost=true&expandQ

  • Thumbnail size in Browser (Grid) View?

    Greetings, In Browser View, I change the size of the thumbnails to five across. When I close and then reopen Aperture, the thumbnail size has changed to four across. Is this the default size and is there a way to change it to keep it the way you set

  • Apple tv streaming stutter

    Just wondering if anyone has had a problem with there apple TV streaming performance after updating to Yosemite from Maverick.  Now have a audio visual stutter problem when streaming to the apple tv from my iMac. Cheers

  • Unable to create company code setup in Minisap 4.6D

    Hi, I have installed MiniSAP 4.6D on Windows XP successfully that i have got user ID screen and logon and inter SAP Easy Access but i have found only three menu path options.Note the following name's and suggest where can i set all menu access listin