Hello!
Quick question (hopefully)
I have 2 automation scripts, one that starts and the other one that stops elements.
Stopping elements seems to be instantaneous however, starting the elements up again takes 20 - 60 seconds.
Is this expected behaviour? And is there anyway to make the start-up time quicker?
Kind regards,
Amber
Hi Amber
Stopping an element is indeed faster than starting an element. Internally, it simply needs to stop the polling and unregister from certain protocols.
Starting an element requires more actions, settings and templates need to be read out, parameters need to be initialized, same for timers, actions, QActions, triggers,...
But often, the delay will be in retrieving the data from the database.
- Quick example, looking at my Microsoft Platform element, it takes ~25s to read out everything it needs from the database.
- Elements with a lot of active alarms and/or elementdata usually take longer to start up, simply due to the data retrieval
You can check this for your use case as well by looking at the element log:
- Cube -> System Center -> Logging -> elements -> <your element>
- On the server -> C:/Skyline Dataminer/Logging -> <your element>.txt
When you see "Start|DBG|-1|Complete.", then the element should have started up. So in your case, you should look for delays prior to this line.
As mentioned, my guess would be the reading of the database => search for "ReadDB|DBG|-1|** Read DB".
Is this expected behaviour?
Yes, it's normal that an element can take up 20 - 60 seconds, it depends on the content of the element.
Is there anyway to make the start-up time quicker?
To make the startup time faster, you would need to avoid alarm templates and not save any parameters (defined in the protocol itself). However, this is often essential for a proper operation.


Hi Robin! Sorry follow up question
When looking at the logs I've noticed that sometimes when the element reads the DB it takes 360ms
2025/04/16 12:24:57.601|SLElement.exe|23768|CElement::ReadDB|DBG|-1|** Read DB
2025/04/16 12:24:57.958|SLElement.exe|23768|CElement::ReadDB|DBG|-1|Reading DB [active alarms] took 360 ms.
2025/04/16 12:24:57.958|SLElement.exe|23768|CElement::ReadDB|DBG|-1|Reading DB took 360 ms in total.
2025/04/16 12:24:57.959|SLElement.exe|23768|CElement::ReadDB|DBG|-1|** Completed Read DB
And other times it's instant:
2025/04/16 12:23:15.626|SLElement.exe|20292|CElement::ReadDB|DBG|-1|** Read DB
2025/04/16 12:23:15.677|SLElement.exe|20292|CElement::ReadDB|DBG|-1|** Completed Read DB
Would you know what could cause this difference in behaviour?

It could simply be because the database is busy with something or looking at the log excerpt, there might be an amount of active alarms present.
Thank you Robin for your response!
This is very helpful!