Plot xy graph in specific zone

Hi!
I'm having a problem with my XY Graph.
I collect data and show it on the graph where x-axis is between 0 and 100 for example.
Then I have a button that will collect data again but just between 40 and 60 on the x-axis, so what I want to do is:
- After I click the button, The plot between 0 and 39 and the plot between 61 and 100 will remain in the graph and the new data will replace the one that was on the 40 to 60 in x-axis.
How can I do this??? Maybe with two plots???
Any help would be great.
Thanks

EDIT: Solved

Similar Messages

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

  • 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

  • Iam using a table in numbers to plot daily graph lines. If I fill a cell with a text box  at say zero it plots the graph. I can't actually set the cell value until the actual day but the graph plots it at zero when I don't want it to plot anything. Is tho

    I am using a table in Numbers to plot daily graph lines. Mood swings of how I am on the day, i"m a depressive.
    If I fill a cell with a step box at say zero it plots the graph. I can't actually set the cell value until the actual day but the graph plots it at zero when I don't want it to plot anything. Is there a work around. so thatbgraph only plots on the day?

    The answer is (sort of) in your subject, but edited out of the problem statement in the body of your message.
    When you use a stepper or a slider, the value in the cell is always numeric, and is always placed on the chart if that cell is included in the range graphed by the chart.
    But if you use a pop-up menu cell, you can specify numeric or text values in the list of choices for in the menu. Numeric values will be shown on the chart. Text values will not.
    For the example, the values list for the pop-up menu was:
    5
    3
    1
    Choose
    -1
    -3
    -5
    The first pop-up was set to display Choose, then the cell was filled down the rest of the column. Any text value (including a single space, if you want the cell to appear blank) may be used instead of Choose.
    For charts with negative Y values, the X axis will not automatically appear at Y=0. If your value set will include negative values, I would suggest setting the Y axis maximum and minimum to the maximum and minimum values on your menu list, rather than letting Numbers decide what range to include on the chart. Place a line shape across the chart at the zero level, and choose to NOT show the X axis.
    Regards,
    Barry

  • 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

  • How do I add a vertical cursor to a 2-plot xy graph?

    I have a 2-plot xy graph, and I would like to add a vertical cursor that can be dragged to any x position, and have the 2 y values displayed.  How do I do this?

    OK, my problem is deeper than reading cursor position.  My cursor disappears when the VI is first run, never to appear again.  I have the X-axis set up for absolute time, and I think that might have something to do with it. 
    Attachments:
    CC View Data Graph.zip ‏26 KB

  • How do I get the numbers ipad app to plot a graph of dates against values, where the most recent date is on the right of the graph, but the most recent date is at the top rather than bottom of the rows in the table?

    How do I get the numbers ipad app to plot a graph of dates against values, where the most recent date is on the right of the graph, but the most recent date is at the top rather than bottom of the rows in the table?
    Also how can it be a line graph without plotting a circle at each value?
    Thanks this is very frustrating

    Make a copy of the table and produce your Line chart or Bar chart from the copy. Sort the copy into the order you want to see in your chart.
    Alternately you could use a Scatter Chart...
    Jerry

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

  • How to  plot a graph in JSP

    How to plot a graph in JSP

    Hi!
    You can use jfreechart.
    It is a good tool and if you search on Google you can find more info and more web examples (files, .war, ...)
    Bye.

  • Plotting a graph in netbeans

    Hello im using netbeans 4.1 to develop an interface for a project which will display a graph, is this possible? Does anyone know where i can get code on how to plot a graph to get me started?
    Any help would be great!
    Thanks

    Hello,
    You can design your own graph component by hand or you can use [url http://www.jfree.org/jfreechart/index.php]JFreeChart.

  • Plotting a graph in real-time without reading from a file

    Hello there.
    I am trying to plot a graph. I have succeeded in plotting the graph by first writing the data to a text file (.TXT), then reading from that text file.
    However, I feel this method will take up a lot of memory. Thus, I was wondering whether it is possible to plot the graph directly without first writing it to a text file.
    Thanks a million.

    You can use a while loop with a shift register, inside the while loop, put a case structure, and in it, your data aquisition vi. When you get data, use the shift register to append data to the array, using build array (the shift register will go in as an array, and data as an element) just execute the appending state when data is present, and you'll have a real time graph.
    Hope this helps

  • Plotting a graph having data points derived through cumulative functions

    Issue: Couldn't plot a graph that has data set derived through cumulative functions
    Error message: View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 937, message: ORA-00937: not a single-group group function at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    Issue Details:
    I have a repository build with Business model mapping having a couple of logical columns based on cumulative functions. The columns are defined as posted in Re: Support to oracle cumulative functions I successfully created those columns in Business model mapping and Presentation layers. Then I checked in my changes to reflect in OBIEE dashboard / answers. I included those columns in my dashboard along with some other required columns. When I try to plot graph / table I am getting the error message as mentioned.
    I observed the sql query sent to database and found that in second level select clause has some columns included with out 'group by' clause. I have executed the SQL query after adding required group by clause and it gave me some results based on the criteria.
    The SQL query sent by OBIEE to database is:
    select D1.c5 as c1,
         D1.c6 as c2,
         ( ( SUM(SUM(D1.c3) ) OVER () ) - ( SUM( SUM(D1.c4) ) OVER ( ORDER BY D1.c2 desc ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) ) ) as c3,
          ( ( SUM( SUM(D1.c3) ) OVER () ) - ( SUM( SUM(D1.c3) ) OVER ( ORDER BY D1.c2 DESC ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING ) ) ) as c4
    from
         (select T1385.DAY_WID as c2,
                   sum(T1385.PLANNED_LABOR_UNITS) as c3,
                   sum(T1385.ACTUAL_LABOR_UNITS) as c4,
                   T1308.PROJECT_NAME as c5,
                   T1168.DAY_DT as c6
              from
                   W_PROJECT_D T1308 /* Dim_W_PROJECT_D_Project */ ,
                   W_PROJECT_SECURITY_S T5074 /* System_W_PROJECT_SECURITY_S_ProjD */ ,
                   W_ACTIVITY_D T1187 /* Dim_W_ACTIVITY_D_Activity */ ,
                   W_PROJECT_SECURITY_S T5118 /* System_W_PROJECT_SECURITY_S_Actv */ ,
                   W_DAY_D T1168 /* Dim_W_DAY_D_Common */ ,
                   W_ACTIVITY_SPREAD_F T1385 /* Fact_W_ACTIVITY_SPREAD_F_Activity_Spread */ ,
                   W_PROJECT_SECURITY_S T5090 /* System_W_PROJECT_SECURITY_S_ActSpread */
              where  ( T1308.ROW_WID = T1385.PROJECT_WID and T1168.ROW_WID = T1385.DAY_WID and T1308.ROW_WID = T5074.PROJECT_WID and T1187.ROW_WID = T1385.ACTIVITY_WID and T1187.PROJECT_OBJECT_ID = T5118.PROJECT_OBJECT_ID and T1187.ACTIVITY_NAME = 'ActivitySatya8' and T1385.PROJECT_WID = T5090.PROJECT_WID and T5074.PROJECT_SEC_KEY = 1 and T5090.PROJECT_SEC_KEY = 1 and T5118.PROJECT_SEC_KEY = 1 and (T1308.PROJECT_NAME in ('P6PilotPrjSatya2')) )
              group by T1168.DAY_DT, T1308.PROJECT_NAME, T1385.DAY_WID
         ) D1
    order by c1, c2
    {code}
    Any help would be appreciated.
    Thanks,
    Satya                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,
    I have added following code as group by in Answers advanced tab.
    "General - (Project)"."Project Name", "General - (Activity)"."Activity Name", Calendar."Calendar Date", Calendar.DAY_WID
    {code}
    Sql issued shown in Answers advanced tab is
    {code:sql}
    SELECT "General - (Project)"."Project Name" saw_0, "General - (Activity)"."Activity Name" saw_1, Calendar."Calendar Date" saw_2, Calendar.DAY_WID saw_3, Units.SatyaTestRemainingUnits saw_4, Units.SatyaTestAvailableUnits saw_5 FROM "P6 Detailed Performance" WHERE ("General - (Project)"."Project Name" = 'P6PilotPrjSatya2') AND ("General - (Activity)"."Activity Name" = 'ActivitySatya8') GROUP BY "General - (Project)"."Project Name", "General - (Activity)"."Activity Name", Calendar."Calendar Date", Calendar.DAY_WID ORDER BY saw_0, saw_1, saw_2, saw_3
    {code}
    I am getting error even after adding the group by function explicitly from Answers advanced tab. The error message while displaying results in Chart is:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 937, message: ORA-00937: not a single-group group function at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    SQL Issued: SELECT "General - (Project)"."Project Name" saw_0, "General - (Activity)"."Activity Name" saw_1, Calendar."Calendar Date" saw_2, Calendar.DAY_WID saw_3, Units.SatyaTestRemainingUnits saw_4, Units.SatyaTestAvailableUnits saw_5, AGGREGATE(saw_4 BY saw_0), AGGREGATE(saw_5 BY saw_0) FROM "P6 Detailed Performance" WHERE ("General - (Project)"."Project Name" = 'P6PilotPrjSatya2') AND ("General - (Activity)"."Activity Name" = 'ActivitySatya8') GROUP BY "General - (Project)"."Project Name", "General - (Activity)"."Activity Name", Calendar."Calendar Date", Calendar.DAY_WID ORDER BY saw_0, saw_1, saw_2, saw_3
    I am getting the following error, while displaying the results in a Table
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42020] GROUP BY clause, [Dim - Project.Project Name, Dim - Activity.Activity Name, Dim - Date.Calendar Date, Fact - Activity Spread.DAY_WID], is inconsistent with the projected columns in the SQL query request. (HY000)
    SQL Issued: SELECT "General - (Project)"."Project Name" saw_0, "General - (Activity)"."Activity Name" saw_1, Calendar."Calendar Date" saw_2, Calendar.DAY_WID saw_3, Units.SatyaTestRemainingUnits saw_4, Units.SatyaTestAvailableUnits saw_5 FROM "P6 Detailed Performance" WHERE ("General - (Project)"."Project Name" = 'P6PilotPrjSatya2') AND ("General - (Activity)"."Activity Name" = 'ActivitySatya8') GROUP BY "General - (Project)"."Project Name", "General - (Activity)"."Activity Name", Calendar."Calendar Date", Calendar.DAY_WID ORDER BY saw_0, saw_1, saw_2, saw_3
    Thanks,
    Satya                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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

  • Plot xy graph

    Hi I am just making a simple simulation model in which a result of a formula is the acceleration.  This result I plot it against time.  By integrating the acceleration I obtain velocity and by integrating the velocity I obtain distance.  Those last results i plot them against time.  However, when I tried to plot distance vs. velocity, it looks like a get a graph of distance against time.  What would be the correct functions to be used to plot this correctly thanks.  The first picture attached shows a view of part of the model and the second pictures shows the results of the graph that I getting.  The graph that I need is taking correctly the y axis units but the x units are incorrect, it seems like it is just plotting against time. 
    Thank you
    Solved!
    Go to Solution.
    Attachments:
    plot xy graph.JPG ‏24 KB
    graphs.JPG ‏34 KB

    Hi,
    You can use a bundly function to plot to arrays into an xy graph. Check the attached VI for explanation.
    Regards,
    Nitzz
    (Give Kudos to good Answers and Mark it as a Solution if your problem is Solved) 
    Attachments:
    Untitled 3.vi ‏12 KB

