Hi Steve, I need your help..
My project works with variable to open and close midi ch that use the same controller; I used timer to have visual feedback: importing the proj in the bomebox I notice the timers doesn’t work fine, they are asynchronouses or don’t work toghether.
I think I read in the forum that it will be caused by the different speed of the processor (PC-Bomebox) and the timers are competing, is it correct?
Is there a metod to synchronize the timers when they are triggered in different moment?
Hi and welcome back to the forum!
Timers are independent and and if they are started asynchronously, they will run independently. You may be able to synchronize 2 timers with each other by using an iteration of one timer to start or re-start the other. If they have the same delay, they should maintain synchronization but if the have different delays, then they will each use their own duration so they will start off in sync but change thereafter.
The processing speed of a timer can be defined in milliseconds so if you are running a a faster of slower processor, the project will take that into consideration so they should run at the same speed regardless of the processor they are running on. Of course if you are overloading the processor with other processing, that could impact performance so if you have a lot of timers running, it might be possible to overload the processor (like any other application that may be running on the host processor.
Also, global variables are not atomic, so modifying it with multiple translators could create a race condition, so care must be taken. In general, it is best to have only one translator change the variable and other translators use it as read only.
Could you illustrate a simple example of what you are trying to do and perhaps I can come up with a recommendation?
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
Thanks Steve, you’re always precious, and very fast…I need to try and digest the informations
Thanks again