IÂ´m working with the IDE 6.3 and have problems with a Photon Appbuilder Project.
I have two computers and the one sends (sender) new data to the other (receiver) in a periodic intervall (all 250 ms) via CAN.
There is a thread on the sender sending the data (simple integer-number) and one on the receiver receiving the data. The receiving thread stores the data in a global variable. Both threads are started with the application and run forever, so the receiver has all 250 ms a new value.
So far it works and iÂ´m able to refresh the GUI when i press a button, and start a callback, where i set the last received value (the global Variable) with PtSetResource().
But now i want the GUI to refresh automatically, lets say every second, without pressing the button.
I tried few things, but didnÂ´t find a solution.
When i tried to refresh the GUI from within a thread, the application crashed.
Next shot was, to start a loop in a callback, that runs forever and refreshes the GUI.
The GUI refreshed, but also it was blocked after starting the callback and i wasnÂ´t able to press any other button, so this solution is bad, too.
Did i make some mistake in my trials? Should one of them work?
if not, has anyone any other ideas how to solve this problem?