Jump to content

Real-time Storage Emptying Time/Date Calculation


Sam P.
Go to solution Solved by Shamus Cunningham,

Recommended Posts

Using only the real time data from a storage vessel's weight transmitter/load cell, is there a way to create some sort of calculator that estimates the date/time it will be empty in real time? The calculation would need to update in real time and use a capsule of the last 15-30 min of load cell data to calculate a linear rate. 

I've tried using the new forcastLinear() function, but am having a hard time translating that data into an emptying time estimation. I am also unsure if it will update its forecast in real time, as I do not currently have real time data to test it out on. It appears to be simply pulling the historical data of the load cell and copying it.

Any help is much appreciated.

Link to comment
Share on other sites

  • Super Seeqer
  • Solution

Sam, 

You can pretty easily forecast the value from now till you empty setpoint and then display the result as a Capsule on the screen as well as a Time/Duration in a Scorecard/Table and have all the results update in real-time 

For my example I am going to use some example data but this should look very similar for your use case 

Step 1 - Create a Forecasted Value - This function may not work on exactly as you expect on historical data depending on your datasource 

$signal.forecastLinear(1.5h,5d)
//Train in the last 1.5 hours of data
//Project 5 days into the future

image.png

Step 2 - Create a condition that captures the time between now() and when you fall below your "empty" threshold. This step will only work for online data as it is using the past() operator

$LowerLimit = 0%

$AboveLowerLimit = $fv > $LowerLimit

$AboveLowerLimit - past()

image.png

Step 3 - Create a Scorecard to Quantify the time between now and full and display it in a table. This uses the "Condition" mode in the Tables view and a Condition scorecard type

image.png

 

Content Verified DEC2023

Link to comment
Share on other sites

Thank you Shamus for your quick response!

As you may have foretold, I am getting an error when I try to execute the formula using the past() function.

image.png.c1c1ee98df6d9c26698f97996568e38e.png

 

Is this something that would iron itself out once the data becomes dynamic again? Or is it possible this is due to the type of data I am using?

Here is a snip of my $ft1 function over several days. Currently that function is configured (15min, 4d).

image.thumb.png.ca51592e5e4938f9b772cb00a7d97b77.png

Link to comment
Share on other sites

  • Super Seeqer

You can also re-create the same effect at the past() operator in offline situations or in older versions by modifying the formula to remove the period of time that there is data in the original source signal 

image.png

$LowerLimit = 0%

$AboveLowerLimit = $forecast > $LowerLimit

$AboveLowerLimit - isvalid($original)

 

Link to comment
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
×
×
  • Create New...