First let's get the terminilogy right:
Are you talking about a "timed loop" or a regular loop? The timed loop provides some if this information directly.
To take the difference between successive samples, you would use a shift register. The left output of the shift register provides the value from the previous interation of whatever you wired into the shift register on the right. Check the online help.
If you want, you can initialize the shift register as shown on the left. This ensures that the loop time shown in the first iteration is a small value and not random.
Message Edited by altenbach on 10-28-2007 09:03 AM