LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to solve these 3 quadratic equations using Labview....

15x² - 5x = 0

x² + 5x = -6

x² - 4x + 4 = 0

 

 

I have no idea where to start in my Block Diagram. If anybody can help me set this up, I would greatly appreciate it.

0 Kudos
Message 1 of 9
(4,830 Views)

Also, I do have some basic knowledge of the Mathematics functions and how they work.

0 Kudos
Message 2 of 9
(4,822 Views)

@efairbanks135 wrote:

Also, I do have some basic knowledge of the Mathematics functions and how they work.


You can find examples in the Mathmatics subfolder folder of your labview example folder. Also try searching using " Help--> find Examples--> --> Analysis and Mathematics -->script and formulas.

 

You will find examples there to start.

 

Also Look at these:

 

Mathscript and Formulas

 

Non linear system solver vi 

0 Kudos
Message 3 of 9
(4,810 Views)

Also there are a bunch of free online tutorials for LabVIEW at the bottom of this page.

 

https://decibel.ni.com/content/docs/DOC-40451

0 Kudos
Message 4 of 9
(4,804 Views)

What do you want to do?  Can you describe it in words?  What would you do in Matlab, or C++?  Are you trying to "find the value of X that makes this function of X go to zero"?

 

If you don't know what you want to do, it is very hard to program that task in LabVIEW or in any other language.

 

Bob Schor

0 Kudos
Message 5 of 9
(4,762 Views)

(-b +/- Sqrt(b^2 - 4ac))/2a

 

where ax^2 + bx + c = 0

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 7 of 9
(4,703 Views)

@efairbanks135 wrote:

15x² - 5x = 0

x² + 5x = -6

x² - 4x + 4 = 0

I have no idea where to start in my Block Diagram. If anybody can help me set this up, I would greatly appreciate it.


 

Is each line a separate problem to be solved for x? Is x real or complex?

 

Is this a math question or a LabVIEW question?

 

0 Kudos
Message 8 of 9
(4,684 Views)

Everything you need to do this the old fashion way using the quadratic formula is on the Numeric pallette. If you don't know how to use these functions, use the context help and take some tutorials. 

Capture.PNG

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 9 of 9
(4,669 Views)