Plot two graphs in same XY graph

Hi
i want to save the graphs which are generated by a Vi into  a file programically  
how this can be done
thanks in advance
augustin
Certified LabVIEW Associate Developer
Solved!
Go to Solution.

Rajaa,
Obviously the XY graph has been constructed using X and Y data. It should be better (faster and memory saving) to use directly these data than to use a property node to retrieve them...
Chilly Charly    (aka CC)
         E-List Master - Kudos glutton - Press the yellow button on the left...        

Similar Messages

  • Plotting two graphs in one single graph

    Hi.  This is my first time using control and simulation.  I want to plot two graphs within a single graph.  It seems that I have to use bundle and build arrays functions but I just do not know how to plot them.  The x points and y points of (2) are just defined by a single set of points included in the array defined.  The x points and y points of (1) are results of another formula, but both plots would fit in the same location of a single graph.  I hope my question is understandable.  I attach part of the model that I want to be plotted.
    Thank you
    Solved!
    Go to Solution.
    Attachments:
    two graphs.JPG ‏26 KB

    Hi,
    You can try something like this. Check the attached VI.
    Regards,
    Nitzz
    (Give Kudos to good Answers and Mark it as a Solution if your problem is Solved)
    Attachments:
    Untitled 3.vi ‏39 KB

  • How to connect mysql database to labview and plot the graph

    Hi all,
     I am doing my final year project about labview. I need to connect my mysql workbench database to labview and plotting two sinwave in same graph. I can already connected my labview to mysql and showing the data in labview table.But I need to plot the two sinwave in on graph according to table data. Eg: table data:      timestamp   wind speed  wind direction
                                                      ​                                                  ​                                                  ​                                            2004-01-01         0.5                 56
                                                      ​                                                  ​                                                  ​                                            2004-01-01         0.6                 60
      The attachemtn vi is about inserting file and plot the graph. And now I  want plotting the sinwave using table data and the  wind speed Y-axis,wind direction Y-axis in both side of my graph and the X-axis is showing the whole day timing like 00:00:00-24:00:00.  Can anybody combine these 2 vi to polting the graph according table data not according to file data.Thanks
    Attachments:
    Mysql.vi ‏11 KB
    Insert File.vi ‏25 KB
    Wind Project.vi ‏24 KB

    Please don't start a new thread. Stick to the original.
    http://forums.ni.com/t5/LabVIEW/How-to-plot-wavefo​rm-or-graph-using-table-database-which/td-p/294036​...

  • Plotting two continuous analog intpus on the same graph.

    Hey,im currently using visual basic 6.0 and Measurement Stdio and want to read in two analog input signals at the same time and plot them on the same graph.Is there any sample code available to look at to carry this out?Or any help on how to go abouts this.
    Cheers

    Hi Dazza,
    The link below takes you to a page which should provide you with what you need. Let me know if you need further help.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E03B56A4E034080020E74861&p_node=DZ52130&p_source=External
    Best regards,
    Peter H.
    Applications Engineer.
    NIUK.

  • Is it possible to plot two curves on the same 3d curve graph?

    Is it possible to plot two or more curves on the same 3d curve graph?
    Thanks

    Yes, just wire different plot numbers to update each curve. All clear?
    LabVIEW Champion . Do more with less code and in less time .

  • How can I plot two sets of data points in 3d graph?

    I am trying to plot two sets of data points in 3d graph. I also need to make a set of data with one color and the other set with a different color. For example, I need to plot 10 (x,y,z) data points in 3d. Maybe 6 points need to be blue, and the other 4 red. Could you tell me how?

    What is your LabVIEW version? (things are a bit different in 8.6).
    Basically, you create multiple instances of the VI that gets placed automatically when you drop the 3D graph and then wire a different number to the plot ID at the bottom.
    You define all the plots (color, style) via the properties dialog.
    Have a look at my example posted here. One plot is "blue dots" and one is a "shaded surface". See how far you get.
    Message Edited by altenbach on 04-23-2009 01:11 PM
    LabVIEW Champion . Do more with less code and in less time .

  • I would like to plot two lines with an xy graph in realtime

    I understand how to plot in real time with an xy graph appending to an array, but I would like to simply put a line so I can see when my first plot crosses a certain value on the y-axis, say at like y=30. So I would like to know how it is you can plot two lines in real time. I'll put in my vi so you can take a look at what I have so far. On my vi the array is shortened to contain only 5 values so as not to take up memory.
    Attachments:
    xygraph.vi ‏47 KB

    Hi,
    I have made certain modifications to your vi so that now it plots two lines with an xy graph in realtime.
    Regards,
    Ankita A.
    Applications Engineer
    National Instruments
    Attachments:
    multiplot_XY_graph.vi ‏55 KB

  • Difference between two graphs

    In the course of my research i have come up up with a problem where , i have two different graphs having the same xy config and the same time scale.What i need is a difference plot the difference of the two graphs.Can anyone please suggest a way to go about it ??
    the basic problem statement is : graph 1 is a cumulative graph (as a result of all factors involved) and graph 2 is a individual graph (representing the contribution of a single graph), the desired output is a cumulative graph without the factor involved in graph2 i.e. a difference graph

    this might help:
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    xydiff.JPG ‏127 KB

  • Need to sync two graphs' X scroll.

    I have an XY Graph plotting lines over an Intensity Graph. If my program runs for long enough I need to be able to X scroll the intensity graph and have the XY graph scroll accordingly so that the two graphs remain in sync. I thought that outputing the x.min and x.max properties from the intensity property node would do it, but the x.min and x.max do not change with scrolling
    All help is appreciated.

    Stephan,
    Attached below is a small example of how to accomplish this. All it does is monitor the first graphs scrollbar and sets the second's to the same location.
    The active X scale property is a zero based index that is used when working with multiple scales. With only one scale, we want to set it to 0 before we try to read or write to a property.
    Regards,
    Matt F
    Keep up to date on the latest PXI news at twitter.com/pxi
    Attachments:
    sync_scales.vi ‏31 KB

  • How can I update single plot in multi plot xy graph?

    Hi all,
    I'm working on an HMI "front" for a larger acquisition/analysis system, that includes continuous performance monitoring of a turbine. The results of the measurements are stored arrays of contour lines, that represents turbine efficiency and guide vane openings. This analysis is all performed in the background. In the HMI, the performance data is loaded from file when the specific "report" is requested, and is plotted in an XY graph. I would like to indicate the current operation point of the machine by using a plot that is a single point. Thus, that point's position among the contour lines indicates the current performance of the turbine. This point is updated once every second, while the performance data remains the same for considerable amounts of time between recalculations (days to weeks). 
    Is there any way of updating the value of a single plot in a multiple plot XY Graph without having to redraw all the plots?
    I've tried using the "Active Plot" property, which doesn't work. 
    My current solution is to keep all the data as input to the executing while loop and replace a subset of the plot array, but that of course requires the entire rewrite every time the operation point plot is updated.
    Best regards,
    Jarle Ekanger, MSc, CLD
    Flow Design Bureau AS
    Solved!
    Go to Solution.

    You cannot redraw a single plot. If you want to update a single plot, you need to retain all plots in a shift regsiter and replace the data of the desired plot. However, your problem seems much simpler than that. To show a single point on a nearly static plot you have several options.
    You can use a cursor that is controlled programmatically (the style can be a point, don't allow drag).
    You can use annotations.
    You can use the "plot images" feature that allows you to use image commands to draw anything on top of a graph.
    None of these ideas require a redraw of any data.
    I think the cursor idea is probably the easiest and most appropriate. Just use a property node with the following properties:
    active cursor
    cursor position x
    cursor position y
    LabVIEW Champion . Do more with less code and in less time .

  • Two Graphs in a single screen

    Hi Experts,
    I want to display two graphs in a single screen. It should be a pie chart.
    Currently I did one pie chart using GRAPH_MATRIX_2D.
    It is working fine.
    But i want to display another PIE Chart within the same screen.
    Can anyone help me sort out?
    Thanks in advance

    Hi Vimal,
    Go throungh the following code. it will help you.
    REPORT Z_3DGRAPH.*structure declaration for performance measurementTYPES: BEGIN OF ty_performance,
          company(15) TYPE c,
          q1 TYPE i,
          q2 TYPE i,
          q3 type i,
          q4 type i,
          END OF ty_performance.*structure declaration for options table
    types : BEGIN OF ty_opttable,
            options(30) TYPE c,
            END OF ty_opttable.*Internal table and work area declarations
    DATA: it_performance TYPE STANDARD TABLE OF ty_performance,
          wa_performance TYPE ty_performance.DATA : it_opttable type standard table of ty_opttable,
           wa_opttable type ty_opttable.*initialization event
    INITIALIZATION.*start of selection event
    START-OF-SELECTION.*clearing the work areas
    CLEAR WA_PERFORMANCE.
    CLEAR wa_opttable.*appending values into the performance internal table
    wa_performance-company = 'Company A'.
    wa_performance-q1      = 78.
    wa_performance-q2      = 68.
    wa_performance-q3      = 79.
    wa_performance-q4      = 80.append wa_performance to it_performance.wa_performance-company = 'Company B'.
    wa_performance-q1      = 48.
    wa_performance-q2      = 68.
    wa_performance-q3      = 69.
    wa_performance-q4      = 70.append wa_performance to it_performance.wa_performance-company = 'Company C'.
    wa_performance-q1      = 78.
    wa_performance-q2      = 48.
    wa_performance-q3      = 79.
    wa_performance-q4      = 85.append wa_performance to it_performance.*appending values into the options internal tablewa_opttable-options = 'P3TYPE = TO'.
    APPEND wa_opttable TO it_opttable.wa_opttable-options = 'P2TYPE = VB'.
    APPEND wa_opttable TO it_opttable.wa_opttable-options = 'TISIZE = 1'.
    APPEND wa_opttable TO it_opttable.*calling the graph function module
      CALL FUNCTION 'GRAPH_MATRIX_3D'
        EXPORTING
          col1      = 'Quarter 1'
          col2      = 'Quarter 2'
          col3      = 'Quarter 3'
          col4      = 'Quarter 4'
           dim1      = 'In Percentage%'
          set_focus = 'X'
          titl      = 'Company Performances'
        TABLES
          data      = it_performance
          opts      = it_opttable
        EXCEPTIONS
          others    = 1.
    Regards,
    Rajesh Kumar

  • Help needed in plotting Line Graph!!!!!!!!!Pls help!!

    Hi, i need help in plotting a simple line graph showing the x&y axis and has to plot 3 different lines in the same graph.I have written a program and i need to implement this graph in it.Is there any tutorial for plotting line graphs,i mean steps included.
    Please help!

    You describe your need, but not where it originates from.
    Is it a programming assignment? If so, I hope this is not your chosen major, as you will fail because you are a non-resourceful plagarist.
    Do you need to simply graph some data? Use an existing package. There are free ones somewhere.
    What do you mean "i have written a program and i need to implement this graph in it"? If you wrote the program, wouldn't you be done?
    Enjoy programming

  • Including scaling information in binary file, which can be plotted in graph

    I need to plot a graph from a from a bin file, I am able to plot the graph using read binary file vi but the scaling is nowhere close to what it needs to be.
    Its in auto scaling mode, if I set the values manually by giving maximum and minimum values the graph disappears,
    I believe it has something to do with some missing header file not included in the binary file as of now.
    Can anyone help , I need to know , how to add header in the binary file so that I include the information of scales or units of measurements of the data which has to be plotted.

    Hi Shrikant,
    you include "header information" the same way as you include "data" in your binary file: You simply write that information to the file...
    When trying to plot "the file" you read both parts (header and data), one after the other!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Legend behavior when switching between plots in graph.

    I am trying to plot two plots on a single XY graph. The user should be able to switch between the individual plots as well as showing them together. I do not use the Plot.Visible property but instead change Plot.Color to transparent to make sure the Y-scale keeps updating also when the plot is hidden. This works fine, but the Curve in the legend disappears for one of the graphs when it is hidden but not for the other one. I guess that the correct behavior is that they disappear but if it would be possible to make them both visible in the legend the entire time this would be desirable. I have made and attached a simplified VI of what I am trying to accomplish.
    Any ideas about what the problem is and how I could solve it?
    Thanks,
    Johan Gustafsson
    Attachments:
    Prototype_Plot_Switch1.vi ‏31 KB

    Hi,
    i'd changed a little bite your code. Cause if you set the line color to transparent, the legend must also be transparent. So, I think that you can't go that way.
    See my approach.
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL
    Attachments:
    Prototype_Plot_Switch1 changedvi.vi ‏24 KB

  • Problem With Plotting a graph

    Hi,
    I need help plotting a graph.
    The situation is .... I have data of speed against time. Data is like this : a truck runs at some speed until 10 o clock. Now the driver changes time of the speed vs. time tracking device back to 9 o clock. Now if I plot this data it becomes a invalid graph as between 9 - 10 I will be having two values for the speed.
    I thought of a solution that when ever a time change occurs I will drop the speed to 0 and again start plotting the graph with next point on the scale of x axis with the new set time ...... Is this possible ? 
    Please help.
    Thanks and regards
    Anirudh

    Hi,
    Here is a photo of what I want to do with the graph.
    Here as the values that i am mappinng on x axis are repeated the graph is not one to one. Now to make it look like a one to one i want to drop it zero at the first 6. the restart the scale after 6 as 5 and continue mapping. Is this possible ?? ?? 
    Thanks and Regards,
    Anirudh.
    Attachments:
    tr1.JPG ‏113 KB

Maybe you are looking for

  • IPhone 3GS Network (AT&T) Connectivity

    Hello. Recently I have been noticing that I cannot send or receive text messages or use any data services at times on my iPhone 3GS. If try to send a SMS or MMS I just get the "Message Send Failure". When try to use data, I simply just cannot connect

  • Client side in a custom Tag

    hello everybody, I need to know how I can execute a javascript in a custom validator Tag without specify it in the Tag but in the ValidatorTag.java and the ValidatorTag.tld. My problem is to render comprehensible JSF for a non-coder so I must code al

  • ALV Quantity problem

    Dear all, Im using REUSE_ALV_Grid and displaying 2 Fields of Qyantity type as editable . On display when i cahnge muy Quantity to '50' and press save tha value is automatically cahnged to '0.50'. Can any one tell me what is the problem

  • Oracle XE storage limit.

    Hi, i developed one schema with 2 tables, the tables have a maximum row size of 330 bytes and the second table has a maximum row size of 92 bytes. If divided for 4.294.967.296 bytes (4GB) bytes for to the maximum size of tables , get 11,59 MB(13.015.

  • ABAP Container Element Hotspot Issue

    Hi Friends I developed a report using container element and added the HOTSPOT functionality for the field Partner Number. Partner number have 4, 5 fields like Sold-to-party,ship-to-party, reseller, end user.While executing this report, some time all