# LabVIEW

cancel
Showing results for
Did you mean:

## formula nodes

I'm using a Formula Node and my out put is always the number the same

Z= -4.08442104999969e-1*X+2.21688421e1;

the value of X changes

not sure what im doing wrong

thanks

Message 1 of 11
(3,186 Views)

## Re: formula nodes

Please attach your code or an image of the block diagram. You can do both by creating a Snippet.
Message 2 of 11
(3,182 Views)

## Re: formula nodes

Hi MCHCJWT,

funny as my solution seems to be ok:

And a formula node works the same as the expression node above:

Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 11
(3,179 Views)

## Re: formula nodes

I also question why you are using a formula node instead of the LabVIEW math functions.
Message 4 of 11
(3,176 Views)

## Re: formula nodes

Both use (more or less) basic LabVIEW functions…

Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 11
(3,167 Views)

Message 6 of 11
(3,164 Views)

## Re: formula nodes

Hi,

ok, nice image…

What is wrong? Where do you get wrong unexpected results?

Can you attach your VI with some default data?

Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 11
(3,152 Views)

## Re: formula nodes

First i would to thank you for you help.  i'm very new to lab view and this was someone elses code that im using

i attached the vi.

Select semi rigid cable type should be 3

lenght 22

Message 8 of 11
(3,138 Views)

## Re: formula nodes

The numbers aren't always the same, but you're not looking enough decimal places, see the attached VI.

Message 9 of 11
(3,131 Views)

## Re: formula nodes

Hi MC,

and you will see in the XY graph ReturnLoss is changing with frequency!

Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 11
(3,129 Views)