![]() |
Script Event Que priority - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Script Event Que priority (/showthread.php?tid=6063) |
Script Event Que priority - j.kenneth - 28.07.2025 Hi, I believe that when an event script is triggered, LogicMachine adds it to an event queue, and then LM executes all event scripts in sequence. Is it possible to assign a priority to these event scripts within the queue? RE: Script Event Que priority - admin - 28.07.2025 Event scripts are run in parallel. It's possible to allow only a single instance (first or last) of a certain event script. Why do you need to assign a priority? RE: Script Event Que priority - j.kenneth - 28.07.2025 Hi, I have multiple event scripts handling various tasks in my LogicMachine. Among these, I have a specific task that receives a scene value and outputs four different values to light addresses, which results in a noticeable small delay. I would like to assign this task a higher priority over other tasks when there are many tasks in the event queue, ensuring it executes first. RE: Script Event Que priority - admin - 28.07.2025 Enable logs for event script input and output objects, execute the script and check the time difference between two writes. It should be around 50ms or less. RE: Script Event Que priority - j.kenneth - 28.07.2025 This is not what i mean, The light function works fine, but if will be a delay for the light program to execute if there is 100 qued task for other event scrips. Since the light event script is importat i want to assign a priority to it so it will execute before the 100 other qued task if this is possible? RE: Script Event Que priority - admin - 28.07.2025 Scripts are executed in parallel but object writes are processed in a single first-in-first-out queue without any priority. How many objects are in your installation? Install Group monitor app in LM and check if there are any repeated values being sent. RE: Script Event Que priority - j.kenneth - 29.07.2025 Hi, Thanks for the information. The system is not finished yes, but im programing for a hospital aplication so i want to everything right the first time ![]() Event script esitmate is 100. Special room scene lightning, VAV controll (Writing to modbus with script) and some timer logic for rooms and corridos. I will keep the group monitor in mind. |