12-07-2018 11:41 AM
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.
12-07-2018 01:06 PM
@NewcomerLabview wrote:
I am new at using LAbview ...
Lesson #1, its LabVIEW. (Note the correct letter case). 😄
12-07-2018 01:33 PM
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)
12-07-2018 05:54 PM
Last Question is how did you make an array of 3 controls like it is in the picture?
12-07-2018 06:21 PM
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.
12-08-2018 06:18 AM
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.
12-08-2018 09:37 AM
@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.