LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

if formula Node

Solved!
Go to solution
Highlighted

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
(1,091 Views)
Highlighted
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 LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 2 of 5
(1,086 Views)
Highlighted

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

0 Kudos
Message 3 of 5
(1,074 Views)
Highlighted

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 LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 4 of 5
(1,052 Views)
Highlighted

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
(1,045 Views)