Non-linear equation solution

I have used Lev-Mar Non-Linear VI before but cannot understand how to apply to the following:
deltaTC = R(TC)*L^2 + QS + QC(TC) +QR(TC)*dt
where variables containing (TC) are dependent on TC.
I have samples of change of L over time (dt).  Trying to determine dTC with variables dependent on TC (current value - which means initial T + dTC).
Any help much appreciated.

Hi Battler,
I am not sure if you know this or not but Lev-Mar Non-Linear VI is not supported any more. Instead you can use Nonlinear Curve Fit.vi . It is located in function->mathematics->fitting palette.
The functionality of both of them is the same.Next you can go LabVIEW help, search for this VI, and then look at the "Linear, Exp, and Power Fitting VI: labview\examples\math\curvefit.llb"
example. On the block diagram go to "Time out"and "true" for the case structures.You will see the Nonlinear Curve fit.vi, you need to input your equation to the reference terminal f(x,a). So
you need to make a subVI of your equation, and input it into f(x,a). Hope this helps!!
Edna
National Instruments
Applications Engineer

Similar Messages

  • Solving functional equation and or evaluating non-linear equations

    Does anyone know of a computer program that will do either or preferably both of the following:
    1: a functional equation; e.g. 4x^2exp(-1/1-x^2) -6x = 0;
    2: Evaluate a function at specified points; e.g. what is the value at -.5 of the above expression.
    i imagine excels solver does the second but I didn't load solver when I loaded excel.
    I'm not too proud to accept solutions as well. Many thanks.

    Is it what you wanted ?
    In cells of column B, the formula is :
    =IFERROR(INDIRECT(ADDRESS(1,2,,,A&" "&$A$1)),"")
    Between the late double quotes I insreted the character INFINITY ($221E)
    Yvan KOENIG (VALLAURIS, France) mercredi 21 avril 2010 20:44:36

  • Solving Coefficien​ts for Non-Linear Equation

    I have the following equation that I need to solve a, b and c. y = a+bexp(-x/c). Is there a VI that is written to help me?

    i don't understand what do you suppose to mean?
    you have not a,b and c values and you wanna solve 3 unknown variables with just one equation?
    do you think is that possible?
    even you had x and y values!
    but if you have 4 values and you just want to find another variables value it's so easy
    you can easily use a formula node.
    i have write a simple program for you to solve this equation and i attached it to this answer.
    it's with LabVIEW 5.
    Attachments:
    formula_node_example.vi ‏25 KB

  • How can I solve a system of linear equations for the non trivial solution?

    I want to solve the equation A Q =0 where A is a 1xn matrix and Q is an nxn matrix for A. I tried using the Solve Linear Equations sub.vi but it just gave me the trivial solution. What can I do to solve this?

    Larry of KochLab,
    Have you looked at the MathScript Node? Would it be possible to post a simple example of what you are trying to do?
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • Solve Linear Equations NaN return

    I've implemented a modified Linear Levenberg Marquardt function for gauss fitting of spectral data, but have problems from time to time where I simply can't fit a specific data set.
    I've traced the problem to the function "Solve Linear Equations" outputting NaN for one or more solution vectors (Not all) which then plays havok with my function.
    I've located a data set which is initially OK, but which after solving the linear equations has NaN as the second element of the solution vector array. Changing the matrix type to something other than "generic" gets rid of the NaN for this particular data set, but gives problems with others which work with the "generic" matrix type.
    Since my mathematics lectures in college are a few years away now, I'm asking someone out there if they can help me with my problem. I can supply a "corrupting" data set if this would help, or maybe someone knows this problem and has a work-around?
    I've thought of leaving the matrix type to "generic" and checking the output to see if there's a NaN present, and if so, then re-calculate with another matrix type until there's no NaN. This is most likely not very sound mathematically, but it might reduce the number of rogue data sets.
    Thanks in advance
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

    Hi Altenbach,
    The data can have a significant amount of overlap. Typically three to four groups of peaks fully resolved, but each group can have up to 4-5 peaks in them, partially visible only as shoulders.
    The start value "problem" is more or less solved (but as usual, not yet finished).
    I've got an approximate first-guess peak find running which does a pretty good job of finding the peaks I need, and I then fit the height and FWHM first before doing a full optimisation (The Sub-VI approach allows much more flexible fitting models).
    The fitting works well on almost all data sets. There are simply some spectra which (although visibly hardly different to others which work perfectly) do not fit, i.e. generate the NaN response from the "solve linear equations" function. It's a numeric problem (bug?), I'm sure, and not strictly a peak location or resolution problem. then again, I may be wrong.
    I refer to the standard "LevMar" VI as being linear, because it assumes a linear relationship between the variable variation and the end mse used for optimisation. This is where the "Solve linear Equations" comes in. Since the relationship is almost certainly not linear (foe example when peaks overlap), I thought maybe the non-linear coefficient guess may yield better results. I've had a quick look through the non-linear LEV-MAR function, but don't understand it yet ot the extent I understand the linear one. It does indeed seem to take a slightly different approach (once you look past the whole parsing code of the "linear" function.
    I'll need some time to get some understanding of the non-linear code.
    Attached are some example spectra (One which works, and one which doesn't).
    Thanks again
    Shane
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
    Attachments:
    Spectra.zip ‏3 KB

  • Non-linear ODE

    Hello everybody,
    Does anybody know if non-linear second order ODE can be solved with the Runge-Kutta solver. This appears to be the most common solver.
    I am trying to solve a non-linear second order differential equation of the form x*x’’ +x’^2 =Const. I was looking for an example that I could use to start with and follow it. I found one called “SHOOTING METHOD”.
    for f(x(t),y(t),y) I used (1/x)*(-y*y+Const)  
    Originally, I used x(0) =0.01 and x(1) = 0.01 for my boundary conditions but the solution just increases linearly with time as opposed to reaching a maximum and decreasing back to zero in time.
    Any help is greatly appreciated. Thanks in advance.
    Roberto

    A shooting method reformulates the BVP as an optimization of the initial conditions of IVP.  In your 2nd order ODE that means that the initial conditions are y(0) and y'(0), and the specified boundary conditions are y(0) and y(1).  The first initial condition is just the first boundary condition, but y'(0) must be determined to produce y(1).  I wrote a VI that sweeps over a series of y'(0) values, solves the ODE for each set of initial conditions, and graphs y(1)-desired_boundary.  If y(1)-desired_boundary=0 then the initial conditions exactly produces the desired boundary conditions.  Please see 'sweep rhs1.vi' in the attached archive.  Run using the defaults.  Once the zero is bracketed then an automatic root finder may be employed to solve for the initial condition with more precision.  The zero-finder must have a bracketed interval (change in sign of the function around the desired level).  See optimize rhs1.vi for an example using a Newton-Raphson zero finder to solve for the y'(0)initial condition.
     Please note that the Newton-Raphson is a 1-D implementation only.
    -Jim
    Attachments:
    shooting method.zip ‏43 KB

  • No non-linear under voice-port to reslove hissing on NM-HDV

    Hello.
    I have a trouble with 2MFT on NM-HDV.
    I can hear hissing on call.
    So, i had configured no non-linear under voice-port, then i can't hear any hissing.
    Instead, I can hear echo on call.
    How can i fix it?
    Regard,
    john.

    Hell Venky.
    Thnak you for your helping.
    I tried to configure based on the web site what did you told me.
    But i couldn't success it to resolve echo issue.
    The voice gate have 12.4(1a) on Cisco 2851.
    So the solution to reslove echo doesn't fit in my case.
    As i mentioned, normally i can hear noise each i talk another persion. If i stop the conversation i can't hear noise. but i started to talk again, i can hear noise each time.
    Thus i tried to disable "no non-linear" parameter, i can hear echo instead noise.
    So i should choice if i can hear noise or echo.
    And also, i tried to change input gain and output attenuation from -6 to 14, but the each still can hear.
    out voip network toplolog is below.
    NEC Digital Phone---NEC PBX---Gateway---(cat6500---MSPP(WAN Area)---cat6500)---Gateway---NEC Digital Phone.
    If i make a call using Normal Phone (INot Digital Phone), I can't hear noise. Whenever i can hear noise with NEC Digital Phone.
    Here is the option on cisco 2851 with 12.4
    2851(config-voiceport)#?
    Voice-port configuration commands:
    bearer-cap Specify the bear capability
    busyout Configure busyout trigger event & procedure
    comfort-noise Use fill-silence option
    compand-type The companding type for this voice port
    connection Specify Trunking Parameters
    cptone Configure voice call progress tone locale
    default Set a command to its defaults
    description Description of what this port is connected to
    disc_pi_off close voice path when disconnect with PI received
    echo-cancel Echo-cancellation option
    exit Exit from voice-port configuration mode
    idle-detection Idle code detection for digital voice
    input Configure input gain for voice
    music-threshold Threshold for Music on Hold
    no Negate a command or set its defaults
    non-linear Use non-linear processing during echo cancellation
    output Configure output attenuation for voice
    playout-delay Configure voice playout delay buffer
    shutdown Take voice-port offline
    threshold Threshold [noise] for voice port
    timeouts Configure voice timeout parameters
    translate Translation rule
    translation-profile Translation profile
    trunk-group Configure interface to be in a trunk group
    voice-class Set voiceport voice class control parameters
    Please advise to me to reslove the problem.
    Regard,
    john.

  • Cp6: How to stop a slide with multiple buttons in a non-linear presentation?

    Hello,
    I would be most thankful for a solution to this issue, as I haven't managed to find one yet in this forum.
    The presentation is non-linear, which means that the first slide is a kind of menu from which you can choose another slide to explore, and always return to the first one.
    Each slide has several buttons that activate various audio files, and there is an arrow button in the lower right corner to jump to the first slide.
    The problem is that the slide does not stop after some audio buttons are clicked, and continues onto the following slide (instead of pausing until the arrow button is clicked). When I click a few buttons and listen to the audio, eventually the slide automatically continues to the next slide.
    I have tried:
    adding a click box on top of that button with ''pause project until user clicks'
    changing all the buttons to Timing -> Pause after ...
    changing only the arrow button to Timing -> Pause after ...
    and don't want to make the time of the slide unnecessarily long
    Any ideas?
    Thanks in advance,
    best
    Agi

    Hi Lilybiri,
    Thank you so much for you reply, and the video instruction. Indeed, I had simple actions for the video, and now I have replaced these with advanced actions it is working fine - yey! It's a pity though that such a simple action requires such a convoluted way, especially because my presentation will be full of short audio files (= loads of scripts). I see that you are an expert in using Captivate, so this is still probably the easiest way to resolve the problem.
    Anyway, I guess my situation is exceptional, because I am using Cp for an online artwork
    Thanks again!
    Agi

  • Is it possible to simulate large-scal​e non-linear systems using the Simulation Toolkit?

    Hi,
    I am new to LabVIEW, having used Matlab/simulink for a few years. I am trying to simulate a relatively complex non-linear vehicle model. In Matlab/Simulink I would use an m-file to describe the system equations (i.e. x1_dot=..., x2_dot=..., etc.). Is there a similar method in LabVIEW? I have got a simple simulation running using the 'eval formula node', a very ungainly method of substituting variables, and an integrator in a 'simulation node'. It takes about an hour to run a simulation that takes 3 seconds in Matlab. I just need to know if it is realistic to do large-scale simulations in LabVIEW, or if it was not designed for that and I should persuede the management to go
    back to Matlab!!!
    If it is possible, where can I find help on the subject? I have spent a long time looking on the web and come up with very little.
    Many thanks in advance,
    Paul.

    If these are simple differential equations, easiest would be a for loop with a bunch of shift registers, one for each x1, x2, etc. containing the current values.
    In your case, you would calculate all the derivatives from the instantaneous values inside the loop, then add them to each value before feeding them to their respective shift register again.
    The attached very simple example shows how to generate an exponential decay function using the formula dx/dt= kx (and k is negative). The shift register in initialized with the starting condition x=1.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    DiffEQ.vi ‏33 KB

  • Non linearity between pixels and widht for linescan

    Hi
    I'm developing a width gauge based on a linescan camera.
    The gauge is measuring the surface of a steel strip moving at 200m/sec.
    I found a non linearity between the relation of pixels and real widht:
    1904mm X 6635,6pixels
    1308mm X 4616,7pixels
    814mm X 2880,6pixels
    I've tried the working distances between 2600 to 2800mm.
    The field of view is 2200mm.
    The focal lengh is 35mm.
    The size of CCD is 28.67mm (3.5um X 8192pixels - Basler raL8192-12gm).
    Somebody already faced this problem?
    Thanks,
    Alexandre.
    Solved!
    Go to Solution.

    Hi Greg
    Thanks for your idea. I implemented a polynomial from Excel according the attached. It's running well until now.
    Another problem that I'm facing is the oscilation on the image (https://www.dropbox.com/s/cboyglx74g8sd93/width%20gauge.mp4?dl=0) when the grid and filter are applied. I would like get stable the filtered image and grid from edge detector.
    Does anyone know how to solve this?
    Thanks for the moment.
    Attachments:
    calibrcurve_ml2.xlsx ‏20 KB

  • Encountered an error when attempting to open Lightroom for the first time. Went to Lightroom Help and searched for the error "An error occurred when attempting to change modules". Non of the solutions helped. what now?

    Encountered an error when attempting to open Lightroom for the first time. Went to Lightroom Help and searched for the error "An error occurred when attempting to change modules". Non of the solutions helped. What now?

    I am getting this error message as well. I have just downloaded Lightroom recently. I try to click on Lightroom / preferences....and nothing happens. I tried to uninstall and it is greyed out so I can't do that either. Suggestions? Please help?

  • Is there a limit on the size of the input for the Solve Linear Equations block?

    Hello,
    I'm trying to figure out why the Solve Linear Equations block will properly function with some sets of data and why it won't with others. What my program is doing is taking a signal and comparing it with a batch of sine and cosine waves to try and pick out patterns in the data. I have different sample sizes and it seems to work when I throw 3900 points at it. However, I have another set with 4550 points and it gives me incorrect amplitudes for my sinusoids.  Is there some limit to the size of the matrices that I can give this block? Or is there some other workaround that still allows me to keep all of my data?
    Thanks,
    David Joseph

    Well, the best way to show what I expect is to see the entire program. It's pretty evident that when looking at the graphs, something isn't right. What is supposed to happen is that the runout amplitudes are found, and then those sinusoids are subtracted from the initial data, leaving tooth to tooth data and noise. When I use the larger arrays, it seems as though not all of the data gets through (count the peaks on the product gear runout graph vs. initial) and the amplitudes are much to small, such that nothing is really taken out and the tooth to tooth data looks like the initial data.
    Also, we will also be using an FFT, but it will be limited to only determining the frequencies we should check. I've fought with the fft blocks quite a bit and I just prefer to not use them. Plus, the guy I'm writing this for wants exact answers and does not want to pad or resample the data or use windows.
    The exact number of data points isn't important (ie. 4550 vs 4551) since I use the array size block to index the for loop.
    As for typical values, they can change a lot based on materials. But, the original 3900 data point sets and the 4550 data point sets used practically identical gears. So, use the original 3900 sets I've included as references (check the RO array block numbers to compare).
    I've included 3 3900 samples, 3 4550 samples, and 3 4550 samples that have been truncated to 3900 or so as constants on the block diagram.
    Also, the check for additional runouts (like 3 per rev, 4 per rev, etc..) is optional, but if you choose to use it, use positive integers only.
    I don't know how much of this program will make sense and I have wires running everywhere.. so good luck. Keep in mind I'm only a student and I hadn't touched Labview until about 2 or 3 months ago.
    Thanks,
    David Joseph
    Attachments:
    Full example.vi ‏139 KB

  • Asset Lease accounting -non Linear lease payment

    We are currently having a business scenario where an asset is acquired on capital lease basis.
    Different depreciation area is maintained for leasing to account for interest on leasing.
    The payments are made in monthly for lease payment.
    The lease payment amount changes every year.
    The lease tab in asset calculates Net present value on the basis on lease payment entered in the leasing tab.
    Now since the lease payment varies every year the net present value calculation will be different(not as calculated in asset master -leasing tab).
    I am not aware if the asset module can take care of any non-linear payment scenario to calculate the NPV and interest accordingly.
    Example an asset ABC is acquired as capital/finance lease basis on
    monthly lease payment  for 4 years as follows:
    The said asset is to be capitalized  with net present value and we also need to ensure that interest calculation is done accordingly.
    1st year  1000/month
    2nd year  2000/month
    3rd year  1500/month
    4th year  1900/month
    Since in lease tab only single lease payment can be entered, how the different monthly lease payment can be entered so as to calculate correct NPV.
    Next how the correct interest calculation and net present value can be calculated correctly.
    If any one has come across such situation, please reply.
    Regards,
    Manish Garg

    Hi ,
    SAp 4.7 does not support non linear lease payment. Only the Equal lease instalment can be generated automatically when you will go for opening balance at the leasing tab of the display assets(AS03).
    But the ECC6.0 support the change over the lease instalment,
    Rgds
    Satyajit

  • HT201210 None of these solutions are working.

    None of these solutions are working. I plug in my newly restored iPhone and under the category in iTunes, I have the option to click it. When I do so, I get an empty box on the screen, below a Apple logo on the left and a padlock on the right. Any ideas to solutions? I puzzled the people at my local Apple store.
    Other than not connecting, my phone is fully functional. I can place calls and send messages, get online and fi my settings the way I want. I just cannot connect to any iTunes (I've tried three)!
    I have the newest software on my phone and the newest upgrade of iTunes available.

    What do you mean none of these options? What have you tried so far? Are you referring to the 5 R's described here: http://www.apple.com/support/ipod/five_rs/classic/
    B-rock

  • Magic Moves not always Magic (non-linear slide orders)

    Magic Moves opens the possibility of non-linear slide orders with animated transitions. Previously in keynote (KN '08), as far as I could ascertain, this was impossible. Now a slide with several hyper-linked objects can enjoy an animation of the on screen objects to there new positions, where-ever they may be on the on the linked slides.
    Unfortunately, as in some other things Keynote, it seems flakey. While it works most of the time for some reason, even when duplicating the linking slide and repositioning the very same objects, the Move is delayed and instantaneous: decidedly not Magic!
    The joy of being able to finally make the fully interactive Keynote presentation that will slide objects the right amount automatically according to there destination slide seems possible. The great thing is I don't have to construct all the different moves linking 26 different pages to each other via various routes (8 links on each page, which happened to be 8x26 possible linking routes = 208 move builds: too much for prescriptive build/move animations).
    But if I can't get it too work 100% I can't really show my client. Any know issues with this Magic Move stuff?
    I can replicate problem but not predict when it won't work or decode what is triggering the problem. Searching forum only revealed comment the Magic Move is work in progress. Note I am not scaling any objects. Can upload if it helps. Part of the original Presentation with a linear narrative can be seen at:
    http://www.vimeo.com/3018559
    Essentially I am endeavouring to make all the images 'clickable' so the film strip glides (against the preset order) to become the centre project. Also like to add a left and right button. All this can be theoretically done with invisible rect's with hyperlinks and Magic moves on each slide.
    Thanks for reading though all this – hope it's clearer than mud.

    Thanks for the response, Kyn.
    As it happens writing that long explanation, I thought I'd look from another angle and returned to the file – finding the answer straight away.
    Conclusion:
    Hyperlinks never use Magic Move transition, even if it is selected transition for the slide. I was getting hoodwinked by the fact that when I had forward and back arrows with hyperlinks to other slides, those slides were before and after the current slide. So they were Magic Moving with a mouse click on the Hyperlink, but only when forward one slide or backward one slide. Any other linking distance failed to Magic Move.
    I've already made the feature request but *please second it*, this would be a very powerful feature. Think Non-Linear Presentations and Info Kiosks with seamless transitions. And interaction is an area Powerpoint has decided edge on Keynote so it can and needs to be closed! (PP is such a trial of an interface after KN).
    http://www.apple.com./feedback/keynote.html
    I'll post the .keynote as requested when uploaded.

Maybe you are looking for

  • Calendar object for the next week day

    I have a calendar object, How can I get the calendar object the comes on the next Tuesday or for that matter any week day. For example I have the calendar object for today ie. Monday, 7th Aug 2006. How can I get the calendar object for the first satu

  • Re: Nullpointer Exception

    If you are using the access.log "extended format" on WebLogic Server 6.0sp2, you will need to contact Support -- http://websupport.beasys.com/custsupp/ -- to get the latest Rolling Patch (RP1 or greater) to fix this. Regards, -- Ian "Christian Corcin

  • NIKON D4s camera raw plugin

    When will the LR5 camera raw plugin for Nikon D4s be available?

  • Error Message -- could not back-up the iPhone

    I have had my iPhone over two years, with no problems. The last 3 times I have synced it to my iMac, I get an error message at the end saying: "iTunes could not back up the iPhone "iPhone" because the backup session failed" However, it appears that e

  • Interface programming

    Hi folks, i'm currently looking for tutorials/books/links on how to program interfaces (like RS 232). I want to use the computer as a switching device for e.g. lights. I hope someone can help me out... until now I find it difficult to retrieve such i