2 non-equidistant curves of XY to plot against the other

Hello, I have a few points of recorded data from various sensors XY. Values of X are always the time stamp and the values are the values of the different sensor. Almost all XY curves start and finish at the same time (most less than a few seconds). In addition, the curves are not equidistant, I mean that the data points are not at the same time stamps. In addition, some of them have been registered with 60 sec, others with sampling frequency of 1 sec (etc...). In fact, this is why I use a graph XY to present these curves together.

I would like to examine certain correlations, so I want to trace two arbitrary XY curve againts each other (intrigues both their there values as a new curve of graph XY). This procedure is skipped when we equidistant curves, but here the data points are not in the same time positions, and also the number of them is not equal.

How would you rate this conspiracy? I think about it, I could take the stamp of the first and last time in the two curves X values, and I would generate a table of new equidistant time stamp to cover the entire range (with a number of points which makes sense). After that, I have to do on the two original XY curves interpolation that transforms the original of the X values and be placeable on the new X positions.

What would be the shortest way to do this in LabView? Or maybe someone has a simpler idea?

Thanks for the tips!

Edit: I guess the '1 D VI interpolate' is just what I need?

Yes, so this is implemented, pls remove me wonder is trivial, I see now...

All you need is to create a new ramp time (e.g. linear) that covers the two time slots at a sufficient resolution, then interpolate the two sets of data against it.

Here is a quick sketch.

Alternatively, you could also add the two original paintings of the time, sort and remove all duplicates to generate the new ramp time.

Tags: NI Software

