Jump to content
Sign in to follow this  
Mattheus Sant'Anna

Get previous value or interpolated value from past

Recommended Posts

Hello,

Is there any function or manner to get the value of a signal in the past? For example, let's us suppose that I have a signal A, and I would like to make the following calculation:

Calculation = (A( * - 5s) + A(* - 10s) + A(* - 60s))/3

Where A(*-t) would get the value of A at 5 seconds ago, it could be interpolated value or the nearest available value.

Any help?

Regards,

Mattheus

 

Share this post


Link to post
Share on other sites

Hi Mattheus,

You can do this by using the move (v49+) or delay (<=v48) function. For example, your equation would be:

($signal.move(5s)+$signal.move(10s)+$signal.move(60s))/3

 

  • Like 4

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...