Administrator
|
This post was updated on .
Hello and welcome to uos forum.
Not sure to understand.
You have a timer that reads data and shows it to display.
And when you run a uos_player it breaks the synchronization of the timer.
Is it this?
If yes, what timer are you using?
What widgetset (LCL, MSEgui, fpGUI)?
Each uos_player is a thread so no need to encapsulate in a other thread.
Did you try to use the uos_player to synchronize what the timer does?
You may use then the uos_player as a timer and synchronize what you want with uos_LoopProcIn().
Please take a look at Simpleplayer demo how to use uos_LoopProcIn().
To mimic a timer you may use in the LoopProc:
if now - lasttime > ainterval then
begin
lasttime := now;
dothesynchro();
end;
|