Similar Questions

  • Non-linear curve fit the model of reference file

    Hello.

    I use the VI of the non-linear curve adjustment in order to adapt the data. The reference to the fitting VI model I use is included in the attachment. You can see that I have a few constant wireline, like 4, 2500 and 1. I want to do this constant variables I'll change before each curve corresponds, because actually in my problem this variables I know before the adjustment and they are constantly changing, and for the moment this made VI just to test.

    The problem I have is that I can't enter the values of this variable to my main VI, where I also call the VI was nonlinear. The scheme of connection of refernce VI made must be changed in order to be recognized by the VI was nonlinear. I tried to use a table to transfer variables, but if I use one, it recognizes the variables as parameters of editing and he's trying to install as well in the adjustment process, and it gives me erroneous results.

    Any ideas how I can add the values of variables?

    Thank you very much.

    Kind regards

    Nikola comedy

    To provide additional data randomly in VI of model, you must use the entrance of 'data' (it is a variant and so can contain anything you want!). Just create any type of data you want (generally a cluster if there are several values of different data types) that contains all the values, convert them to a Variant in the main VI and the variant of wire to crimp her. In the model, you convert the variant return to data, to the constant help of cluster, such as defined in the main as VI 'type' (simply right click cluster in the main VI... wire Create constant... move the constant in VI of model). Now, to unbundle the different values and use them anywhere inside your model.

  • Non-linear curve fit (distribution of blackbody radiation)

    Hello

    In my measurements I would estimate the temperature from the spectra of light emitted through the Planck law of the distribution of the black body radiation. I tried to get my data with non-linear curve fit, but I encountered some problems:

    1.) function is not properly, because of the distribution of different adjusted data form and input data values.

    (2) when tracing distribution of Planck by using the best shape parameter, the plot is different from the theoretical distribution of given temperature. (My data comes from the source of temperature 3100K, best setting made is 1130K, but fit is different from the theoretical distribution of 1 130 K)

    When I get a few simple equations, everything works, so I'm not sure of what could be a problem.

    Many thanks for any advice.

    Ivan

    Quickly, giving once more on this, it seems to me that one of your constant if four orders of large magnitude.

    You get a very good fit with 3.74177E - 16 instead of 3.74177E-12, see picture. (You divide your theoretical curves by 10000, but you aren't in your formula!)

  • The non-linear curve slope

    Hi all

    How can I get the slope of a particular point in the non-linear curve? I use Lev - Mar curve fitting is not linear.  The slope is to determine the dynamic resistance of the current-voltage curve of diode if dynamic resistance = 1/slope. Kindly help...


  • Non-linear curve Fit error 20068?

    Trying to do a simple 3-exponential decay curve nonlinear.  I have a copy of this work in the other screws, but it doesn't seem to work in this VI.  I use "Scalablemultiexponentialdecay" of Altenbach as a VI/template model.  Data that I'm trying to adapt are a series simple decomposition RC, yes I realize that should not have 3 exponential components, it's just the model data.  I am able to adapt with the Fit exponential function built in to the Math palette, but which only works if the input bounds parameter is wired and with rational constraints.  However, I get an error on the adjustment of the non-linear curve that I understand not (photo attached) indicating that an INF or NaN is done in the settings.  I don't see where this is going...

    Any questions or help is appreciated.

    I thought so, only 0 s for the 2nd two exponentials.  But, if I replace all the guess seededes with the same as the simple exponential Installer, it converges without error.   I guess I didn't know it was that sensitive.  Thank you.

  • Adjustment of the non-linear curve - maximum iterations exceeded (error-23026)

    Hello

    In my application, I use the curve non-linear adjustment VI (Levenberg-Marquardt) to adapt the data acquired continuously using a task DAQmx. Often in the course of the implementation of the instrument, the curves are not yet "adaptable" and max iterations set in the parameters of expiration is reached.

    It's OK but the problem is that it generates an error (-23026) that stops the execution of the VI.

    How can I ignore this error and continue to run the VI until the termination is controlled by the setting of tolerance?

    Kind regards

    Bernard

    Hi Bernard,.

    Need to wire the error output and handle the error programmatically.

  • Non-linear curve shape VI don't, get error-20068

    Hi, I have a problem of raw data to a formula of mounting. The formula is f (x) = - ax + b + c (x/d) ^ e. I use the non-linear curve Fit VI, Lev - Mar: the formula string. I'm able to calculate 4 5 parameters (a, b, c and d). I can't calculate, but it should be around 10. When you run the VI, it gives me "error-20068 occurred at NI_Gmath.lvib:LM get new coefficients.vi:1. " "Analysis: input parameters has at least one element that is Inf, NaN, DBL_MAX or DBL_MIN"

    It is tracing the equation based on the initial settings without actually finding the best adjustment of the parameters. I also tried using the VI version to create the formula, but it gives me the same error. What can I do to avoid this error? I have attached the vi and a data file.

    Some of your top X values are negative. Remove them and things will work fine.

    (You get a negative signal for the exponentiation, which is allowed if the entry is complex or the exponent is an integer. This isn't the case here, where the exponent is not an integer. The exponent is an integer in the first function call, but not more once, trying to calculate the partial derivatives of the model. Try with a hypothesis of 9.9 instead of 10, and it will fail immediately)

  • apply restrictions for the non-linear curve fit

    Hello Forum users,.

    I am currently working on a VI control which is supposed to create a specific model of pressure inside a hollow tube to provide a test environment for pressure sensors. The details are many and complicated, so let's say I am sure that my formula to calculate this profile according to the pressures inside the hollow rings around this tube will work.

    To find the correct pressure for each ring values, I've linked to a model VI containing this form to Lev. - Mar algorithm (the non-linear curve adjustment) and let it run.

    Technically, there is no problem and Lev - Mar find values to adjust the function for the values (not perfectly sure, but close enough).

    The problem is, however, that, since the device, once suitable values for the positioning and size of the rings are found, must be built, the simulated pressure rings perhaps intersect not between them. To apply this rule, I added a check to my VI of model and if the values passed to Lev - Mar breaking the rules, the VI model gives a matrix of zeros to follow him (I tried an empty array, but that only leads to error messages).

    This solution did not work. Lev - Mar seems to ignore these cases always looks for values that break my rules (and if I put these values through my model VI, I get a matrix of zeros, as expected, so the audit seems to work).

    Perhaps I misunderstood the algorithm of Lev - Mar and it does not actually check each possible defined coefficients of finds.

    Is it possible to adapt to any function of a set of values while keeping the predefined boundary conditions?

    Oh, before I forget:

    I use LabVIEW version 8.2 in the Institute, because the workshop systems is not installed 8.5 for some reason any.

    Thanks in advance

    Thaliur

    Hi Thaliur,

    Thanks for posting on our forums.

    I understand your request you expect the algorithm to ignore a case to all zeros in the table. However, it is not implemented like this.

    Good news is, its source code can be edited and you could save your own personalized version of the algorithm of screws it is to you that you just add a check for a matrix of zeros or simply pass another parameter which indicates only a case of "broken rules". Then you would not have to continue the calculation.

    If I misunderstood your question, please clarify this. You can also post a code for further explanation, if you wish.

    Good luck with the project!

    Peter

  • How can I send email to a list so that each recipient sees their own name, but none of the others in the list?

    I know how to use the BCC field so that the recipients do not see THE names, but I wish that each recipient to see their own name, but none of the others. Is this possible?

    I think you have to use mail merge.

    https://addons.Mozilla.org/en-us/Thunderbird/addon/mail-merge/

    There, I discovered recently, a list address syntax to be used in the address line, which could be useful for you, but unfortunately Thunderbird does not support.

  • Play a playlist or album adds the first song 20 times and none of the others

    I have an iPhone 6 and you have a subscription to the music of Apple and iTunes Match (had one before the subscription of Apple's music). When I try to play an album or a playlist, the first song from the album or playlist will play 20 times, but none of the others. This also will show the list of "to - go".

    I have the latest version of installed iOS (9.3.2). I already rebooted my phone, but the problem persists.

    You probably accidentally hit the icon repeat at the bottom of the expansion, now playing screen.  It is very easy to "Repeat 1", in which case it will be play the same song over and over again.  I did this more than once myself.

    See you soon,.

    Jeff

  • How to choose the color marker in the plot of the intensity

    Hello

    I am tracing my 2D data file in the plot of the intensity. I want to that path of color should be as red as value maximum all in green as minimum value and 0 must be yellow. I watched this http://digital.ni.com/public.nsf/allkb/1ADFF221E27F5B5886256E6F007C7B58?OpenDocument example, but in this example they decide marker beforehand. In my case, I want to choose marker based on maximum and minimum value.

    Thank you

    Yogesh

    Here's a simple example. I didn't change anything execpt for show with 1 decimal digit z scale markers (default is zero). It is just cosmetic.

  • the names of the plots on the chart and use these channels in the menu of the ring

    Hello everyone!

    I table 1 d which is more a cluster of 2 elements: one is a number and other string. These string contains the information on the name of signals. I connected this table 1 d to reshape the array with a dimension of 10.  Then the consistent table is connected to the table in the cluster. This cluster has led is still naked to get the name of the plots. The problem is that I don't want these 9 unbundle blocks to get the name of the plots. Is there anyway I can do it without use of unbundling 9 times. I though that the use of loop for or while loop, but I need some suggestions.

    So I have two questions:

    How to get the name of plots is without using unbundle so many times?

    Second is how to display the names of these plots on my menu ring?

    I must have missed something, I didn't see any large cluster on your drawing. Change this large cluster in a table, because there a lot of the same element. Then proceed as attaché.

  • Multiple is plotted on the XY graph (by iteration)

    Hi all

    I wrote a program that allows me to chart the theoretical data and change it in real-time to see how it changes the plots.  Currently, I have all the equations in a for loop and have the berries each iteration XY are clusterted together and auto-indexé to the edge.  If I have that then feeds the XY graph it works perfectly and I can draw several lines by iteration.  (See FirstPlot.vi)

    So the problem I have is when I want to be able to draw three different lines at each execution of the loop FOR.  Because the last line is the addition of two other equations, it would be nice to look at the other two equations on top of the final line.  So if you look at the first VI, he draws the same line over and over but changes according to the value of 'i '.  In the second VI (SecondPlot.vi), if you look carefully, it will draw all the components of the line, including the original line, but only the last value of 'i '.  I want to be able to draw the line and its components on the same graph for each value of the 'I '.  Any suggestions?

    I've actually never used 2010.  We stopped the upgrade to 8.6 due to budgetary constraints, then I changed my job and finally upgraded to 2012.  I heard 2010 has had many problems.

  • The Subvi display plot in the main VI while Subvi is inside another Subvi

    Hi all

    I followed the procedure described by mysticfree to display a Subvi plot in the main VI: http://forums.ni.com/t5/LabVIEW/show-graph-that-is-created-in-a-subvi/td-p/672249

    I want to do nested way: main VI runs a Subvi called sub_A tracks sub_A. other sub - VI, called sub_B in it. sub_B generates a trace. I want to display this conspiracy in my main VI.

    I tried to apply the same principle to this problem, but sub_A does not send trace information to mainVI until sub_B is finished.

    I'd appreciate any suggestions to solve this problem.

    I have attached the VI.

    Thank you.

    The solution to this problem is available in the following discussion:

    http://forums.NI.com/T5/LabVIEW/show-graph-that-is-created-in-a-subvi/m-p/2390892#M741487

  • Windows 7 sees my second monitor as "generic non - PnP" and will not let me set the correct resolution

    Hello

    I just installed Windows 7 Professional 64 bit on a new hard drive on my Dell Studio 540. The PC has a graphics card ATI Radeon HD 3450 and has a Samsung 226bw 22 "monitor on the digital output. This works very well, and has the resolution of 1650 x 4050. When I am running Vista (on the previous hard drive), I got a monitor flat 14 "old on the other out, and it worked fine (although at a lower resolution).

    I added a monitor AOC F22s + on the other output, expecting to be able to put this to the recommended 1920 x 1080 resolution. Unfortunately, Windows has developed the driver for this monitor "Generic non - PnP" and will not let me set the correct resolution. To the maximum it will allow is 1600 x 1200, (as well as all other resolutions it allows) do not use the monitor at maximum capacity, which is the ratio of evil anyway, so the display seems tense.

    I run Windows Update, so have the latest drivers. I tried to install the other drivers, but nothing helped.

    I tried to unplug the Samsung monitor and restart the PC, so that the AOC, one was the only monitor it and he always had as 'Generic non - PnP' with the wrong resolution.

    Someone at - it ideas? I'm at my wits end. AOC support did not understand and could only suggest that the monitor was faulty, but the place where I bought it insist that it works very well and so no Exchange or get a refund (no restocking fee, which is a RIP-OFF).

    I really want to use both screens and would appreciate greatly any help that anyone can give. I hope I gave enough information. If I didn't, please let me know.

    Thanks in advance,

    Alan

    PROBLEM SOLVED!

    It turned out that my VGA cable was wrong and that it was not send the right signal to the computer. The screen worked fine with a VGA monitor, but the PC has not said that the new monitor is a PnP I tried a different cable and it worked fine.

    Thanks again to all who have suggested things.

Maybe you are looking for

  • Icons on the taskbar

    I've always had my power and sound icons on and everything suddenly they will not be displayed in the taskbar. I tried to turn it on and the area is grayed out. How can I get my icons in my taskbar?  Thank you

  • / Start differed only in a conditional loop.

    Hello I want to use a delay (or some kind of timer) in my program. I intend to use for it in a conditional loop. Specifically, if a certain condition is true, then I want to wait for 50ms and then check out some other condition, which, if true, I wan

  • My background turned yellow how to return the original

    My background turned yellow how do this return to original blue? My sensor is thick how do this back to the original?

  • Scanner does not work since MS limited account

    Lexmark All in one work account admin but not limited account.  I get an error exe AIO.  If I change to an admin account, it works, but switching back on limited account, it does not work.  I even created a new account to test - the same results.  He

  • cs4 installation issues

    Why do I have problems to install adobe creative suite design standard 4 on my new laptop?-64 - bit windows 8