Timelapse Mimic - Variable parameters in expression's function
EcoStruxure Geo SCADA Expert Forum
Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Timelapse Mimic - Variable parameters in expression's function
Hi everyone,
I am trying to develop a sort of timelapse mimic where the value shown is not the current value but the "end last" value of a time interval in the past. I accomplished this partially by using the historic function "end last" in the "value" property of the text.
The example was made with a fixed interval in the past (24h before), but I would like to have this interval to be modified by the user through a variable in the same mimic. Is there a syntax to include a variable like this in the formula above? or there is another method to obtain the same result?
Then you need to update new values to REGISTRY() for the time span to change. Things to consider:
1. Make sure you server can handle the extra load, current value is quick to real as memory resident, historic is disk resident with a memory cache
2. Start and End are just example strings, use whatever you like but just note that the REGISTRY() is client side shared amongst all mimics on your screen, so if you're good with all mimics on display having the same setting it should work, else you need to add something to make the setting used on each mimic unique
3. The defaults only work when the setting doesn't exist, so you'll need a Mimic_OnLoad script to set them to something sensible for each mimic load
4. You'll then also need some script that move the timestamps forward and back by updating the REGISTRY setting
5. I may have got the quotes wrong in the REGSITRY function, can't test atm, may be double-quotes not single