LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding number of datapoints within time interval

It looks like you are already creating the timestamp when you scan it from the string, just run that directly into the Date to Seconds vi.

the attatched vi shows what I mean.

Message 11 of 13
(332 Views)

Aha!

I see, I see! Thank you very much! But, just wondering, when I run the VI I really can't see any difference between the input and the output (other than the layout and no hundredths of seconds). Am I still doing something wrong, or what is it?

 

Greetings

Kristoffer

0 Kudos
Message 12 of 13
(329 Views)

It may not look different, but the timestamps in the array that you create can be used to do math with.

If you just have the string time, you cannot just wire them into greater than or less than statements.

 

So what you are effectively doing is preparing the times so that you can ask, "Is this time greater than the lower time of my interval?" and "Is this time less than the end time of my interval?"

0 Kudos
Message 13 of 13
(323 Views)