Maybe you are looking for

  • My ipod 4g is stuck at the battery with a lightning bolt underneath and won't charge

    My iPod died about a month ago, and I waiting. I tried charging it with almost everything I could. I plugged it into the wall, computer, etc.. To make this easier, my iPod is not jailbroken and the home button fell off and I had a feeling it had to d

  • Role Creation and Copying.

    Hello All, I have 3 different queries. 1) In our landscape, we have CUA and a client system (X1). I need to create some dialog users in X1 with customized profile. In which system do I need to create customized roles so as I can create users in CUA a

  • Issue in Hr abap

    I have one issue SELECT CPID and PERNR for all SELECTED  PA0002 RECORDS FROM zcustom THEN MATCH  zcustom.CPID TO SAP 6.0 HRP1000.CPID lookup new PERNR  from HRP1000  and move new PERNR to this field. but in this i have problem in HRP1000 which is ref

  • How can I calculate the frequency of a 2-4Hz three phase sine wave in 50msec?

    I want to calculate the frequency of a sine wave using either all three phases or just one, but I want to know the frequency after 50 msec, I don't want to have to wait for a full period.

  • Can't connect remote PC with Microsoft Remote Desktop for Mac after using a new router

    I'm using a Windows 8.1 computer as a HTPC to download files and I set it logins automatically and I just need to press the power button then use RD for Mac to control the HTPC without extra monitor, keyboard... Here is the problem: After I took my M