LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time delay separate to while loop

How would I be able to obtain data (pressure read in by DAQmx) that happened 2 seconds previous?

 

I need to obtain the pressure difference from 2 seconds ago hence need the previous pressure with a 2 second time delay. When I try and do this the whole program delays by 2 seconds, even when I try separate the time delay through use of another time loop. 

 

Any suggestions?

0 Kudos
Message 1 of 4
(2,216 Views)

Sample every second and use the 2nd from last sample?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 4
(2,205 Views)

Excuse my stupidity but how would I get the second from last sample?

0 Kudos
Message 3 of 4
(2,202 Views)

Example_VI.png

Example_VI.png

0 Kudos
Message 4 of 4
(2,182 Views)