Posts: 4
Threads: 1
Joined: Jun 2025
Reputation:
0
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?
Posts: 8292
Threads: 45
Joined: Jun 2015
Reputation:
477
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?
Posts: 4
Threads: 1
Joined: Jun 2025
Reputation:
0
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.
Posts: 8292
Threads: 45
Joined: Jun 2015
Reputation:
477
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.
Posts: 4
Threads: 1
Joined: Jun 2025
Reputation:
0
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?
Posts: 8292
Threads: 45
Joined: Jun 2015
Reputation:
477
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.