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.
Link copied. Please paste this link to share this article on your social media post.
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?
Link copied. Please paste this link to share this article on your social media post.
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:)
Link copied. Please paste this link to share this article on your social media post.
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:)
Link copied. Please paste this link to share this article on your social media post.
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..
Link copied. Please paste this link to share this article on your social media post.
@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.
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.