cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

Find position

¡Resuelto!
Ir a solución

Hello,

 

I have several huge files. The problem is when I would like work with them, it's very long.

That's why, I try to search the position in the file. It's a same principe when you search one word in a dictionnary. If you search the word "painter" you known it's after the middle of the dictionnary.

Therefore you go directly in this section.

I would like apply the same idea but instead of a word I'm looking for dates. But it doesn't work.

 

You can found in attachment my vi.

 

Thank in advance.

0 kudos
Mensaje 1 de 21
4.825 Vistas

I believe your looking is called a binary search. for the principle just type that into google

 

i have found an example on this site but have not looked into it to see how applicable it is too you tho

 

http://zone.ni.com/devzone/cda/epd/p/id/220

 

hope it helps 

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
0 kudos
Mensaje 2 de 21
4.822 Vistas

Hi kourte,

 

maybe the problem is your mixing of the state enum with some file position numbers in case "1" of your case structures?

 

I suggest making that enum a typedef!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 kudos
Mensaje 3 de 21
4.821 Vistas

Helo Akiel and GerdW,

 

Thanks for your help.

  


Akiel a écrit :

I believe your looking is called a binary search. for the principle just type that into google

i have found an example on this site but have not looked into it to see how applicable it is too you tho
 
http://zone.ni.com/devzone/cda/epd/p/id/220


hope it helps


  

 I have try this solution before but doesn't correspond completely to what I want.


GerdW a écrit :

Hi kourte,

 

maybe the problem is your mixing of the state enum with some file position numbers in case "1" of your case structures?

 

I suggest making that enum a typedef!


 Oops, I have change one thing before send the file and I don't see it change my enum. But the problem comes not from here.

0 kudos
Mensaje 4 de 21
4.808 Vistas

Hi kourte,

 

"Oops, I have change one thing before send the file and I don't see it change my enum. But the problem comes not from here."

I do believe that's part of the problem when you screw up your state machine like this!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 kudos
Mensaje 5 de 21
4.794 Vistas

Hello GerdW,

 

yes it's a part of my problem, thanks. I have correct this error but it's around in circles... I get no result

0 kudos
Mensaje 6 de 21
4.792 Vistas

Hi kourte,

 

you still screw up your statemachines.

In case 1 you don't provide a new state but instead wire the file position as new state. I believe this will not work...

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 kudos
Mensaje 7 de 21
4.785 Vistas

Hi GerdW,

 

I have considered your comments but I have no information that appears.

Do you see why?

0 kudos
Mensaje 8 de 21
4.750 Vistas

Finaly, I successful to display informations on my array but it don't display the good information...

0 kudos
Mensaje 9 de 21
4.736 Vistas

someone has an idea ???????

0 kudos
Mensaje 10 de 21
4.704 Vistas