Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted

08-29-2014 04:48 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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?

Solved! Go to Solution.

- Tags:
- GerdW

Highlighted
Options

Solution

Accepted by topic author rkamat

08-29-2014 04:55 AM - edited 08-29-2014 04:57 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

Highlighted
Options

08-29-2014 06:02 AM - edited 08-29-2014 06:04 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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

- Tags:
- GerdW

Highlighted
Options

08-29-2014 06:44 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

Highlighted
Options

08-29-2014 06:56 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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