LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Searching from excel file

Solved!
Go to solution

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 LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 41 of 96
(1,667 Views)

@GerdW wrote

I 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.   

 

 

 

 

0 Kudos
Message 42 of 96
(1,657 Views)

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 LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 43 of 96
(1,634 Views)

hi, can binary search algorithm easily implement in labview, if possible then send me link if possible. thanks for your always positive response. 

0 Kudos
Message 44 of 96
(1,616 Views)

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 LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 45 of 96
(1,610 Views)

 

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

0 Kudos
Message 46 of 96
(1,602 Views)

Hi sam,

 

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

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 47 of 96
(1,592 Views)

@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
0 Kudos
Message 48 of 96
(1,558 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 49 of 96
(1,552 Views)

@GerdW  작성:

 

You still don't use AutoCleanup…


How i use AutoCleanup

0 Kudos
Message 50 of 96
(1,549 Views)