From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,602 Views)
Solution
Accepted by 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,597 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,585 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,563 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,556 Views)