ok. The reason can be the missing _RequestUpdate() invocation.
The background: the GUI application is usually inactive. It wakes-up only when the user interacts with it or a timer expires. If you have code implemented in JavaScript, which is executed asynchronously and then you call from this code a method of the GUI application, the GUI application will not perform any pending operations unless timers expire or user interacts with the application. In such case _RequestUpdate() forces the GUI application to perform the updates. Please see also the sectoin Invoke GUI application code from device.
Assuming, you have some JavaScript code implemented containing the invocation of IRGA_update(), then append the invocation of the method _RequestUpdate() at the end of your implementation. For example:
var device = EmWiApp._GetAutoObject( EmWiApp.Application.Device );
/* some asynchr. function */
function onMessage(evt)
{
/* Send data to GUI application */
device.IRGA_update( some_value_if_any );
/* Request the application to run an update */
EmWiApp._RequestUpdate();
}
Does it solve the problem?
Best regards
Paul Banach