01-13-2025 02:32 PM - edited 01-13-2025 02:57 PM
Hi, Have a good day.
I am having trouble with the formula addition step, does anyone have any ideas about my mistake here or how I can solve it in a different way?
I am collecting data as voltage but I want to obtain it as inches after the formula. (I am using an ultrasonic transducer)
The formula is going to be:
y = (0.0332x3 - 0.5023x2 + 22.425x + 17.538)*0.393
y is going to be inches value I want.
x is an voltage value measured as an voltage.
If you have any other questions , please let me know!
Thanks!
01-13-2025 02:50 PM
I don't see a formula node.
01-13-2025 02:57 PM
Sorry, I uploaded wrong picture.
This is the original block diagram.
I need to add that formula inside this block diagram, but not sure where and how to do that.
01-13-2025 03:17 PM
I solved the problem.
Thank you !
01-13-2025 03:47 PM - edited 01-13-2025 04:03 PM
@Cerdem wrote:
I solved the problem.
Thank you !
While you might have solve that particular problem, there are still more problems
01-13-2025 04:10 PM
@Cerdem wrote:
The formula is going to be:
y = (0.0332x3 - 0.5023x2 + 22.425x + 17.538)*0.393
Assuming it should be applied to all array values, here's how to do that:
01-13-2025 05:29 PM
@altenbach wrote:
@Cerdem wrote:
The formula is going to be:
y = (0.0332x3 - 0.5023x2 + 22.425x + 17.538)*0.393Assuming it should be applied to all array values, here's how to do that:
And if you move the multiplication before the polynomial evaluation, it will happen at edit time instead of run time.