This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Script Event Que priority
#1
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?
Reply
#2
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?
Reply
#3
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.
Reply
#4
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.
Reply
#5
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?
Reply
#6
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.
Reply
#7
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 Smile
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.
Reply


Forum Jump: