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

Is it better to use many short scripts or fewer long scripts?

SpaceLogic KNX Forum

Schneider Electric SpaceLogic KNX forum to get support and share knowledge including selection, installation and troubleshooting for spaceLYnk, Wiser for KNX, eConfigure KNX, SpaceLogic KNX Hybrid module and other topics.

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
  • Light and Room Control
  • SpaceLogic KNX Forum
  • Is it better to use many short scripts or fewer long scripts?
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
Thomas_Rohde
Sisko Thomas_Rohde Sisko
121
Erwin-vd-Zwart
Sisko Erwin-vd-Zwart Sisko
54
Heribert_Dölger
Lt. Commander Heribert_Dölger Lt. Commander
30
FZetina
Lt. Commander FZetina Lt. Commander
27
View All
Related Products
product field
SpaceLogic KNX - 4ʺ Touch Unit
product field
KNX Push Button Dynamic Labeling, universal
product field
Wiser for KNX : logic controller

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SpaceLogic KNX Forum
Solved
ld94
Lieutenant JG ld94
Lieutenant JG

Posted: ‎2022-05-27 02:50 AM . Last Modified: ‎2024-07-14 11:44 PM

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

‎2022-05-27 02:50 AM

Is it better to use many short scripts or fewer long scripts?

Hello all!
I need to divide in more addresses a 6-byte value and I should do this operation for around 150 points through a script. My question is: Is it better to use many short scripts or fewer long scripts?The scripts are resident (60 seconds) and I'd like to create 1 script per Gateway DALI with all the lamps inside but I don't know if is better this way or creating a single script per lamp.

Do you guys have any suggestions?

  • Thumbnail of SpaceLogic KNX - 4ʺ Touch Unit
    SpaceLogic KNX - 4ʺ Touch Unit
  • Thumbnail of KNX Push Button Dynamic Labeling, universal
    KNX Push Button Dynamic Labeling, universal
  • Thumbnail of Wiser for KNX : logic controller
    Wiser for KNX : logic controller
View products (3)
Labels
  • Labels:
  • Protocols
  • Scripts
Tags (1)
  • Tags:
  • english
Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
IC_Systems
Captain IC_Systems
Captain

Posted: ‎2022-05-29 12:49 AM

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

‎2022-05-29 12:49 AM

Hello,

I don't have a log scripting journey.

But for 150 points its easier to edit, maintain, optimize,... if you have one resident script, or you could use functions and event based script, but notice that not all of the 150 objects triggered in the same time, while this will load the server.

 

Another point you should take in consideration is the response time you want to achieve, if you dont have any delay inside your script then one loop will take 150*60 sec.

 

this is my opinion, waiting for experts explanation:)

 

Best Regards,

See Answer In Context

Tags (1)
  • Tags:
  • english
Reply
Replies 3
IC_Systems
Captain IC_Systems
Captain

Posted: ‎2022-05-29 12:49 AM

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

‎2022-05-29 12:49 AM

Hello,

I don't have a log scripting journey.

But for 150 points its easier to edit, maintain, optimize,... if you have one resident script, or you could use functions and event based script, but notice that not all of the 150 objects triggered in the same time, while this will load the server.

 

Another point you should take in consideration is the response time you want to achieve, if you dont have any delay inside your script then one loop will take 150*60 sec.

 

this is my opinion, waiting for experts explanation:)

 

Best Regards,
Tags (1)
  • Tags:
  • english
Reply
Erwin-vd-Zwart
Sisko Erwin-vd-Zwart Sisko
Sisko

Posted: ‎2022-05-30 01:15 AM

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

‎2022-05-30 01:15 AM

Can you elaborate what the 6 byte value is used for so i can get an impression of your needs?

 

When the values are changing on high frequency you might need a resident script, when this is not the case a single event script with tags attached to your objects will do just fine, but when all 150 objects are changing at the same time you will have a peak in the CPU load, so without more info i cannot give a good answer.. 

Tags (1)
  • Tags:
  • english
Reply
ld94
Lieutenant JG ld94
Lieutenant JG

Posted: ‎2022-06-15 02:06 AM . Last Modified: ‎2022-06-15 02:07 AM

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

‎2022-06-15 02:06 AM

@Erwin-vd-Zwart @IC_Systems thank you for replying.
I'm using the 6-bytes data to read the alarms and status of some emergency lamps.
I'll unpack the 6-bytes into 8 different addresses.
Right now I've created for every lamp a single resident script (since the reading needs to be continous) so I've created around 75 resident scripts with a 60s loop on 2 different spacelynks.

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