LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find approximate time stamp from an array of time stamp

Solved!
Go to solution

Hi,

 

Can some one suggest a logic to find out the index from a time stamp array for a specified time stamp constant.

 

The array may not conatin the exact time with specifed seconds. So it can be near by time value.

 

 

(The array of time stamps may have around 10,000 elements)

 

 

Thank you.....

0 Kudos
Message 1 of 5
(2,707 Views)

Well, it depends on how picky your sorter needs to be. If you know that there will be a timestamp with the same minutes, and you're okay rounding to minutes, then you could do this:

 

time.png

 

--Ryan S.

Message 2 of 5
(2,697 Views)
Solution
Accepted by topic author thirumala

Here's an approach that will find the index with the closest time stamp:

find best time.png

Message 3 of 5
(2,689 Views)

Dear CMal,

 

Thanks for providing the solution....

0 Kudos
Message 4 of 5
(2,643 Views)

 

 

Thanks for providing the reply....

0 Kudos
Message 5 of 5
(2,641 Views)