Help
  • Explore Community Expore Community
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Brand Logo
Help
  • Explore Community Explore Community
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
close
  • Community Home
  • Forums
    • By Topic
    • By Topic
      EcoStruxure Building
      • Field Devices Forum
      • SmartConnector Forum
      EcoStruxure Power & Grid
      • EcoStruxure Asset Advisor
      • Gateways and Energy Servers
      • Metering & Power Quality
      • Protection & Control
      APC UPS, Critical Power, Cooling and Racks
      • APC UPS Data Center & Enterprise Solutions Forum
      • APC UPS for Home and Office Forum
      EcoStruxure IT
      • EcoStruxure IT forum
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • EcoStruxure Geo SCADA Expert Forum
      • Remote Operations Forum
      Industrial Automation
      • Alliance System Integrators Forum
      • AVEVA Plant SCADA Forum
      • CPG Expert Forum DACH
      • EcoStruxure Automation Expert / IEC 61499 Forum
      • Fabrika ve Makina Otomasyonu Çözümleri
      • Harmony Control Customization Forum
      • Industrial Edge Computing Forum
      • Industry Automation and Control Forum
      • Korea Industrial Automation Forum
      • Machine Automation Forum
      • Modicon PAC Forum
      • PLC Club Indonesia
      Schneider Electric Wiser
      • Schneider Electric Wiser Forum
      Power Distribution IEC
      • Eldistribution & Fastighetsautomation
      • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
      • Paneelbouw & Energie Distributie
      • Power Distribution and Digital
      • Solutions for Motor Management
      Power Distribution NEMA
      • Power Monitoring and Energy Automation NAM
      Power Distribution Software
      • EcoStruxure Power Design Forum
      • LayoutFAST User Group Forum
      Energy & Sustainability Services
      • Green Building Scoring and Certification Forum
      Light and Room Control
      • SpaceLogic C-Bus Forum
      Solutions for your Business
      • Solutions for your Business Forum
      Support
      • Ask the Community
  • Knowledge Center
    • Building Automation Knowledge Base
    • Remote Operations Devices Knowledge Base
    • Geo SCADA Knowledge Base
    • Industrial Automation How-to videos
    • Digital E-books
    • Success Stories Corner
    • EcoStruxure IT Help Center
  • Events & Webinars
    • All Events
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Partner Success
    • Technology Partners
  • Ideas
    • EcoStruxure Building
      • EcoStruxure Building Advisor Ideas
      Remote Operations
      • EcoStruxure Geo SCADA Expert Ideas
      • Remote Operations Devices Ideas
      Industrial Automation
      • Modicon Ideas & new features
  • Blogs
    • By Topic
    • By Topic
      EcoStruxure Power & Grid
      • Backstage Access Resources
      EcoStruxure IT
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • Remote Operations Blog
      Industrial Automation
      • Industrie du Futur France
      • Industry 4.0 Blog
      Power Distribution NEMA
      • NEMA Power Foundations Blog
      Energy & Sustainability Services
      • Active Energy Management Blog
      Light and Room Control
      • KNX Blog
      Knowledge Center
      • Digital E-books
      • Geo SCADA Knowledge Base
      • Industrial Automation How-to videos
      • Remote Operations Devices Knowledge Base
      • Success Stories Corner
  • companyImpact

Is it possible for GetNotification() listens to analog value by pre-set a range?

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
  • Is it possible for GetNotification() listens to analog value by pre-set a range?
Options
  • Subscribe to RSS Feed
  • 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
JeffBowman Schneider Alumni (Retired)
164
sesa180908_brid
Commander sesa180908_brid Commander
34
ardak
ardak Schneider Alumni (Retired)
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-31 06:17 PM

0 Likes
1
182
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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-31 06:17 PM

Is it possible for GetNotification() listens to analog value by pre-set a range?

Dear:

When I create a function to subscribe the data of ES, I doubt whether this could possible be done in some way:

If I wanna get notification of an analog value only when the value is out of range(pre-setted in somewhere).

For example:

An analog value "Test" in ES, the high limit would be 35 while the low limit is 15, only when the value is higher then 35 or lower then 15,  I can use the getNotification() function to receive value.

Is It possible?

currently, I can only use the getNotification() function to listen to Digital value since anytime the anolog value changed, it will also receive data that is meaningless in actual usage.

Cheers

---Austen Yin

Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
JeffBowman
JeffBowman Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2016-09-01 07:15 AM

0 Likes
0
164
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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-01 07:15 AM

Hi Austen,

GetNotification is an EWS Method, and it does not support getting a notification on only a range of values.

Your best bet is to simply filter the response after you get it:

            try

            {

                var getNotificationResponse = _ewsClient.GetNotification("MySubscriptionId", "MyNotificationId");

                // Also need to handle paging, renew, error cases etc...

                var filteredChangeEvents = getNotificationResponse.Events.ValueChangedEvents.Where(a => Convert.ToDecimal(a.Value) >= 15 && Convert.ToDecimal(a.Value) <= 35);

            }

            catch (Exception ex)

            {

                Logger.LogError(LogCategory.Processor, ex);

                return _prompts;

            }

That said, if you are making GetNotification calls directly then you are most likely not using the SubscriptionReader. There are a bunch of complexities when getting subscriptions, (e.g. NotificationId, paging etc.., failures, Renew, Unsubscribe etc..) that we have wrapped in the SubscriptionReader class so you won't need to handle all the edge cases yourself in your own logic.

In the case of the SubscriptionReader, you would filter the same way, but on the DataRead after you call ReadData:


            var filteredResults = results.DataRead.Where(a => Convert.ToDecimal(a.ValueItemChangeEvent.Value)>= 15 && Convert.ToDecimal(a.ValueItemChangeEvent.Value) <= 35);

-Jeff

See Answer In Context

Reply
Reply 1
JeffBowman
JeffBowman Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2016-09-01 07:15 AM

0 Likes
0
165
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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-01 07:15 AM

Hi Austen,

GetNotification is an EWS Method, and it does not support getting a notification on only a range of values.

Your best bet is to simply filter the response after you get it:

            try

            {

                var getNotificationResponse = _ewsClient.GetNotification("MySubscriptionId", "MyNotificationId");

                // Also need to handle paging, renew, error cases etc...

                var filteredChangeEvents = getNotificationResponse.Events.ValueChangedEvents.Where(a => Convert.ToDecimal(a.Value) >= 15 && Convert.ToDecimal(a.Value) <= 35);

            }

            catch (Exception ex)

            {

                Logger.LogError(LogCategory.Processor, ex);

                return _prompts;

            }

That said, if you are making GetNotification calls directly then you are most likely not using the SubscriptionReader. There are a bunch of complexities when getting subscriptions, (e.g. NotificationId, paging etc.., failures, Renew, Unsubscribe etc..) that we have wrapped in the SubscriptionReader class so you won't need to handle all the edge cases yourself in your own logic.

In the case of the SubscriptionReader, you would filter the same way, but on the DataRead after you call ReadData:


            var filteredResults = results.DataRead.Where(a => Convert.ToDecimal(a.ValueItemChangeEvent.Value)>= 15 && Convert.ToDecimal(a.ValueItemChangeEvent.Value) <= 35);

-Jeff

Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

Additional options
You do not have permission to remove this product association.
 
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 forum after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the forum - 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 © 2023 Schneider Electric, Inc