08-21-2008 03:18 PM
I'm using Labview 8.5 and the Control Design and Simulation toolkit or module or whatever it is. Anyway, I'm trying to build a controler where my desired input (Yd) is a function of a measured variable (X, see attached picture). Do I have to discretize the polynomial into a lookup table, or can I implement the polynomial as is? And, whichever way is the way to go, which VIs would I need to do so?
Thanks,
Brian
08-21-2008 11:25 PM
Hi Brian,
i don´t understand what you need? Do you try to build a polymorphic vi, like "Write to Spreadsheet File"?
Mike
08-21-2008 11:28 PM
In the Mathematical VIs there's a palette for polynomial calculations. These are not available in LabVIEW base.
I think you need Polynomial Evaluation:
Ton
08-22-2008 10:14 AM
08-22-2008 01:13 PM
bcglaxer,
If your polynomial coefficients are known, then you can do something like the attached screenshot with a Simulation loop. Simply multiply and add the values. You would probably replace the 'a', 'b', and 'c' controls with contstants, and the 'x' control would be replaced with whatever code you are using to dermine the value of 'x'. Is this what you had in mind?
Chris M
08-22-2008 03:46 PM
Thanks for all the suggestions! There certainly are a lot of ways to go about this. I've used Polynomial Evaluation for now but may try the other approaches in the future if I run into problems. Thanks again,
Brian