XY graph - multi-plot problem

Hi,
I'm experiencing a problem using a multi-plot xy graph. I have to display 2 plots together, and make them appear and disappear many times during the program running.
But when I close LV and restart it, the second plot (plot1) doesn't appear, and also I lose all the properties I've set for it (name, color,...). If I don't shut down LV everything works well.
What can I do?

Stefano Moret wrote:
When you write about use property nodes, I'm using the "visible" one.
Your suggestion is to try also to set all the properties from there? Maybe it's a good idea, I'll try.
Here are some code snippets I used once to initialize the graph and later on change legend entries depending on user selection.
You can also change the way plots are represented during run time. You always have to start with ActPlot do selct one of the plots.
Good luck

Similar Messages

  • Mixed Graph - Multi Plot Cursor Problem

    If I plot both Analog Waveform and Digital Waveform in a single Mixed Graph, and when I choose watch all plots in cursor legend, LabVIEW crashes with an error message.....
    I have also attached  the Print screen image of that Error
    Attachments:
    error.JPG ‏188 KB

    Jared Boothe,
               I found a 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, error free 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

  • Express XY Graph Multi-plot Cursor point

    Hi,
           In mixed signal graph >> Property >> Cursors Tab >> Enable Allow dragging here if we select Multi-plot, it will show X scale and all Y-scale value in Cursor legend.
    How can I get these same options in Express XY Graph?
    Sivaraj M.S
    CLD

    You need to use a property node and find the curser position and then plot those points in a seperate xy plot (only it will be one point instead of an array). You will still have to plot it as an array of one point.
    Tim
    Johnson Controls
    Holland Michigan

  • Xy graph multi plots

    Hello,
    I have a need to plot a curve on an X-Y graph which is Voltage (Vsd) vs Current (Isd). After the first plot, I need to set another voltage (Vg) to a new level and repeat the plot. I would like to do this without erasing the original plot so I can generate a family of curves. Currently, I am using one trace on the graph which traces to zero at the beginning of the next plot. I need to create an entirely new plot on the graph instead of the original going to zero at the beginning of each plot. I cannot plot all curves at the same time because the voltage (Vg) level will change with each curve. Any suggestions will be appreciated.
    Thanks,
    Mark

    Maybe I misunderstand the question...
    Multiple plots on the XY-graph, means you need to put them in an array.  If you don't have all the graphs at once, then you could simply build the array dynamically.   I.e. you put the array in a shift register, and add elements (measurements) to it as you go.
    See the attached vi for an example.
    Attachments:
    multi-XYgraph.vi ‏11 KB

  • XY graph multi plot live points and colour control

    Hi All,
    I'm trying to do something that should be simple but is proving to be difficult so far. I have had a good look through previous topics and found things similar but not actually what I want.
    In my experiment I scan intensity vs wavelength.
    Ideally I want to be able to:
    1)  run a scan and see the points plotted live.
    2) Then I want the plot to stay on the graph when I run the next scan, etc.
    3) I'd like to do an arbitrary number of scans. e.g. To initiate a scan I press a button, an arbitrary number of times.  
    4) I want to make it so that the current scan is plotted live in one colour (red), and all the previous scans remain plotted in another colour (blue).
    5) Sometimes I may want to clear the graph of all scans and begin again, without having to stop the VI.
    Items 1-3 can be taken care of easily by placing the Build XY graph and XY graph object inside the for loop that runs the scan, and unticking 'Clear data on each call' in the propertes of Build graph. See first attached VI.
    However, at the beginning of a scan it joins the last point of the previous scan to the first point of the next scan.
    The difficult parts are 4 and 5.
    For item 4 you need to build an array of plots, which is easy if you know the number of plots, but here the number is arbitrary. So how do I do that? I've had a go by trying to use Insert Array in different ways but I haven't worked it out. Then hopefully using the XY graph property nodes I can set the colours of the plots.
    For part 5 it is not enough just to use the invoke node = reinitialize to default, and have a button that executes the node. This clears the graph but then when you run the next scan all the previous plots pop up again, indicating that the array that stores the plots is not actually cleared. The second attachment shows how I'm clearing the graph.
    My biggest problem is item 4, and combining item 4 and 5 together.
    Please help. 
    Solved!
    Go to Solution.
    Attachments:
    Current method_Items 1-3.vi ‏18 KB
    Item 5 idea_with no item 4.vi ‏18 KB

    The key is understanding the data type. If you hover over the graph's terminal, you will see that multiple plots are simply an array of single plots. Once you know that, something like this quick modification is fairly easy to come up with. I also added events to make it more readable. Note that this isn't actually a good way of doing things (for instance, you can't abort the drawing in the middle), but it shows the graph concept. You might wish to look at some code like producer/consumer designs.
    As for the colors, you're right that the properties can help you there. I will leave it to you to figure out the exact properties, but when you start a new plot, you will basically want to reset all the others to white and make the new one red.
    Try to take over the world!
    Attachments:
    XY Chart.vi ‏17 KB

  • Errors with multi-plot cursors on Mixed Signal graphs

    Using a Mixed Signal graph, it seems that a multi-plot cursor does not snap correctly if XScale.Multiplier is not set to 1 - it seems to ignore it altogether.  A single-plot cursor on the same graph does not have this problem.  Am I missing something?
    In the attached VI, XScale.Multipler = 0.1, and Cursor 1 (Single-Plot) shows the correct value, but Cursor 2 (Multi-plot) does not.
    Attachments:
    MixedSignalCursor.vi ‏14 KB

    Hello,
    The behavior I see is that the multi-plot cursor which is snapped to plot 0 seems to generally follow an "imaginary plot" which corresponds to a scaled version of plot 0, where the scale factor is the value wired to the XScale.Multiplier property.  I don't think this is desired behavior so I have filed a corrective action request to R&D to have this addressed.  I am sorry for the inconvenience - hopefully you can live with an X-scale multiplier of 1, or the single plot cursors for the time being.  It also takes the offset property similarly, offsetting the "imaginary plot" by whatever value is set there.
    In any event, if this poses a significant problem with additional contingencies, please let me know and I'll be sure to include any updated information in the corrective action request!
    Thank you,
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Multi plot graph - auxiliary curves

    I am in trouble with a multi plot graph. There is a wave chart that I have to plot an auxiliary line when the user clicks on the graphic. I know how to get the initial point and the final point of the auxiliar line. But I don´t know how can I plot this line in the same graph.
    Any ideas, sugestions or examples?
    Thank you in advance

    Speaking only for myself, I am not sure about the nature of your request.
    Could you please post some code showing an example of what you can do now and a jpg of what you desire.
    This may help us help you.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Mixed Signal Graph: Cursor Position Property for Multi-Plot Cursor

    I'm working 6 waveforms on 3 different plot areas in a mixed signal graph in LV2009.  When I try to pull the Cursor.PosY property from my cursor (in which Watch All Plots is True, and is set to Multi-Plot in the graph properties), it returns the value of only the first plot in the cluster of waveforms fed into the graph.  I've tried changing the active plot, active plot area, nothing changes.  I am able to retrieve each value via the cursor legend, but I cannot pull each of those values into another portion of my program.  Also, I noticed that when setting events in an event structure, any events relating to a cursor drag aren't present as they are in a waveform graph.  My workaround is to create an indicator for the Cursor.PosX property and monitor when that value changes, but I feel there should be an easier way.  Any help is appreciated.
    Thank you in advance!

    Jeanius,
       I am not quite sure why the cursor pos in the Wavegraph reference does not change when you change the active plot, but if you grab a reference to the specific cursor and then change the active plot things you receive the expected behavior.
    Ben J.
    National Instruments
    Applications Engineer
    Attachments:
    MODDEDmixed graph cursor ex.vi ‏41 KB

  • LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.

    Hello, LV 8.2.1 notes indicates the following bug fix:
    43SAIR2A  Fixed an issue where LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.
    I am running this version, and still have this behavior.  Is there anything I may be missing, and/or certain circumstances that may still be causing this?
    thanks in advance,
    Darren

    Darren:
    I looked at the CAR ID that you mentioned and the issue has been resolved in LabVIEW 8.2.1. To verify something similar, I ran the attached VI and things worked just fine. Please feel free to send me the steps to follow to reproduce the issue you are running into in 8.2.1.
    Regards,
    Rudi N.
    Attachments:
    MixedGraphs.vi ‏15 KB

  • 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

  • Multi-plot cursor in xy graph

    I am using an XY graph with 5 curves which belong to one of two y axes each. All curves share the same array of x values. I do not like the cursor legend so I want to read out the values of the one cursor programmatically. I can create a multi-plot cursor which watches all the 5 curves but I cannot find how I can read out the 5 corresponding y values of my cursor. Any help?
    Thanks,
       LX (using LV2014)

    Use the cursor index property value and wire that to an index array function for each y array.

  • Cannot draw logarithmic graph in Plot Multi-XY vi

    Hello All,
    I'm trying to use the Plot Multi-XY vi in the picture controls to dynamically draw an X-Y grid on a picture control.  I need the grid to be logarithmically scaled, but when I check the "x log?" and "y log" booleans in the cartesian axis attributes to True, nothing at all shows up in the picture.  If I un-check those options, I get a nice linear grid.  Any help would be greatly appreciated!
    Thanks,
    Jason

    Hi Ravens Fan,
    Here's the VI (taken from an NI Example with just the Cartesian Axis Attributes added and the x and y logs turned to true.  If you switch them to false you get a nice graph, but when set to true nothing shows up at all.
    Thanks,
    Jason
    Attachments:
    XY Multi Plot Log.vi ‏15 KB

  • Problem printing 3D graph surface plots

    I have a LabVIEW vi that I have written that uses 3D graph surface plots.  The front panel and 3D plots look great on the monitor.  However, when I use the file > print option to print a snap shot of the front panel the 3D surface plot graphs are missing.  All of the other controls and indicators print correctly, but the surface plots are missing completely.  Any ideas on what may be the cause?

    Hi JM,
    Do you have Report Generation Toolkit? If so, this looks like it may be related: http://digital.ni.com/public.nsf/allkb/981C98819DBB89FE862569610046CFB8?OpenDocument.
    Let me know if this helps.
    Thanks,
    Dan Richards
    Certified LabVIEW Developer

  • Multi plot cursor

    Dear All,
    I am working on Mixed Signal Graph with Multi plot cursor.
    My target is to move the cursor on X axis time scale and get the y axis values of all the plots.
    i got some ex. on forum but i am facing a typical problem explained as follows:
    By chaning the cursor plot i am getting the y axis values for each plot.
    The problem is that the values are continuously changing of the plot y axis value automatically, ans also the values of the respective plot does'nt match all the time, it changes.
    I have attached a example, in that the values of the respective plot changes every time.
    Am i missing anything, please guide.
    Regards,
    Shrek
    Attachments:
    Mixed Signal Cursor.vi ‏34 KB

    Here is a quick mod .. don't know if it solve your problem, but I get constant values
    Will work only if all plots have the same lenght ...
    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:
    Mixed Signal Cursor.vi ‏27 KB

  • Express xy graph second plot

    Hi , Im trying to get a second plot on the express XY graph.
    I've tried some of the suggestions like building the x array twice ( concatanating ?) but this does not seem to work for me.
    Is there a tutorial on multiple plotting with this beast anywhere?
    I've enclosed a simple vi . Help please!!!!
    dht
    Attachments:
    StraightLine Stats.vi ‏134 KB

    Use the merge signals VI, note that you have to have an equal number of signals for X and Y. I've attached a short example.
    Regards,
    Ryan K.
    Attachments:
    Multi Plot XY Graph.vi ‏89 KB

Maybe you are looking for

  • Yosemite killed FCPX 10.1.3

    Since upgrading my iMac (24-inch, Early 2009, 4GB) to Yosemite (final release), Final Cut Pro (10.1.3) no longer works. I get the following error: "This graphics configuration does not support hardware acceleration, which is required to run Final Cut

  • A slightly different running sum in a hierarchy query

    Hi, I've got stuck with this problem since quite some time, so pls help: I am basically trying to rollup/aggregate values from the lower level nodes to the upper level nodes in a hierarchy. But this aggregate is a bit different than a plain rollup of

  • Sum in words for created document

    Hi Experts, I facing the critical issue which creating purchase order and getting total amount in words format its executing correctly in system default template but its not executing correcly in created Layout such as GBP : 129 One hundred twenty ni

  • Automatic reboots in cluster nodes

    Hi all, I have installed sun cluster 3.3 on intel x86 machine in Vmware. I have 2 nodes. Both the nodes reboot automatically or hang after some time. Can you please tell the cause and how to troubleshoot it. The memory assigned to both the nodes in V

  • Need Flex 2.01 Development at good rates ...

    My Fellow American Programmers, My apologizes to hard working American Flex developers who want work ... but I've created messages on this forum looking for help on a massive project since November of 2006 and I haven't received but one or two credib