Using General Polynomial Fit VI with waveform graph

Hello gurus ,
I would like to ask how to use General Polynomial Fit VI with waveform graph not GraphXY .
Waveform graph is giving me an array of values not X , Y i think , what should i do ?
Thanks in advance
Solved!
Go to Solution.

Hi Omar,
i changed the shipped Labview Example to use the General Polynomial Fit VI with a waveform graph.
But why don't you want to use a X-Y-Graph?
Regards
DianaS
Attachments:
test.vi ‏37 KB

Similar Messages

  • How to use General Polynomial Fit

    Hey,
    Very new to LabVIEW (mostly use Matlab) and I'm trying to use the General Polynomial Fit VI and I have found the built-in help for LabVIEW very lacking and the examples not much better. The help says that, among other things, the inputs are the x and y data points. I have my data in 1D arrays of double, but this is apparently the wrong format for the VI it states that the VI needs it in double. This would imply that it only takes one data point at at time? Do you have to build it up one point at a time in a loop?
    Thanks in advance for any help,
    dnorman

    Oops, nevermind. Accidentally selected the point by point variation...

  • Different general polynomial fit results

    Hello,
    I've encountered a strange problem using the general polynomial fit: It seems that the outcome of this vi is computer dependent...
    I'm using labview 8.2.1, and tried to use the vi to get a polynomial fit (with an order between 12 and 20) on about 450 datapoints, which seemed to work fine... until I shared my vi with another person, where different results for the polynomial coefficients were obtained with the same datapoints (and the same parameter settings). I noticed that the differences get bigger when the requested order increases.
     has anybody encountered a similar problem?
    greetings,
    Hans
    Attachments:
    get_polyline.vi ‏37 KB

    Well, taking a 20th order polynomial does not make a lot of sense anyway. What are you trying to achieve? There are probably better ways to do whatever you want to do here. You are dealing with extreme intermediary values (e.g. 1500^20=3.32e+63) so a slight reordering in operation could change the outcome.
    Can you explain the differences between the computers? Is the other a different OS (e.g. mac vs windows)? Just curious.
    LabVIEW Champion . Do more with less code and in less time .

  • General Polynomial Fit

    I need to fit a polynomial function and extract the coefficients a0, a1, etc, of my data. But in the General Polynomial Fit i have to especified the order, is there any way to find automatically the polynomial order and then extract the coefficients? Thank you.

    Thinking about this question again, I`m not sure I`ve answered the correct question at all.
    My original method (Scanning different fit orders) will give aou an N-order Polynomial which fits the signal well, but the assumption that your signal is then also an N-order Polynomial is generally false. If you are simply looking for a polynomial which well describes your signal, this is OK.
    If you are dealing with simple clean signals then you MIGHT be able to make assumptions on the signal type based on various fit coefficients, but if you`re trying to understand fundamentals of a real-world complex signal based on fit-algorithm errors, I would be, in addition to the other respondants, very cautious. I`m not a very good mathmatecian (I love that the fit algorith
    ms simply ), so I can`t begin to give a hint as to do this kind of analysis.
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • "Residue" in General Polynomial Fit Function

    Do any of you statistics wonks understand how LabVIEW calculates the "residue" output in the "General Polynomial Fit" function?  How does it relate to the R^2 value on an Excel polynomial trendline.
    I've been trying to figure this out for hours, but the LV help files don't seem to have the info I am looking for, and I cannot find a good explanation on line.
    Thanks,
    FB
    Solved!
    Go to Solution.

    I figured it out.  I was looking at the TOTAL error of all elements, rather than the average error.

  • How to connect with waveform graph?

    hi
      i would like to know how to simulate wave form graph the input is randon number ?My problem is i cannot connect with wave form graph...
    can u show me example..like using arrary...or something else..i looking forward ur reply
    thank u

    I have an example that you may want to look at here.
    The example was for a signal generator, but there is a waveform graph to show the selected waveform.  It is an extremely basic program, but might be a good start.
    RayR

  • User interaction with Waveform Graph

    My application uses a Waveform Graph to plot data acquired from a
    scope. The application does some analysis of the waveform data
    and then uses features within the waveform as the basis for
    controlling some external devices. The features (peaks) that
    are to be used must be selected by a human operator. Ideally,
    this would be done by having the user click on/near the peaks
    of interest.
    I haven't seen anything in Labview that looks like I can trap
    mouse clicks within a screen widget. Have I missed that level
    of functionality, or is there no feasible way of implementing
    such an interface?
    I am presently using a system of tables and sliders to allow
    the users to select peaks, but the users are not totally happy
    with the method.
    I
    am using Labview 5.1 on Sun Solaris.
    Thanks.
    --- Rod

    One approach would be to enable graph cursors and have the user click and
    drag the cursor to the peak of interest. Cursors can also be set to lock to
    the graph data You could also add another graph trace which only contains
    peak points and then the cursor will only land on a actual peak point.
    Mike Sachs
    Intelligent Systems
    "Rod B. Nussbaumer" wrote in message
    news:afal8d$37q$[email protected]..
    > My application uses a Waveform Graph to plot data acquired from a
    > scope. The application does some analysis of the waveform data
    > and then uses features within the waveform as the basis for
    > controlling some external devices. The features (peaks) that
    > are to be used must be selected by a human operator. Ideally,
    > this would be d
    one by having the user click on/near the peaks
    > of interest.
    >
    > I haven't seen anything in Labview that looks like I can trap
    > mouse clicks within a screen widget. Have I missed that level
    > of functionality, or is there no feasible way of implementing
    > such an interface?
    >
    > I am presently using a system of tables and sliders to allow
    > the users to select peaks, but the users are not totally happy
    > with the method.
    >
    > I am using Labview 5.1 on Sun Solaris.
    >
    > Thanks.
    >
    > --- Rod
    >
    >

  • How to use offset and multiplier property in waveform graph?

    hello,
    i m using a waveform graph and wanted to update its x-axis scale depending on the multiplier value. Also how this
    formula of offset n multiplier works (deltaX)*X+X0? What is delta X and X?
    Regards,
    vijtin
    Solved!
    Go to Solution.

    hi,
    X0 is the offset and X is the multiplier.  So the graph will start at a cetain offset and will aa to that the delta value times the multiplier.
    e.g.
    If you would have these normal X-values : 0 ; 1 ; 2 ; 3 ; 4 ; 5 and a multiplier of 2 and ofset of 5 you would get the result on the X-as = 5 ; 7 ; 9 ; 11 ; 13
    Hope this helps
    Kind regards,
    - Bjorn -
    Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
    LabVIEW 5.1 - LabVIEW 2012

  • Problems graphing FFT of sine wave with Waveform Graph

    I know that this type of question has been posted
    many times, so I apologize for posting a similar one. Unfortunately,
    after reading quite a few threads I still have a question or two.
    Basically, I need to use a Waveform Graph (not an XY graph) to graph
    the magnitude of an FFT of a sine wave. I can't figure out which VI I
    should be using to obtain the magnitude of the FFT. I think I'm using
    the proper FFT vi (just the regular FFT.vi), but I can't find a VI
    dedicated to magnitude. Of course, I could be misinterpreting the
    pseudocode which I am following.
    If you
    wouldn't mind taking a gander at my VI, I'd appreciate any input you
    might have. The pseudocode is contained in the block diagram. You
    can see that I have another graph for just the sine wave, and I think
    that works as it should. I'm primarily concered about the waveform
    graph which isn't currently connected to anything, but should
    eventually be hooked up to the FFT.
    Thanks!
    Attachments:
    Labview5.vi ‏199 KB

    Your problem is that the output of the FFT is an array of complex numbers. Take the magnitude and you will be able to plot it.

  • Problems with Waveform Graph

    When I add a Waveform Graph into the Front Panel, the Block Diagram Window shows it as DBL instead of the usual indicator for the Graph. How can I solve this problem?
    Attachments:
    Question.vi ‏9 KB

    I don't see what the problem is. The default waveform graph type is an array of doubles and that's what your diagram has. If you create a waveform data type and wire it to the indicator, it will change the graph's icon.

  • Using a waveform graph, how to get all recorded data graphed?

    I record data from 6 channels using DAQmx with simulated channels and write to measurement file.  Then using read from measurement file, and waveform graph, I am trying to graph the data that has been recorded.  I am only getting a small amount graphed.  The same graph appears whether I have let the measure and record program run for 1 minute or for ten minutes.  It also displays a time at the end of the graph that is in the future.  What am I doing wrong?  Please help.
    Hillis Pratt, Jr.

    I am attaching the two VIs I have been trying to use.  I started with examples from NI and didn't go far from that.  Any assistance would be appreciated. 
    Attachments:
    Measure and Record Six Voltages with Express1.vi ‏119 KB
    Graph Measurement Files1.vi ‏89 KB

  • Y scale flip in waveform graph when using property node.

    I'm having problem with property node. I'm trying to build a stackable scope with Waveform Graph And dynamically change the number of plots. It is working. But The Y scale is flipping. The minimum goes on the upper part and the minimum scale goes down. when I change it appearance it's not very fast. It take about 1 or 2 second on my computer.
    The way it is build actually is:
    Cluster_1 is containing 8 clusters. And each of the 8 clusters are containing a Waveform Graph. By reference I change the property of each Waveform to make visible or not each of the Waveforms.
    First I would like to solve the scale problem and second accelerate the redrawing of my scope.
    Maybe there is an other way t
    o do what I need.
    Thanks.
    Nitrof
    Attachments:
    MultiScopeExample.llb ‏192 KB

    Wow, you have a neat program! The problem with your y axis flipping is because the last four charts in the cluster were programmed with a flipped axis. I relabeled the charts and it worked correctly.
    From what I could tell with your code, you do not need the sequence structures. The one inside of the even actually runs the same code twice. Remove this duplication and you should see improvement. Also clusters are slow, so you should not expect it to blink back with additional coding. Use defer panel updates to get that behavior. I incorporated these changes and attached the program.
    Jeremy Braden
    National Instruments
    Attachments:
    MultiScopeExample.vi ‏163 KB

  • Unexpected Windows cursor/Waveform Graph cursor behavior

    Hi,
    I got a very strange Windows cursor behavior with waveform graph. Simplified VI is attached.
    LabVIEW 2014 SP1
    The problem is:
    The VI contains only one waveform graph.
    1. I start the VI. Cursor Movement Tool is selected in the Graph Palette by default. Corresponding “Cross with dot” Windows cursor appears when mouse is moved over the plot area (see image). So far so good.
    2. I select Zoom in the Graph Palette and use it two-five times (second image).
    3. I select Cursor Movement Tool in the Graph Palette again but Windows cursor does not change as it should. It is an open cross now (third image); i.e. the same as shall appear when cross of Graph Cursor Lines is reached.
    4. I click mouse three-seven times anywhere in the plot area and the cursor becomes normal (as in the first image).
    The problem is not only in shape of the Windows cursor. The whole Graph cursor functionality does not work properly if the Windows cursor has the wrong shape.
    Please advise what could cause this problem.

    It seems, i cannot explain the question in good way
    It is not about my data or zooming. It is about strange bahaviour of the Graph. The following sequence of steps illustrates the problem and shows that the zooming is not the issue (or, at least, not the main issue):
    I do the following:
    1. Start the VI.
    2. Select first Graph cursor in Corsor palette and use pop-up menu "Bring to Center".
    3. Zoom couple of times (not too much) keeping the Grapg cursor visible.
    4. Select Cursor Movement Tool in the Graph Palette.
    5. "Open cross" Windows cursor appears from the beginning. I cannot pick up the Graph cursor.
    6. Click left button of the mouse several times in any poin of the graph area.
    7. Windows cursor is changed to the normal "cross with central point".
    8 Now I can pick up the Graph cursor.
    I would suspect problems with zoom until p.5. However p.6-8 are done without any change of the zoom.
    By the way, I found more:
    If I try to move the Graph cursor after p.5, the whole graph moves and fires event "Scale Range Change". It must not happen with Cursor Movement Tool selected.
    I can guess only about some strange setting of the graph. May be I am not aware about them

  • Waveform graphs not autoscaling in X

    Hello, I have an annoying problem in drawing data with waveform graphs (LV2011).
    I will put it in a short statement: I need to compel graphs to properly rescale on the X scale.
    Now the details:
    I need to show data acquired during a given "event", updating a graph every second. I don't know how long the event will last, but I prefer not to set the X-axis as autoscaled because I don't like the axis rescaling effect. So I initally set the graph as fixed (ScaleFit=0) to a reasonable width in abscissa. When the acquisition ends, I want to show all the data maximized on the available control width, so I set the X axis scaling property to 2. Unfortunately, the graph is often not rescaled. I also tried leaving ScaleFit to 0 and setting the Range:Maximum to the proper value or using the ForceRedraw method, to no avail.
    Do you know any trick to compel the X axis to be rescaled?
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

    No, GerdW, it doesn't work
    I tried also with ScaleFit=1 (Autoscale once now) and with more complicated pattern (for example reinit to default, then autoscale, then rewrite data). No success.
    In all cases, it mainly works (but not always) when I run the program in the LV environment. The very opposite when I deal with an executable.
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • Chebychev Polynomial fitting results show multi lines

    I am using "nonliear curve fit.vi" with defined Chebychev Polynomial  function to fit XY data.  Strangely, if I enlarge the upturn part, I clearly see the fitting results show multi-lines (2-4) . Please the the attached snapshot.
    weitong
    LV2013
    Attachments:
    chebychev Ploynomial fit.PNG ‏48 KB
    chebychev Ploynomial fit-whole.PNG ‏19 KB

    Thanks.
     I found the reason: the data X values are not mononicaly, i. e.  there are local oscillations at some region.
    After sorting the raw data, the fitting results show single line. 
    Is the sorting of X values necessary before Chebychev Polynomial fitting?

Maybe you are looking for

  • Error doing outgoing payment against A/P Downpayment Request

    Hi, I am working on SAP B1 8.8 PL00(evaluation version). While posting Outgoing Payment against A/P Downpayment Request,system  displays following error message-'Invalid Account Code'. It happens for both the payment means-Check as well as Cash. In G

  • Account determination for posting area Aggr

    Hi experts,     i'm very new to ISU and would like your help on an issue.i am using ETHIM to post mass act aggr posting for the serv prov.i get an error *Key selection not defined for application &1, posting area &2* msg no 005.. exact error msg woul

  • How do I get a scroll bar in html

    Here is my problem: My landing page is 1000x600 and the page size setting is set to that, however my Gallery page is 1000x1200. When I go to the test movie or the browser html default test, when you navigate to my Gallery page there is no way to scro

  • 3rd Gen nano (RED) screen issue

    I've just got my 3rd Gen nano (RED) but it seems that there is an issue with the backlight of the screen. Initially, when I tried to charge it with my MacBook with the USB cable, it didn't charge at all. I have to plug it into the power adapter to ge

  • Inbound idoc posting directly even with 'Trigger by background' option

    We have inbound idocs coming into ECC from Siebel via PI. The partner profile is setup for "Trigger by background program' .So that we can run the job RBDAPP01 to sweep these status 64 idocs. But we don't get a chance as the idocs are getting posted