Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Nearest time present in the time Stamp Array

Dear All,

             I have a 1-D Array of Date and Time String. In this Array i am searching a time String. If this time string present in this array i got the index of the array but if this time string is not present in the array at that time i want to search the index of nearest time string present in the date time string array.

 

If any one know then please help me.

0 Kudos
Message 1 of 2
(3,628 Views)

Hi NI SCADA,

 

working with strings isn't very useful when it comes to mathematics...

 

So you should convert your strings to timestamps. Then it is really easy to find to best match!

 

Edited: Attach vi in LV8.6...

Message Edited by GerdW on 09-08-2009 02:44 PM
Best regards,
GerdW


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