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

Does SmartConnector uses the Regional settings when it send Values' subscriptions?

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
  • Does SmartConnector uses the Regional settings when it send Values' subscriptions?
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
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
Back to SmartConnector Forum
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2021-09-23 12:19 PM

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

‎2021-09-23 12:19 PM

Does SmartConnector uses the Regional settings when it send Values' subscriptions?

Hi,

 

Assuming my language in the OS Regional settings is Danish, and the decimal point is a comma (","), will SmartConnector send EBO values to its SmartConnetcor clients using the comma or the "." decimal point?

 

For example, will it send "11,3" as the value is seen in the EBO? Or, "11.3"?

 

If it is always using the "." decimal point can you release a new version that considers the language in the regional settings?

 

Thank you.

 

Michael

 

 

Tags (1)
  • Tags:
  • english
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 3
ardak
ardak Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2021-09-26 09:55 PM

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

‎2021-09-26 09:55 PM

Hi,

 

Where is your error occurring? In your code or EBO? Smartconnector (and as far as I know EBO in its EWS implementation) uses InvariantCulture. It will be using . as separator.

 

BR

Armend

Tags (1)
  • Tags:
  • english
Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2021-09-26 10:49 PM

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

‎2021-09-26 10:49 PM

Hi Armend,

 

The error is in our code. We use a Windows API to convert a string value to double. When the regional settings are Danish, the conversion from "11.3" to double will be 113 instead of 11.3 since "11.3" is not a valid number. It should be "11,3".

 

Changing the Regional Format to Danish also changes the default Decimal Symbol used by the OS from period to comma. Therefore, the string value containing a period does not get recognized.

 

The workaround we used is to convert the string "11.3" to "11,3" before we convert it to double. It is now working well but it would be nice if the SmartConnector will support the regional settings including the decimal point as comma.

 

Thank you.

 

Mike

Tags (1)
  • Tags:
  • english
Reply
ardak
ardak Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2021-09-26 11:06 PM

1 Like
0
517
  • 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.

‎2021-09-26 11:06 PM

As I've said, EBO and Smartconnector will always use the . as a separator. It doesn't make sense to make smartconnector culture sensitive as it would introduce unnecessary problems where systems with different culture settings can't be connected.

 

You can read more about culture insensitive code here. 

 

Use this:

string ewsValue = "11.3";
var converted = Convert.ToDouble(ewsValue, CultureInfo.InvariantCulture);

 

BR

Armend

Tags (1)
  • Tags:
  • english
Reply
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