LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get instantaneous values according to elapsed time?

How can i get the instantaneous value at a specified time (say 2.5 seconds) when my VI runs for 5 seconds?

 

 

Any help is much appreciated. Thanks!

 

 

noviceLabVIEWuser

 

 

0 Kudos
Message 1 of 5
(3,728 Views)

Right click on the orange wire inside the loop and click Create - Indicator.  This indicator will be placed on the front panel and will be updated with the elapsed time every loop iteration.

 

- tbob

Inventor of the WORM Global
Message 2 of 5
(3,723 Views)

tbob,

 

thanks again for helping;  I know that I can create an indicator from the elapsed time wiring.  I guess my question is, how can I save the instantaneous value @ 2.5 seconds (maybe in a shift register) while my VI runs until 5 seconds have elapsed?

 

thanks!

0 Kudos
Message 3 of 5
(3,721 Views)

disregard my previous post tbob,

 

 

I figured it out. thanks again!

 

 

 

0 Kudos
Message 4 of 5
(3,716 Views)

I have already done the coding, so compare this to yours.  When using floating point numbers (orange wires), you should not use equals function because of rounding off errors (5 might be represented by 4.99999999 or 5.00000000001 and equal will fail).  Use the In Range function like shown here:

 

ValueAt2.5sec.png

- tbob

Inventor of the WORM Global
0 Kudos
Message 5 of 5
(3,710 Views)