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

GerdW

Knight of NI

02-13-2019 02:00 AM - edited 02-13-2019 02:01 AM

Options

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

Hi sam,

Hi GerdW, yes monotonously rising number like (15 16 17 23 24 26 26 27),

So you want to check if

x[n] > x[n-1]

?

Just do that!

(The proper check for "monotonously rising" functions would be to compare for ">=", but your example suggest to check just for ">"…)

And 2nd yes Linear searching, actually if thousands of rows find then one by one search take time. I need to search data from file for verification.

I still don't know why you want to use any kind of linear search here…

Best regards,

GerdW

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

GerdW

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

02-13-2019 07:48 PM

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

@GerdW wroteI still don't know why you want to use any kind of linear search here…

Hi GerdW, for example we get a value of B from another algorithm (let suppose it is 15), now we have 2 knobs in graph (knob A and knob B), we start knob A and knob B both with zero (0) and increment in both knob with 5. Know we check that when both knob value is greater than B. This is current algorithm which i want to change it.

GerdW

Knight of NI

02-14-2019 01:15 AM - edited 02-14-2019 01:17 AM

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

Hi sam,

now we have 2 knobs in graph (knob A and knob B),

Why and how do you have "knobs in graphs"?

Know we check that when both knob value is greater than B.

Sure! Its a simple comparison with a boolean operation:

IF knobA > B AND knobB > B THEN …

Is there something you want to show in your image? I don't find anything related to "knob A", "knob B" or "B" in your image…

Best regards,

GerdW

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

GerdW

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

02-18-2019 10:34 PM

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

GerdW

Knight of NI

02-19-2019 01:17 AM

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

Hi sam,

can binary search algorithm easily implement in labview

Yes.

if possible then send me link if possible.

Search this forum to find some implementations of a binary search…

Best regards,

GerdW

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

GerdW

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

02-20-2019 11:48 PM

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

if possible then send me link if possible.

Search this forum to find some implementations of a binary search…

i tried to find but i didn't find. For example the values search from xls file take string as a input and display selected string column which is numbers

GerdW

Knight of NI

02-21-2019 01:28 AM

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

Hi sam,

searching for "binary search algorithm labview" brings me to this AppNote from NI…

Best regards,

GerdW

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

GerdW

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

02-26-2019 01:38 AM

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

@GerdW 작성:

Hi sam,

searching for "binary search algorithm labview" brings me to this AppNote from NI…

Hi GerdW, I thanks allot man i done search code, but now i need one more suggestion, currently my code search specific range of data from selected column. For example, if the data in selected columns are like this ( 2 44 7 3 2 6 3 2 6 3 2 6 4 5 2 5 55 66 77 33) and my current code search data from 2 to 6 values. But i need the data which is monotonously rising at the same time ( 2 44 7 **3 2 6 3 2 6 3 2 6 4 5 2 5** 55 66 77 33) like this only these values it can select. For example the range between 2 to 6 are at least 15 times continuously maintain in this range then these values are store in array. Here is my current code VI.

Download All

Virus scan in progress. Please wait to download attachments.

GerdW

Knight of NI

02-26-2019 02:40 AM

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

Hi Sam,

some thoughts:

When you want to search specific ** numeric** ranges you should operate on

But i need the data which is monotonously rising at the same time

Then you need to apply more than just one condition: "InRange AND Rising"…

You still don't use AutoCleanup…

Best regards,

GerdW

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

GerdW

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

02-26-2019 03:37 AM

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

@GerdW 작성:

You still don't use AutoCleanup…

How i use AutoCleanup