LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculating time between two signals

Hi all,

 

I have OPC server and shared variables, which represent my inputs(0 or 1);

 

Let's say that I have only two inputs, what I want is to measure time between them, for example when first go to 1 and then after some time, second go to 0;

 

What is the easiest way to get this time in LabView?

 

 

thanks

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 1 of 6
(3,113 Views)

Hello,

 

If you right click on the shared variable, you can activate time stamp, so basicaly you can read the time when the last value was updated, you just compare and substract the values.

 

Kind regards,

 

Ion Rosca

Message 2 of 6
(3,086 Views)

Did you manage to solve it??

Message 3 of 6
(3,054 Views)

First, tnx for idea, I now use "sql query";  I don't know yet which one will be best for my problem, did you have experience with this "time stamp"?

 

thanks again 😉

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 4 of 6
(3,045 Views)

Yes, I've used it to see if the value was updated and was comparing using a shift register with the previous value. Try this, it is easy to implement.

Message 5 of 6
(3,035 Views)

Here you have an example application that monitors timestamp, and performs logic based on the comparison.

 

ForumSHVT.png

 

Good luck, Piotr

Piotr Kruczkowski
Certified TestStand Architect
Certified LabVIEW Architect
Message 6 of 6
(3,027 Views)