03-16-2020 07:03 PM
Using MathScript create a VI that computes and plots the second-order polynomial y = Ax^2 + Bx + C. The VI should use controls on the front panel to input the coefficients A, B, and C, and also should use front panel controls to enter the number of points N to evaluate the polynomial over the interval x0 to xN-1. Plot y versus x on a waveform graph indicator
Thank you
03-16-2020 07:06 PM
Okay. You've stated what you need to do. (This sounds like a homework question!)
What have you done?
Where are you stuck?
Have you had some LabVIEW tutorials in class?
Have you seen the tutorials available online?
03-16-2020 07:32 PM
Hello,
Sorry, I should have been more specific. I attached a screenshot of what I have so far and where I am stuck.
Definitely, my connections are not completely right (I do not know what connection should go to l but it is not to i right?) and the code might have some errors. I have tried many other ways but I cannot get it to work as it should
Thank you
03-16-2020 07:39 PM
"might have some errors". Well does it or doesn't it? Will it let you run it? If not, what do the errors say?
You have a variable I (Is that "eye" or "ell"?) Its tunnel is unwired. But you use it in your equation. What is it there for?
You have a variable "u" that you don't define.
What is the purpose of "linramp"?
Go back and review your classroom notes.
03-16-2020 07:40 PM
Please don't attach code pictures, because we cannot run or test them! Attach the VI!
All this would be trivial in classic LabVIEW code, but would not be much harder in Mathscript.
What is wired to I? Are you sure the code looks right? Seems all very wrong.
A, B, C terminals belong before the FOR loop, because the should remain constant during the loop, right?
03-17-2020 05:10 AM - edited 03-17-2020 05:11 AM
I isn't connected, so dx will be -N (a constant within the loop) and X will be 0 ...
/Y