02-13-2019 02:00 AM - edited 02-13-2019 02:01 AM
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…
02-13-2019 07:48 PM
@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.
02-14-2019 01:15 AM - edited 02-14-2019 01:17 AM
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…
02-18-2019 10:34 PM
hi, can binary search algorithm easily implement in labview, if possible then send me link if possible. thanks for your always positive response.
02-19-2019 01:17 AM
02-20-2019 11:48 PM
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
02-21-2019 01:28 AM
02-26-2019 01:38 AM
@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.
02-26-2019 02:40 AM
Hi Sam,
some thoughts:
When you want to search specific numeric ranges you should operate on numeric values! Why do you operate on string values?
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…
02-26-2019 03:37 AM
@GerdW 작성:
You still don't use AutoCleanup…
How i use AutoCleanup