LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

if formula Node

Solved!
Go to solution

Hi,

 

I am using a formula node and the IF Command to generate an output based on User Input. I have posted a couple of screenshots of the simplified version of my VI. Every time I get the last value. What am I doing wrong?

Message 1 of 5
(2,581 Views)
Solution
Accepted by topic author rkamat

Hi rkamat,

 

don't use a formula node here…

 

- When your x value is always an integer you could use an array constant holding your Y values and use x to index the array…

- When your x value isn't an integer you could use the function Interpolate1DArray instead of IndexArray!

 

You also made a typo in your formula node. I'm sure the formula node doesn't like a comma as decimal separator!

Best regards,
GerdW


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

Thanks! It worked. I work on the german version of Labview. Comma is the decimal separator in German

0 Kudos
Message 3 of 5
(2,564 Views)

Hi rkamat,

 

I also work with a German WindowsOS, but I use the point as decimal separator…

 

You know you can change that setting?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,542 Views)

I just found out how to do it. But I might mess up the remaining model. So lass mal so..:)

0 Kudos
Message 5 of 5
(2,535 Views)