LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

square function plot

Solved!
Go to solution

Thank you all a lot. I am new at using LAbview thats why my programm isnt the best, but I hope that with all the advises I got from you I can change it a litle.

0 Kudos
Message 11 of 17
(1,320 Views)

@NewcomerLabview wrote:

I am new at using LAbview ...


Lesson #1, its LabVIEW. (Note the correct letter case). 😄

0 Kudos
Message 12 of 17
(1,307 Views)

OK, here's a simple example leveraging the built in polynomial function to do all you need.

(Every part has a reason, so make sure to study and understand it. Ask questions if needed)

 

 

Roots.png

0 Kudos
Message 13 of 17
(1,306 Views)

Last Question is how did you make an array of 3 controls like it is in the picture?

0 Kudos
Message 14 of 17
(1,294 Views)

There are plenty of ways, e.g .

 

- Drop an array container and drop a control in it. Resize for 3 elements.

- Right-click P(x) terminal... Create control, resize.

- place scalar control, right-click ... Change to array, resize.

- etc.

0 Kudos
Message 15 of 17
(1,290 Views)

If the parameter a is less than 0 the "arms" of the square plot should go to -infinity but they go to + infinity. How could I fix this because I cant it figure it out somehow. 

Thanks in advance.

0 Kudos
Message 16 of 17
(1,277 Views)

@NewcomerLabview wrote:

If the parameter a is less than 0 the "arms" of the square plot should go to -infinity but they go to + infinity. How could I fix this because I cant it figure it out somehow. 


You simply need to read the documentation! The quadratic term is "c", not "a". The term "a" is the constant term and will not make the graph go to any of the infinities, it is just a simple offset that does not depend on x.

 

y = a+ bx +cx²

 

The current definition is much more convenient, because if you would change to a different order (cubic. linear, etc.), the definition of "a" does not change. If you want the terms to be in a different order, reverse the array right after the control.

0 Kudos
Message 17 of 17
(1,267 Views)