ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Math equation with multiple analog inputs

I have a complex math equation which uses several analog inputs.
How best to solve this equation: display=((-4.499*AI29+420.38)*((AI29*(AI10+460))/(AI16-AI30/13.515625))^.5)? Where AIn are analog input channels.
There are 4 analog inputs used, and one is used twice.
0 Kudos
Message 1 of 4
(3,665 Views)
Since you have the formula, go ahead and use the formula node. Assuming that I've copied everything correctly, it should look like the attached jpeg file. What I haven't done is anything in regard to extracting the analog inputs from a daq result since I don't know how many total channels you're using or the scan order. That's should be simple for you to implement - just some array indexing.

Also, note the exponetiation notation. It's a little different in older versions of LabVIEW so check your LabVIEW help file to see what is correct for the version you're using.
Message 2 of 4
(3,665 Views)
Thanks for the help Dennis. My problem is that I did not know about formula node. I was expecting to find it in math or numerical functions.
0 Kudos
Message 3 of 4
(3,665 Views)
fORMULA node is in
Functions> Structures
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 4
(3,665 Views)