Draw a curve on a graph with an equation xy

I need to plot several curves on a xy chart.

I know how to plot multiple curves, I do not know how with an equation.

example y = 2.039 + 1.116 * exp(.01468*x)

I did this with a point to manually, but will be a lot of these with positive and negative also.

For plotting with an equation would save a lot of time.

Hey,.

I don't know if I get your problem correctly, but you can do all kinds of math with both tables (even several a table with a unique number for example) or another table and you can group their be plotted on a xy chart.

For example in this excerpt (you can copy this image on the block diagram and use the code she) I use the loop for to give a table for the x axis (you can use your existing x axis in a table data) and then I do more mathematics on that: firstly I do your formula to calculate data, then I do a truncated version of your formula to get another set of data there and finally I use a mathscript node to get the same data as the first (but with a slow performance, especially if you use a lot of as primitive formulas give good performance than mathscript). Can I group them into clusters and build an array of them to draw all the

Then the result is the following with plot 0 masking 2 both have the same data.

I hope that you are looking for help like this.

Tags: NI Software

Similar Questions

  • I'm drawing a curved line with the pen tool, but he fills in a solid form.  I want only the line - what I have to change?

    I'm drawing a curved line with the pen tool, but he fills in a solid form.  I want only the line - what I have to change?

    pmreagans,

    Set the fill to zero at the bottom of the Toolbox.

  • I'll make a small program that draw a curve function 2D using openGL, doable?

    1, I have a lot of sample data, it can be map plot a 2D of the distribution of the dot.

    2, then I need to climb a curve function, such as:

    CVI can use OpenGL functions: there is a specific OpenGL instrument located in \toolslib\custctrl\cviogl.fp. There is also an example of program that actually use the OGL functions to draw 3D sufraces: see the code in \apps\oglscxi fodler.

    That said, because you're dealing with 2D plots, do you really need OpenGL? All the steps you mentioned above could be addressed with the standard of CVI functions: for example, you can use a PlotXY () call properly formatted to draw the curves as in step #1, PolyFit () for calculating the interpolating to step #2 (which also goves the formula you as in step #5) and cursors to draw research as in the #4 step.

  • the exact position of the mouse click xy graph while he plotted graph with mouse events

    Hello

    IAM using Graph xy for multi locations

    IAM traced graphic with mouse movement and events using the example attached (draw the graph with mouse events)

    but in sub vi Values.vi scale there are two constants 66 and 30 when I change my plot (I also change the scales), then the mouse position and chart position (cursor) value are not well aligned, but when I change the constants mentioned above I get the alignment perfect between the cursor and the last point in the path.

    as I went to another parcel (with scalability again) the same alignment problem resurfaced.

    I need to replace these two constants with something dynamic

    Please help

    concerning

    Mazhar

    solution to my problem is

  • bar graph with two scales of y

    Hello

    I have a graph with two scales different (one on the left side from 0 to 50, the other to the right of 0 to 1)

    Now I want to draw horizontal lines limit. I do this with the programately adjustment sliders.

    But I can only put the sliders that "belongs" to the first scale.

    Is there a solution?

    Thanks for any help

    Yves

    LV 8.6

    Hi Yves,

    You can assign each slider to a YScale. Simple right click on the cursor and choose the YScale. I think you can also do it programmatically.

  • How can I draw a curved line?

    Sorry for the inconvenience, but I tried the Photoshop information and could not succeed.

    What should I do to draw a curve?  I have no problem, draw a straight line, it's pretty easy, but I was not able to find a way draw curves and get the same results to draw a straight line.  I tried to work with the Pen tool and I could draw some curved paths, but as I said that a path is something abstract, I can't work with it as a stright line.  I m pretty sure that the answer is simple, but I was not able to understand.  Can someone help me please?

    Howdy.

    But, how can I caress a path?

    To create your path, click on the button "Create a new path", second from right at the bottom of the garbage can. Select the pen tool. Draw your way. Click on the small triangle at the top right (highlighted). Select the path of the path.

    Select an option for how you want to stroke the path. I chose the brush. Brush properties are applied to the way such as a stroke.

    That's all. It will be useful.

    Peace,

    Lee

    PS: Semaphoric: did not know the shortcut. Thanks for the tip.

  • Draw a rectangle in a graph

    Hi, I want to programmatically draw a rectangle on a chart XY (XY Graph.vi Build). I know where the 4 points are on the coordinate chart but I can't yet draw using the block Rectangle to draw. Could you please help me how can I draw a rectangle in a graph. I am attaching the photo to this message

    Hi guys,.

    I thought it was interesting questions - and, although I had not tried anything quite like this before, I thought I would give it a whirl. smercurio_fcsuggestion was excellent - I find the code referenced in LV example finder, in the fundermentals > graphics & graphics > plot pictures folder.

    Attached are 2 pieces of code.

    DrawRectangle on Graph.vi allows users to define the rectangle by cluster of façade.

    DrawRectangle on graphic .vi (events) allows the user to define the rectangle by clicking and dragging on the chart. Please note that the code requires that you start from the upper left corner of the rectangle, and drag to the lower right. But isn't that a creative logic would not solve - if you wanted a bit more flexible code.

    You should also know that I have not spent a lot of time on the code, so it is not perfectly architected. But we need to think!

    Best wishes

  • adjustment of curve with the equation

    I have a program in which I receive a response signal which is of the form A * cos (w * t) * exp(-t/T2), where A is the amplitude, w is frequency, t is time, and T2 is the spin relaxation time. Is it possible to adjust a curve in this graph and output the values of the variables? I have tried many options in labview but can't seem to find a way to add the variable T2.

    Thank you

    Justin

    LV8.6

  • Several curves on the graph XY

    Hello

    How to plot multiple curves on the graph XY.

    Here is a solution for the 2 curves, but if the number of curves is important (e.g. 10) this method becomes boring.

    A detail more - all curves share the same X.

    Thank you

    Perhaps this will clarify what we say.

  • Draw text on the XY graph

    Hello

    There is a technique to draw a text note on graph XY.

    For example the text "AAAAAA" put near the upper left of the XY graph.

    Thank you.

    Previous version is wrong: this only works if an annotation already exists on the chart.

    If no annotation it does not work.

    Here is the solution for the empty graph:

  • Aligning a zero position on a graph with several scales & Auto scale

    Hello!

    I hope it's a quick - but google searches and browse the forums nothing have mounted.

    I have a graph with two scales - a position and a speed (which can obviously differ from each other). I want to be able to do is to have the scale auto chart/scales - but for the 0 position to stay in the center of the chart. With 0 balance point to different places, this is the graph that is very difficult to understand at a quick glance.

    If you see the attached screenshot - the positions of two 0 are in different places.

    Is it possible to have the scale automatically, but for zero to stay in the center of the graph for the two scales?

    Many thanks in advance,

    Sam

    (As I know) you can't do this with auto scale.

    Disable the autoscale, and then manually set the interval to be symmetric compared to zero for each scale.

    Find the maximum of the absolute value of each table of marks.  Then put it away on + and - of this value.  (in the example below, I did a loose fit by multiplying by 1.1).  Since you have more than one scale of the axis, you need to browse to treat each of them at a time.  First of all, he must be told what balance Y you want to adjust, then, set the values.

    Another option would be to have align the zeros, but not that the scale is symmetrical around them.  You can do that too, it takes just a little more math.  I would like to know if that's what you want.

  • Used to synchronize synchronize my Blackberry Curve 8330 Smartphones blackBerry with Outlook and Yahoo contacts and calendars.

    Used to synchronize my Blackberry Curve 8330 to sync with my Outlook & Yahoo contacts and calendars.  There is no error message, it just don't do.  Any suggestions?

    You can upgrade to 4.7 WITHOUT Media Manager.  Some people have problems with the MM.  It's also a great Setup and it is easier to use the drag-and - drop in windows Explorer with the lit on your BB mass storage mode.

    Personally, I use DTM 4.6 without MM and have no problem.

  • How to draw a graph with several axis xy enter?

    Hello

    I have problem in xy graph, the graph xy can only display 1 signal the y-axis of entry (as you can see in the attachment)

    Is it possible to draw the graph xy with 2 go? Or maybe there's another type of graph as possible to do?

    Note: the x axis must be an entry too (not compared to the time / sample).

    Answers and advice are welcome.

    Best regards

    Alvin Chandra

    You ask for a second scale of Y on the graph?

    If so, right-click on the scale of the existing, select "Double ladder". This will create a second scale. You can then (if you wish), right-click on the new scale a select 'Swap sides' to put it on the other side of the chart.

    You ask about adding a second plot?

    If Yes, then you must group your arrays of X and Y points in clusters and build those in a table:

    The x-axis is always an entry on the XY graph. You just need to change the title of the axis. Way easier to do is to double-click the axis title and type the new name.

    Rob

  • I want to draw a waveform where I have a constant slope (defined by me) and new data are plotted on the graph with the slope defined already in the background.

    I want my table to have a constant slope already mapped out before she continues start tracing data in real-time... so that I can compare my new data point to point with the ideal slope that I already have in the background

    Hi raza,.

    as I said: it is not a problem to have two plots on a graph. But you need to use a graphic instead of a chart!

    Like this:

    have a constant ground created before the loop and a variable field created in the loop!

  • First HP: Lack of Sections of first graph with steep slopes on HP

    I saw somewhere an old post on the Internet where a user was having difficulty to see the graph of y = x ^ 4 (x-2)(x-6) using a "Decimal point" display window and the "Evolutionary" method in the application of the function. The chart has not demonstrated the branch of the chart with the x origin of (6, 0). The response at the time was to use a different window or switch to advanced graphics application. I don't like either of these options, because much cheaper calculators have not this problem.

    With a little experimenting, I found that the calculator will be graphic curves where the absolute value of the slope (derivative) is less than about 375 * (Ymaximum - Yminimum) / (Xmaximim - Xminimum) where the minimum and maximum levels refer to the values specified in the configuration of the land. When the curve is steeper than this amount, the curve has holes and gaps until this value exceeds of approximately 1500 *(Ymaximum-Yminimum) / (Xmaximim - Xminimum). At this higher value, the curve is usually not in graphic form at all. These expressions are based on the study of graphs of the polynomial given above, y = 1 / x and y = e ^ x for different values of configuration of land.

    I realize with the option of touch screen on the first HP for the graphics window resizing, calculator, developers should be a little more sophisticated in how to get the calculator determine the graph. The current 'Adaptive' method is too risky for me to use unless I know a little on the chart. And the graphic progress is too slow. HP working on another option or is there maybe a setting on the computer I do not use its full potential?

    I've only used the calculator for a few days, but others who have used the calculator for many more are also puzzled. Thanks for any info. You can send our way.

    It is currently being considered. I can't say when / if there will be changes, however on the political basis of HP on 'future-looking '.

    However, graphical representation is one of those things that is "deceptively simple" because it seems to be pretty easy but is actually infinitely difficult. It has in fact been mathematically proven that you * don't * create an algorithm to be quite accurate for the same simple algebra. All graphics engines turn example is a very simple method that collapses quickly for something else then the case of some, it's well, a series of different behaviors for different types of problems in an attempt to account for different types of situations.

    The average general graphic has been done in the past was "moving pixel, evaluate and connect the dots." This works for simple things, but falls apart pretty quickly. Most of the calculators except the first on the market at the present time use some techniques of "smoothing" kind of hide the types of problems, this method can generate and generally work well for simple cases. While that hides things, the problem is he hiding things. :-) In more complicated cases, it actually makes things quite worse.

    In this simple case, most of the systems actually get the "right" result because they always assume that a big jump in values one line drawn to connect them. Result directly in other cases where it draws a vertical line to an asymtote that shouldn't be there. That's why things like Tan (x) go very often vertical asymtotes where there shouldn't be any. To try to avoid this, you need the code to make a special analysis in the case of start trying to filter false positives. It seems that in this case, it is bad filter and eliminate the line here.

    For another thing of pleasure, try the example simple "sin(e^x)" on all your systems. You will get some pretty crazy things and strange patterns here where there should not be any. The "speculative", the first will be closer, but only the grapher advanced with its graphics of interval it gets correct.

    So in short, yes - you put this to our attention. In long, graphic representation is in fact much more complicated then one might expect. :-)

