Hi Ali,
in addition to @Sanman Mehta's answer if you need just the difference between the values:
You can use runningDelta() for getting the change of the value from sample to sample or use Signal From Condition and apply "Delta" as summary statistic. That will give you the difference between values at end and start of the capsule.
Regards,
Thorsten