DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

ChnApprXYCalc Order Limit

I am running the evaluation version of Diadem 10.2 and I have created a routine that will show a graph with a polynomial fit of the data.  Then a SUD will show up and ask the user whether to increase/decrease/accept the order of the polynomial fit.  The code works perfectly up to a 9th order polynomial.  I use the following loop to set the parameters for the ApprAnsatzFct(i). 
 
Order is a global variable that is incremented/decremented via a SUD and is limited to 11.
 
  FOR i= 1 TO 26
    IF i <= Order+1 THEN ApprAnsatzFct(i) = "Yes"
    IF i >  Order+1 THEN ApprAnsatzFct(i) = "-"
  NEXT ' i
Call ChnApprXYCalc(1, 2, "/ApproximatedX", "/ApproximatedY", "Partition complete area", 100, 1)
 
 
Per the help file you can have up to an 11th order polynomial, but whenever I specify a 10th order polynomial I get an error.  "Selected more than 10 setup functions"  This occurs on the line that has the ChnApprXYCalc command to perform the polyfit.  I was wondering if this is a limit to the evaluation version or what.  Could it be that I am not allowed to have the x^0 and x^1 constants if I want to see the x^11 constant.
 
Any thoughts would be greatly appreciated.
 
Wayne Yount
0 Kudos
Message 1 of 3
(3,492 Views)
Hello waynecj7,

you can specify up to 10 polinomial. That means 10 out of the 12 possible polinomial functions and it is up to you which one.

Greetings
Walter
0 Kudos
Message 2 of 3
(3,490 Views)

So if I needed an 11th order polynomial I would not be able to know what the offset and x^1 terms are?  I don't need this functionality for this application, but it seems a little like a false claim if NI says that you can have an 11th order polynomial but not all the terms.  Oh well.  Thank you for comfirming what I suspected.  I will just limit my application to a 9th order polynomial, which should be plenty.

Wayne

0 Kudos
Message 3 of 3
(3,482 Views)