LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timing when using state machine

Here is the vi

0 Kudos
Message 11 of 12
(466 Views)

You calculation of the Total Time happens in parallel with your reading for 0.2 seconds.  What you should do is pass out the last time used in the inner most while loop and subtract that and the start time.

 

You should also learn to use shift registers.  They are a little more efficient than using local variables.  Or you could just use a FOR loop for the outter while loop that is inside the Count state.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 12 of 12
(459 Views)