LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Solve a nonliear equation with external inputs?

A nonlinear system is depicted as follows:

x = 2*a-b+w-2*m;
y = b-a+m-w;
z = 2*a+b-2*m-w;

x*z^3/(m*w)-kp1 = 0;
y*z/(x*w)-kp2 = 0;

where the parameters a,b kp1,and kp2 are inputs, the parameters m and w are outputs.

We want to solve the last two equations with the "nonlinear equation solvers" to setup the model relating the inputs and outputs.

How can I build the VI?

I tried to enter the equations refering to "Equation Explorer Example.vi", but it can not work with inputs variable.

I also tried to build the equations with "concatanent string",etc., but it is rather a tedious works even to make a simple equation.

Thanks in advance.
Dongbin
0 Kudos
Message 1 of 3
(3,297 Views)
Hello Dongbin,

I created an example program which I hope is what you are looking for. You may need to modify the "Start" and "End" matrices as you see fit, but the important part is how I got the string arrays formatted for the Nonlinear Equation Solver.

I hope this helps! Happy Holidays!

Liz Fausak
National Instruments
Download All
0 Kudos
Message 2 of 3
(3,297 Views)

Hi Liz,thanks for the example! I tried to write a subvi to solve an nonlinear equation using the example, however it never give a solutions! Would you please take a look at my vi and give any hints?

Many thanks!

Camu

0 Kudos
Message 3 of 3
(2,940 Views)