How to allocate current inlet and previous inlet to different var

Jul 17, 2013 at 7:19am

How to allocate current inlet and previous inlet to different var

Dear all.

I am completely new to using javascript. But I am intending to find the rate of change or velocity of an inlet stream. So my idea is to find the difference between the current value and the previous value of the inlet. So the pseudocode I think is:

a = inlet;
wait for an interval x ms ;
b = inlet;
outlet = b – a;

Can you help me out with this? What should the script be?

Many thanks to you all.

Jiajun

#256279
Aug 31, 2013 at 7:07am

my be what you looking for…?

best regards

peet

#263815
Aug 31, 2013 at 7:07am

maybe what you’re looking for…?

best regards

peet

#263818

You must be logged in to reply to this topic.