LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find position

Solved!
Go to solution

Hi kourte,

 

your last post only has a big snippet attached with lots of references and property nodes, which makes it hard to analyze your VI.

 

You also didn't mention your problem: "I successful to display informations on my array but it don't display the good information"

How can I decide what's "good" and what's "bad" information?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 21
(3,027 Views)

Hye Gerd,

 

you can find the folder of this application and an example of the data.

Robot Embarassed

For me the "good information" it's when the information is displayed in the table is between the two timestamp. And "bad informations" are all those which are not included in.

 

Thank's.

Kourte

 

Download All
0 Kudos
Message 12 of 21
(3,020 Views)

Hi kourte;

 

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

A binary search like yours will only work when the data is sorted. And the dates in your DataTest aren't sorted...

 

Another try to load your file:

check.png

This loads your (small) example file. It shows how to convert timestamps from string in a much more easy way than you do. It puts the data into a cluster array. That array is sorted by date. Use this as an example how you could load your files (maybe line by line).

 

Your VI is just a mess!

- In your "CHECK"-VIs you are loading several lines from the file, I don't know what you why you do this...

- Loading from a file at several places will always increment the filepos index, so you simply created a big messy race condition with all those FileRead calls...

- I don't know why you're using an ElapsedTime VI when you want to check dates from a text file...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 13 of 21
(3,003 Views)

Hello Gerd,

 

most of my data files are sorted by date (70% of my files)  but not every time.

Generally, my files are more of 70000 rows that why I would like divide the file in 2 or more because when I search in their files it's very long..

I use ElapsedTime because at the time when I try my project, I see a problem with upper greater, upper lower... With elapsed this problem disappear.

 

Kourte

0 Kudos
Message 14 of 21
(2,995 Views)
Solution
Accepted by topic author kourte

Hello everybody,

 

It's good I have found the solution.

I have restarted all over from the beginning.

If you are interested,this is a solution.

 

Thank's for your help.

Bye.

 

 

0 Kudos
Message 15 of 21
(2,974 Views)

Hi kourte,

 

it's nice to see you finally made it, even with a fresh start...

 

Remarks:

I would put all those operations, which are the same in all the cases, in subVIs to further clean up the VI. You also have several coercion dots in your VI, it may run "better" when you avoid them.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 21
(2,975 Views)

Hello Gerd,

 

thanks for your differents remarks.

I will try next time to better clean my sub Vi's.

 

+

0 Kudos
Message 17 of 21
(2,969 Views)

RE little question,

 

now I try to convert the 1D array(of the program)  to 2D array. Would you have an idea of ​​how to?

Thanks

0 Kudos
Message 18 of 21
(2,940 Views)

Hi kourte,

 

use BuildArray...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 19 of 21
(2,935 Views)

Hello Kourte,

 

For any new question please create a new topic, that will help people looking for the same solution.

 

Regards,

Mathieu P. | Certified LabVIEW Associate Developer
National Instruments France


Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...

0 Kudos
Message 20 of 21
(2,931 Views)