Maybe you are looking for

  • Don't Tweet using firefox

    When I try to tweet, I get the message "your account cannot be allowed to perform this action. Please refresh the page and try again." This is using firefox 17.1.1 on a toshiba laptop with Windows 7. It has happened to these days. Just a MS explore -

  • Laptop HP Envy M6: problem with hinges on the m6 HP Envy laptop

    I bought the laptop M6 Envy in 2014 for my daughter and it is now coming apart at the hinges of the normal level wear and back, she of afraid that if she continues to open & close it may collapse, but to use for school, please advise if there is a re

  • Made 2.4 car amp 6 s of my iphone battery charger drains?

    Hello world I bought a car charger Griffin Amp 2.4 (12 watts). They told me that this charger gets 5v and 12v out inout. In fact, I can't undrestand the difference between volts, amps and volt. I just want to know if this charger is draining my batte

  • Will be the leak memory for the queue when it is used in producer and mode of consumption data acquisition transfer different size table.

    In data acquisition, I use a loop to query the data from the hardware, another loop to receive the data from query sent by queue loop. Each time the size of the transferred data matrix is perhaps not the same, so the system can assign different table

  • Guest access with ISE and WLC LWA

    Hi guys,. Our company try to implement access as guest with dan ISE WLC with the local Web authentication method. But there is problem that comes with the certificate. This is the scenario: 1. the clients are trying to connect wifi with guest SSID 2.