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

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

How to set the shortest scan time by keeping no obvious influence to EWS server

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

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
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • How to set the shortest scan time by keeping no obvious influence to EWS server
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
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SmartConnector Forum
Solved
sesa197614_brid
sesa197614_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2016-08-22 07:54 PM

0 Likes
2
781
  • 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.

‎2016-08-22 07:54 PM

How to set the shortest scan time by keeping no obvious influence to EWS server

Dear:

I am wondering what's the rule when we set the scan time of a EwsClient to poll data from a EwsServer.

As I know, in order to keep good performance, we can not set the scan time to be too short, maybe 30s or 60s would be suggested. However, when I discuss with clients for some project, they may prefer to get more "Live" data rather then "30s" or "60s" delayed data.

Then may I possibly know, for example , 1000 points to be polled, what's the shortest scan time I can set? could it be 5s - 10s? or is there some method to absolutely test out it?

-Austen Yin

Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2016-08-23 07:23 AM

2 Likes
0
674
  • 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.

‎2016-08-23 07:23 AM

HI Austen,

If you want to get data faster, this is possible, but I would suggest you don't use "GetValues" for this.. Instead I would suggest that you use the built in Subscription mechanism in EWS.

Subscriptions basically allows for you to specify a list of IDs that you want to watch (with a Subscribe request), and when you send a GetNotification request, only the values that have changed since the last time a GetNotification will be returned. (Also there is Renew and Unsubscribe requests.) From a performance perspective, SBO is much better and it is the recommended approach. In the case of SBO as the EWS Server.. You could definitely ask for data more often doing this, I have done it every 5 seconds with no problems.

In Mongoose.Processor.Ews there is a class called "SubscriptionReader'. It is there to help you facilitate this, all you need to do is pass in either a list of items, or a subscription Id, and it will handle the EWS requests it needs to send for you, including handling the Renews if needed. It will also notify if your subscription id changed (due to failures).

I have attached the GraphicsUpdateProcessor (From Cerberus). Which shows an example of the Subscription reader being used for new subscriptions (SubscribeAndReadNew()) and existing subscriptions (ReadExistingSubscription()). Again, note this is proof of concept code, so it is just to be used as an example.. I wouldn't copy and paste .

-Jeff

See Answer In Context

Attachments
GraphicsUpdaterProcessor.cs.zip
Reply
Replies 2
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2016-08-23 07:23 AM

2 Likes
0
675
  • 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.

‎2016-08-23 07:23 AM

HI Austen,

If you want to get data faster, this is possible, but I would suggest you don't use "GetValues" for this.. Instead I would suggest that you use the built in Subscription mechanism in EWS.

Subscriptions basically allows for you to specify a list of IDs that you want to watch (with a Subscribe request), and when you send a GetNotification request, only the values that have changed since the last time a GetNotification will be returned. (Also there is Renew and Unsubscribe requests.) From a performance perspective, SBO is much better and it is the recommended approach. In the case of SBO as the EWS Server.. You could definitely ask for data more often doing this, I have done it every 5 seconds with no problems.

In Mongoose.Processor.Ews there is a class called "SubscriptionReader'. It is there to help you facilitate this, all you need to do is pass in either a list of items, or a subscription Id, and it will handle the EWS requests it needs to send for you, including handling the Renews if needed. It will also notify if your subscription id changed (due to failures).

I have attached the GraphicsUpdateProcessor (From Cerberus). Which shows an example of the Subscription reader being used for new subscriptions (SubscribeAndReadNew()) and existing subscriptions (ReadExistingSubscription()). Again, note this is proof of concept code, so it is just to be used as an example.. I wouldn't copy and paste .

-Jeff

Attachments
GraphicsUpdaterProcessor.cs.zip
Reply
Steve
Admiral | EcoXpert Master Steve Admiral | EcoXpert Master
Admiral | EcoXpert Master

Posted: ‎2016-09-02 11:51 AM

0 Likes
0
674
  • 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.

‎2016-09-02 11:51 AM

Just an aside to this information. There are limits to how many URis you can associate with a given subscription and that varys based on the type of device (Enterprise Server or Automation Server) that you can communicating with.

Steve Joanis
Chief Technology Officer @ ENE Systems
Reply
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