Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Timelapse Mimic - Variable parameters in expression's function

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Timelapse Mimic - Variable parameters in expression's function
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the 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 Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
sbeadle
Kirk sbeadle Kirk
308
AndrewScott
Admiral AndrewScott
98
BevanWeiss
Spock BevanWeiss
91
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
37
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Solved
ggallardo
Crewman ggallardo
Crewman

Posted: ‎2023-03-16 10:02 AM . Last Modified: ‎2023-05-02 11:46 PM

0 Likes
5
1073
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-03-16 10:02 AM . Last Modified: ‎2023-05-02 11:46 PM

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.

 

analog_point.Historic.ProcessedValue('M-25H','M-24H','End Last')

 

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?

 

Thank you,

 

 

Labels
  • Labels:
  • Mimics
  • SCADA
  • ViewX
Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
AndrewScott
Admiral AndrewScott
Admiral

Posted: ‎2023-04-05 02:28 AM

0 Likes
1
1000
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-04-05 02:28 AM

To build a tag using an expression (calling the REGISTRY function) you need to use indirect tags, see Indirect Tags, and do string concatenation. Something like:

['analog_point.Historic.ProcessedValue(' + REGISTRY('''Start''', '''M-25H''') + ',' + REGISTRY('''End''', '''M-24H''') + ',''End Last'')']

 

To change the tag in an animation from a script you need to remember to include the double quotes that enclose the tag in the new value.

 

NB. Using an OPC HDA tag is preferable to calling the CHistoryBase::ProcessedValue() method:

"analog_point;End Last;M-25H;1H"

See OPC Historic Tags  


Andrew Scott, R&D Principal Technologist, AVEVA

See Answer In Context

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

Replies 5
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
Lt. Commander

Posted: ‎2023-03-20 09:41 PM . Last Modified: ‎2023-03-20 09:41 PM

1 Like
1
1042
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-03-20 09:41 PM . Last Modified: ‎2023-03-20 09:41 PM

It has been done in the past using the REGISTRY() function, basically store the two ranges as strings, i.e. 

 

analog_point.Historic.ProcessedValue('REGISTRY('Start', 'M-25H')','REGISTRY('End', 'M-24H')','End Last')

 

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

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

ggallardo
Crewman ggallardo
Crewman

Posted: ‎2023-04-04 12:57 PM

In response to AdamWoodlandToo
0 Likes
0
1011
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-04-04 12:57 PM

Thank you Adam for your response. The REGISTRY function on the ProcessedValue argument doesn´t seem to work. I tried simple quotes and double quotes without success.

 

I also tried running scripts to change the "value" animation but the result was it was interpreted as a string, giving me a "analog_point.Historic.ProcessedValue('M-25H','M-24H','End Last')" on the mimic instead of the result of the value.

 

There is other possible method?

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

AndrewScott
Admiral AndrewScott
Admiral

Posted: ‎2023-04-05 02:28 AM

0 Likes
1
1001
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-04-05 02:28 AM

To build a tag using an expression (calling the REGISTRY function) you need to use indirect tags, see Indirect Tags, and do string concatenation. Something like:

['analog_point.Historic.ProcessedValue(' + REGISTRY('''Start''', '''M-25H''') + ',' + REGISTRY('''End''', '''M-24H''') + ',''End Last'')']

 

To change the tag in an animation from a script you need to remember to include the double quotes that enclose the tag in the new value.

 

NB. Using an OPC HDA tag is preferable to calling the CHistoryBase::ProcessedValue() method:

"analog_point;End Last;M-25H;1H"

See OPC Historic Tags  


Andrew Scott, R&D Principal Technologist, AVEVA
Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2023-04-05 02:58 AM . Last Modified: ‎2023-04-05 03:22 AM

0 Likes
0
999
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-04-05 02:58 AM . Last Modified: ‎2023-04-05 03:22 AM

You got there before me Andrew!

p.s.

When including a single quote in a string enclosed by single quotes, use two of them. It's two single quotes not one double quote!

'in my string I have a single quote here which I type as two single quotes->'' end of my string'

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

ggallardo
Crewman ggallardo
Crewman

Posted: ‎2023-04-17 12:13 PM

In response to AndrewScott
0 Likes
0
959
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-04-17 12:13 PM

Thank you Andrew,

 

It worked using the indirect tag and the OPC HDA tag:

['analog_point;End Last;' + REGISTRY('Start','M-25H') + ';1H']

 

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of