Asset-Based Calculations with Output to Multiple Tags
Hi all, I’m working on setting up asset-based calculations in Canary and could use some guidance.
My goal:
Apply the same 5m calculation (e.g. 5-minute average of Real Power) across multiple assets defined in a Virtual View and asset model, and write the output tags to a centralized dataset (like CalcTest) using a dynamic path format like: "MyCalcs.{OriginalDataSetName}.5m.Real Power"
Id like to include additional tags in the asset model down the line and add additional expressions to my calculation.
Is this possible? I'm kind of at a loss here.
20 replies
-
It's definitely possible. It's just a little hard to explain without sitting down and talking over it. There's a lot of steps. Are the images from a small sample set?
This section (https://helpcenter.canarylabs.com/t/y4yfmn0/calcs-events-tile-version-25#calculation-expression) has a good writeup on how to employ the %Asset% variable to do asset-relative math and write data to asset-relative tags.
And yes, you would want to write them to a MyCalcs DataSet. Then, you can import MyCalcs into your main View. Use rules to grab the calc tags you care about and strip off "MyCalc." from the front.
Does that make sense? Happy to talk over it if you want.
-
I think I have this partially worked out. when i group the tags required for this 5m calculation into the same asset type path, in this instance "DataSet.5min.TagName" and use localhost.DatasetName instead of DatasetName when brining the DataSet into the view, it includes the site name (dataset) as an asset
Then in the calculation understand now that it will be repeated for each Asset in the view.
Where I think this is going to fail is with any expression where there could be an unknow number of units for a particular site (dataset). here is the example of one not using an asset model
Here there are 6 BESS units for this particular site. However, at another site there could be 2, 4, 9 or any other number really.
I understand I can bring these tags all together in the view, however in the calculation using the asset model, how could I perform this calculation without knowing how many tags I need to perform this on?