LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Polynomial LabView

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

0 Kudos
Message 1 of 6
(2,563 Views)

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?

How to Learn LV

0 Kudos
Message 2 of 6
(2,558 Views)

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

0 Kudos
Message 3 of 6
(2,542 Views)

"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.

 

 

0 Kudos
Message 4 of 6
(2,534 Views)

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?

0 Kudos
Message 5 of 6
(2,531 Views)

I isn't connected, so dx will be -N (a constant within the loop) and X will be 0 ...

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 6
(2,475 Views)